You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The model looks fine but when I try to add loo or waic criterion I get the error validate_ll(x) : All input values must be finite
I'm not convinced that the cloglog link is appropriate. I get fairly good results using the 'logit' link. The data are very skewed so I was hoping to check. I'm fairly confident that the sratio model is a good model of the data generating process.
df <- read.csv("test_error_validate_ll_ordinal.csv")
df[,'wp10'] <- factor(df[,'wp10'],levels=c("stub",'start','c','b','ga','fa'),ordered=T)
fam.cloglog <- sratio(link='cloglog', threshold='flexible')
formula <- brmsformula(wp10 | weights(weight) ~ Stub + Start + B + FA + GA, decomp='QR',center=TRUE)
mod <- brm(formula=formula.main.noC, data=df, family=fam.cloglog)
mod <- add_criterion(model.main.noC.cloglog,'loo')
I took a look at this, but it seems like the issue is not caused by code introduced by my PRs. Nevertheless, I have discussed possible solutions with Paul. Perhaps one of them works.
https://discourse.mc-stan.org/t/error-adding-loo-criterion-to-brms-ordinal-model-with-link-cloglog/22600
The model looks fine but when I try to add loo or waic criterion I get the error
validate_ll(x) : All input values must be finite
I'm not convinced that the
cloglog
link is appropriate. I get fairly good results using the 'logit' link. The data are very skewed so I was hoping to check. I'm fairly confident that thesratio
model is a good model of the data generating process.I have uploaded my dataset (n=2000, 258kb) here: https://teblunthuis.cc/outgoing/test_error_validate_ll_ordinal.csv
Thank you so much for the help!
The text was updated successfully, but these errors were encountered: