Search found 63 matches

by adeldaoud
Tue Aug 23, 2016 5:16 pm
Forum: R2MLwiN user forum
Topic: model.matrix() and terms() for R2mlwin objects
Replies: 4
Views: 1346

model.matrix() and terms() for R2mlwin objects

Hi This relates to the question of R generic methods. I am replicating "7.4 Predicted probabilities from a multilevel model" in LEMMA, and translating it to R2mlwin objects. See here, https://www.cmm.bris.ac.uk/lemma/mod/lesson/view.php?id=594&pageid=970 I am having an issue with translating this pa...
by adeldaoud
Tue Aug 23, 2016 5:08 pm
Forum: R2MLwiN user forum
Topic: what S3 or S4 method is a R2mlwin object?
Replies: 3
Views: 909

Re: what S3 or S4 method is a R2mlwin object?

Thanks, Chris, for the clarification. however we do implement a number of R generic functions (e.g. coef and nobs) which allow them to be used by third party packages in functions such as linearHypothesis. Whether this works for individual packages will depend on whether we have implemented enough o...
by adeldaoud
Tue Aug 23, 2016 3:03 pm
Forum: R2MLwiN user forum
Topic: Error in tutorial 09
Replies: 2
Views: 853

Error in tutorial 09

Hi, I am working through tutorial 09: http://www.bristol.ac.uk/cmm/media/r2mlwin/UserGuide09.R Buty I am getting the following error: > (mymodel4 <- runMLwiN(logit(use) ~ 1 + lc + age + (1 | district), D = "Binomial", data = bang)) Error in UseMethod("droplevels") : no applicable method for 'droplev...
by adeldaoud
Tue Aug 23, 2016 2:55 pm
Forum: R2MLwiN user forum
Topic: what S3 or S4 method is a R2mlwin object?
Replies: 3
Views: 909

what S3 or S4 method is a R2mlwin object?

Hi, What S3 or S4 method is a R2mlwin object? I am specifically thinking about what arguments I can use for the linearHypothesis() function in the car package. Related to this question, can one generally pass R2mlwin objects to other packages, e.g. the effects package? I know that R2mlwin object (if...
by adeldaoud
Tue Aug 23, 2016 2:21 pm
Forum: R2MLwiN user forum
Topic: Relative risk ratios in R2MLwiN
Replies: 5
Views: 1707

Re: Relative risk ratios in R2MLwiN

Hi Observe, that when you take the exponential of the log-odds you will get the odds ratio not the relative risk ratio. The relative risk ratio is more complicated to obtain: see e.g. Osborne, 2006, Bringing balance and technical accuracy to reporting odds ratios and the results of logistic regressi...
by adeldaoud
Thu Jul 28, 2016 9:20 am
Forum: R2MLwiN user forum
Topic: Graphing the fixed part of the model produces jittery results
Replies: 2
Views: 1057

Re: Graphing the fixed part of the model produces jittery results

Thanks, Chris. I will have a test drive asap. I assume that the other recent changes are built into this file as well.
by adeldaoud
Fri Jul 22, 2016 9:35 am
Forum: R2MLwiN user forum
Topic: Graphing the fixed part of the model produces jittery results
Replies: 2
Views: 1057

Graphing the fixed part of the model produces jittery results

What I would like to produce are prediction graphs for the fixed part of the model, and in a separate graph the random part of the model. With confidence intervals. However, I have been experimenting with this without success for the fixed part of the model. I followed http://www.bris.ac.uk/cmm/medi...
by adeldaoud
Mon Jul 18, 2016 1:37 pm
Forum: R2MLwiN user forum
Topic: The number of higher level observations are not correct
Replies: 4
Views: 1127

Re: The number of higher level observations are not correct

Thanks very much for the prompt fix, Chris.

I will install the development version asap.
by adeldaoud
Mon Jul 18, 2016 11:43 am
Forum: R2MLwiN user forum
Topic: The number of higher level observations are not correct
Replies: 4
Views: 1127

Re: The number of higher level observations are not correct

Sure: # load tutorial demo(MCMCGuide03) # Read tutorial data data(tutorial, package = "R2MLwiN") # The highest level comes first, then the second highest and so on (mymodel1 <- runMLwiN(normexam ~ 1 + standlrt + (1 | school) + (1 | student), estoptions = list(EstM = 0), data = tutorial)) summary(mym...
by adeldaoud
Sun Jul 17, 2016 4:31 pm
Forum: R2MLwiN user forum
Topic: The number of higher level observations are not correct
Replies: 4
Views: 1127

The number of higher level observations are not correct

Hi,

The number of higher level observations are not correct when comparing Mlwin and R2mlwin output.

Mlwin (in debug mode): 26 cases

R2mlwin in subsequent output:66 cases


Is there a quick fix for this?

Thanks
Adel

PS: tried to attach images but uploads fail for some reason...