this is the first time I am using R2MLwiN.
I want to run a model with random effects only. My database is a sub-sample of the Multiple Indicator Cluster Survey developed by UNICEF. By response variable is a binary variable where 1 indicates age of marriage before 18 y.o. and 0 indicates age of marriage after 18 y.o.
This is the code I wrote
Code: Select all
F1 <- logit(agem.18) ~ 1 + (1 | province) + (1 | w.id)
rand.eff <- runMLwiN(Formula = F1, D = "Binomial", data = moz.20)
Code: Select all
Invalid link function specified: NA
Error in runMLwiN(Formula = F1, D = "Binomial", data = moz.20)
Code: Select all
> str(moz.20$agem.18)
Factor w/ 2 levels "No","Yes": 2 1 1 1 2 1 1 2 2 2 ...
Thanks for your help
Manolo