:exclamation: This is a read-only mirror of the CRAN R package repository. bamlss — Bayesian Additive Models for Location, Scale, and Shape (and Beyond). Homepage: http://www.bamlss.org/
I do understand that this might not be the appropriate place to ask, but I haven't found a better one and maybe someone can help
I've been trying to fit the following model in bamlss:
f <- list(
Resposta ~ Pmaquinabase + Prima + Pmaquina1,
Resposta ~ Pmaquinabase + Prima + Pmaquina1
)
## Estimate.
b <- bamlss(f, family = "multinomial", data = train_data,reference = "1")
All my variables are double type and the object train_data is a list with 144 rows and 10 columns. I have three levels of my response variable (1,2 and 3), which are factors, so I set the reference as shown.
Every time I try to run the model I receive: 'Error in .subset2(x, i, exact = exact) : subscript out of bounds'
I do understand that this might not be the appropriate place to ask, but I haven't found a better one and maybe someone can help I've been trying to fit the following model in bamlss:
All my variables are double type and the object train_data is a list with 144 rows and 10 columns. I have three levels of my response variable (1,2 and 3), which are factors, so I set the reference as shown. Every time I try to run the model I receive: 'Error in .subset2(x, i, exact = exact) : subscript out of bounds'
Someone has a solution? I've tried to pass the data without any transformation on dplyr, since I saw something similar in gamlss (https://stats.stackexchange.com/questions/563752/error-in-post-hoc-analysis-on-gamlss-model-with-emmeans-error-in-vidx-idx-d), but it did not help. I've tried to pass only the columns I'm setting for the model, but again it did not solve.