Disabling covariance multinomial model in R2MLwiN
Posted: Mon May 30, 2016 9:21 am
Dear all,
I'm currently modelling a mulitnomial multilevel model in R2MLwiN. My code is the following:
model = logit(se_arop_md3, denom) ~ 1 + (1 | country)
multinomial_empty <- runMLwiN(model, D = "Unordered Multinomial", data = mydata)
When I run this basic model it works. However, when I try to disable the covariance estimation the model does not work, giving the following message:
"Error in read.dta(IGLSfile) :
unable to open file: 'No such file or directory'"
The code I use is the following:
covmatrix <- matrix(, nrow = 3, ncol = 1)
covmatrix[1, 1] <- 2
covmatrix[2, 1] <- "Intercept_1"
covmatrix[3, 1] <- "Intercept_2"
multinomial_empty <- runMLwiN(model, D = "Unordered Multinomial", estoptions = list(clre = covmatrix), data = mydata)
I have tried replacing level "covmatrix[1, 1] <- 2" with "covmatrix[1, 1] <- 3" and various other changes in the code but I still get no results.
Can anyone help me with this problem? What is the exact code to not estimate the covariance in the variance-covariance matrix in a multinomial model?
Thanks in advance,
Pim Verbunt
I'm currently modelling a mulitnomial multilevel model in R2MLwiN. My code is the following:
model = logit(se_arop_md3, denom) ~ 1 + (1 | country)
multinomial_empty <- runMLwiN(model, D = "Unordered Multinomial", data = mydata)
When I run this basic model it works. However, when I try to disable the covariance estimation the model does not work, giving the following message:
"Error in read.dta(IGLSfile) :
unable to open file: 'No such file or directory'"
The code I use is the following:
covmatrix <- matrix(, nrow = 3, ncol = 1)
covmatrix[1, 1] <- 2
covmatrix[2, 1] <- "Intercept_1"
covmatrix[3, 1] <- "Intercept_2"
multinomial_empty <- runMLwiN(model, D = "Unordered Multinomial", estoptions = list(clre = covmatrix), data = mydata)
I have tried replacing level "covmatrix[1, 1] <- 2" with "covmatrix[1, 1] <- 3" and various other changes in the code but I still get no results.
Can anyone help me with this problem? What is the exact code to not estimate the covariance in the variance-covariance matrix in a multinomial model?
Thanks in advance,
Pim Verbunt