Displaying 20 results from an estimated 11000 matches similar to: "reliability of the level-1 random coefficients (lme4)"
2011 Feb 01
1
Lmer binomial distribution x HLM Bernoulli distribution
Dear R-users,
I'm running a lmer model using the lme4 package. My dependent variable is
dichotomous and I'm using the "binomial" family. The results
are slightly different from the HLM results based on a Bernoulli
distribution. I read that a Bernoulli distribution is an extension of a
binomial distribution. Is that right? If so, how can I adapt my R model to a
Bernoulli
2009 Feb 28
1
lme4 and Variable level detection
I am making a little GUI for lme4, and I was wondering if there is a function
that automatically detects on which level every variable exists.
Furtheremore I got kind of confused about what a random effects model
actually calculates.
I have some experience with commercial software packages for multilevel
analysis, like HLM6, and I was surprised that lme4 does not require the user
to specify the
2005 Aug 18
0
[SPAM] - Re: How to assess significance of random effect in lme4 - Bayesian Filter detected spam
Actually, I re-read the post and think it needs clarification. We may
both be right. If the question is "I am building a model and want to
know if I should retain this random effect?" (or something like that)
then the LRT should be used to compare the fitted model against another
model. This would be accomplished via anova().
In other multilevel programs, the variance components are
2008 Feb 13
2
Newbie HLM with lme4 questions
Dear R listers,
I know I'm breaking the rules by asking a "homework" related question--
I hope you'll forgive me. I am a social psychology graduate student,
and the only one in my department who uses R. I successfully completed
my multiple regression and structural equation modeling courses using
R (John Fox's car and sem packages were a big help, as was his book).
2010 Dec 01
4
Sequence for repeated numbers
Hello fellows,
I would like to create a sequence for repeated numbers in a dataset. For
example:
ID <- c(1:20)
grade <- c(4,4,4,5,5,7,7,7,7,8,8,8,9,9,9,9,9,10,10,10)
Data:
ID Grade
1 4
2 4
3 4
4 5
5 5
6 7
7 7
8 7
9 7
(...)
I would like to create a variable "sequence":
Data:
ID Grade Sequence:
1 4 1
2 4 2
3 4 3
4 5
2012 Aug 04
1
lme4 / HLM question
I'm hoping that this is a relatively easy question for someone familiar with
the lme4 package.
I'm accustomed to using HLM software and writing a simple 2 level [null]
equation like this:
L1 - Yij = b0 + e
L2 - b0 = B00 + u0
The following command in R provides results that are identical to the HLM
program.
results <- lmer( Y ~ 1 |id , PanelData4)
I can't
2006 Jun 28
1
lme4 - higher level
Hello all,
I just started working with the lme4 package to estimate a multilevel
logistic regression and am planning to use this package for a
cross-classification / multiple-membership model. I haven't found many
worked examples and am trying to figure out how to add variables to the
higher-level part of the model. Consider the following example:
test.1 <- lmer(y ~ b1 + b2 + b3 +
2005 Aug 17
4
How to assess significance of random effect in lme4
Dear All,
With kind help from several friends on the list, I am getting close.
Now here are something interesting I just realized: for random
effects, lmer reports standard deviation instead of standard error! Is
there a hidden option that tells lmer to report standard error of
random effects, like most other multilevel or mixed modeling software,
so that we can say something like "randome
2006 Oct 03
1
New versions of Matrix and lme4 packages for R-2.4.0
Versions 0.9975-1 of the Matrix and lme4 packages will soon be available on
CRAN for use with R version 2.4.0 or later.
Purpose of the packages:
The Matrix package provides S4 classes and methods for sparse
and dense matrices. The lme4 package provides functions for fitting
and assessing linear or generalized linear mixed effects models (also
called multilevel models). Like the Matrix package,
2006 Oct 03
1
New versions of Matrix and lme4 packages for R-2.4.0
Versions 0.9975-1 of the Matrix and lme4 packages will soon be available on
CRAN for use with R version 2.4.0 or later.
Purpose of the packages:
The Matrix package provides S4 classes and methods for sparse
and dense matrices. The lme4 package provides functions for fitting
and assessing linear or generalized linear mixed effects models (also
called multilevel models). Like the Matrix package,
2008 Dec 20
2
Problems installing lme4 on Ubuntu
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
While I'm not an R expert, I have used R on Windows XP. Now I've moved
to Ubuntu (Intrepid), and I'm trying to configure R to work with the
Gelman and Hill _Data Analysis Using Regression and
Multilevel/Hierarchical Models_. So far, it's not working.
I start by following the instructions for installing arm and BRugs at
2006 Oct 03
0
[R-pkgs] New versions of Matrix and lme4 packages for R-2.4.0
Thanks, Douglas.
It works.
Only one gripe. Every time I want to
try a new version of your software, I have
to get, compile, patch the latest bleeding edge version of R
as well:
ERROR: This R is version 2.3.1
package 'Matrix' needs R >= 2.4.0
Douglas Bates wrote:
> Versions 0.9975-1 of the Matrix and lme4 packages will soon be available on
> CRAN for use with R
2012 Jun 06
3
Sobel's test for mediation and lme4/nlme
Hello,
Any advice or pointers for implementing Sobel's test for mediation in
2-level model setting? For fitting the hierarchical models, I am using
"lme4" but could also revert to "nlme" since it is a relatively simple
varying intercept model and they yield identical estimates. I apologize for
this is an R question with an embedded statistical question.
I noticed that a
2003 Apr 08
3
Multilevel Analyses in R
I am new to R and would like to get some practice analyzing multilevel data. I wonder if anyone can point me to a sample data set and command lines that I might replicate for a sample session. I would then compare my output with HLM output.
Any help is appreciated.
------
Harold C. Doran
Director of Research and Evaluation
New American Schools
675 N. Washington Street, Suite 220
Alexandria,
2000 Sep 12
1
HLM in R
Does anyone know of code to conduct hierarchical (that is, multi-level)
models using R. Beyond simply requiring a nested design, I want to model
explicitly the covariance between levels as is done in such multi-level
modeling software as HLM or MLwin and discussed in Goldestein (1999)
available online at http://www.arnoldpublishers.com/support/goldstein.htm (a
nice and free resource for anyone
2008 Jun 15
2
R vs SAS and HLM on multilevel analysis- basic question
Hi R users!
I am trying to learn some multilevel analysis, but unfortunately i am now very confused. The reason: http://www.ats.ucla.edu/stat/hlm/seminars/hlm_mlm/mlm_hlm_seminar.htm
http://www.ats.ucla.edu/stat/sas/seminars/sas_mlm/mlm_sas_seminar.htm
and
MlmSoftRev. pdf from mlmRev package.
>From what i see, the first two links seem to declare the level one variable as a random part (i
2009 Mar 31
1
USING MULTILEVEL PACKAGE AND WABA FUNCTION
Dear friends,
this time I have a problem with using waba function. Firstly, I'll explain you my situation.
In the survey a gruop of supervisors judge the dipendents of a company.
One supervisor reported on more than one subordinate.
Thus, I need to show that lack of independence is not a problem, and a reviewer told me to use WABA.
The question is, how? In which way i can build my X and Y?
2011 Sep 12
1
Multilevel model in lme4 and nlme
Dear list,
I am trying to fit some mixed models using packages lme4 and nlme.
I did the model selection using lmer but I suspect that I may have some
autocorrelation going on in my data so I would like to have a look using the
handy correlation structures available in nlme.
The problem is that I cannot translate my lmer model to lme:
mod1<- lmer(y~x + (1|a:b) + (1|b:c), data=mydata)
2005 Jun 09
2
can nlme do the complex multilevel model?
data from multilevel units,first sample the class ,and then the student in calss.following is the 2-level model. and the level-1 model deals with the student,and the level-2 model deals with the class level the students belong to.
Level-1 Model
Y = B0 + B1*(ZLEAD) + B2*(ZBUL) + B3*(ZSHY) + R
Level-2 Model
B0 = G00 + U0
B1 = G10 + G11*(ZWARMT) + U1
B2 = G20 + G21*(ZWARMT) + G22*(ZABLET) +
2010 Sep 13
1
Specify a minimum number of valid arguments for the mean function
Hello all,
I want to specify a minimum number of valid arguments for the mean
function--I have 5 variables but I want the mean only of cases that have at
least 3 valid answers. What is the best way to do that?
Thank you very much!
Luana
[[alternative HTML version deleted]]