similar to: Using na.action = na.pass with lmer() function

Displaying 20 results from an estimated 10000 matches similar to: "Using na.action = na.pass with lmer() function"

2009 Jan 01
0
Computing/Interpreting Odds Ratios for 3-way interactions from lmer
Hello, I am a relative novice at both using regression analysis and at using R in general (and at object oriented programing). A colleague convinced me that binary logistic regression is the most appropriate analysis for the data that I have though, so I've been trying to muddle through. I'm currently stumped on how to interpret/compute odds ratios for two and three way interactions
2012 Oct 05
1
Error in lmer: asMethod(object) : matrix is not symmetric [1, 2]
Dear R Users, I am having trouble with lmer. I am looking at recombinant versus non recombinant individuals. In the response variable recombinant individuals are coded as 1's and non-recombinant as 0's. I built a model with 2 fixed factors and 1 random effect. Sex (males/females) is the first fixed effect and sexual genotype (XY, YY, WX and WY) the second one. Sexual Genotype is
2005 Apr 30
0
lmer for mixed effects modeling of a loglinear model
I have a dataset with 25 subjects and 25 items. For each subject-item combination, there's a 0/1 score for two parts, A and B. I'm thinking of this as a set of 2 x 2 tables, 25 x 25 of them. I'd like to fit a log-linear model to this data to test the independence of the A and B scores. If I ignore the subject and item parts, the following works just fine: glm(count ~ A * B,
2011 Jun 24
1
Help with lmer
Hey, I am having trouble with lmer. I am looking at the presence/absence of water shrews against habitat and other factors e.g so I used this: m1<-lmer(Presencebsence~Habitatype*Width+(1|Sitename))summary(m1) But i keep getting this error up Error in mer_finalize(ans) : Downdated X'X is not positive definite, 16.> summary(m1)Error in asMethod(object) : matrix is not symmetric [1,2] What
2008 Feb 05
1
Extracting level-1 variance from lmer()
All, How does one extract the level-1 variance from a model fit via lmer()? In the code below the level-2 variance component may be obtained via subscripting, but what about the level-1 variance, viz., the 3.215072 term? (actually this term squared) Didn't see anything in the archives on this. Cheers, David > fm <- lmer( dv ~ time.num*drug + (1 | Patient.new), data=dat.new )
2011 Jun 08
1
using stimulate(model) for parametric bootstrapping in lmer repeatabilities
Hi all, I am currently doing a consistency analysis using an lmer model and trying to use parametric bootstrapping for the confidence intervals. My model is like this: model<-lmer(y~A+B+(1|C/D)+(1|E),binomial) where E is the individual level for consistency analysis, A-D are other fixed and random effects that I have to control for. Following Nakagawa and Scheilzeth I can work out the
2009 Mar 23
1
specifying repeated measures model in lmer
Dear Colleagues, I have what Roger Kirk (Experimental Design: Procedures for the Behavioral Sciences, 1968) refers to as a randomized block factorial design. The anova table would look like this: df A 3 Subj/A 103 (error term for A) B 23 A*B 69 B*Subj/A 2369 (error term for B and A*B) Subjects are nested
2008 Jan 24
0
(lme4: lmer) mcmcsamp: Error in if (var(y) == 0)
I've got a problem with "mcmcsamp" used with glmer objects produced with "lmer" from the lme4 package. When calling mcmcsamp, I get the error Error in if (var(y) == 0) { : missing value where TRUE/FALSE needed This does not occur with all models, but I can't find anything wrong with the dataset. If the error is in my data, can someone tell me what I am looking
2007 May 16
1
lmer error confusion
Hi All. I'm trying to run a simple model from Baayan, Davidson, & Bates and getting a confusing error message. Any ideas what I'm doing wrong here? # Here's the data..... Subj <- factor(rep(1:3,each=6)) Item <- factor(rep(1:3,6)) SOA <- factor(rep(0:1,3,each=3)) RT <- c(466,520,502,475,494,490,516,566,577,491,544,526,484,529,539,470,511,528) priming
2007 Aug 02
6
Error message in lmer
I do not think anyone has answered this. > I'm trying to run a simple one-way ANCOVA with the lmer > function in R package lme4, but have encountered some > conceptual problem. The data file MyData.txt is like this: > > Group Subj Cov Resp > A 1 3.90 4.05 > A 2 4.05 4.25 > A 3 4.25 3.60 > A 4 3.60 4.20 > A 5 4.20 4.05 > A 6 4.05 3.85
2006 Mar 03
1
extracting p-values from lmer outputs
I would like to write a function that runs GLMM using lmer on a user-input model containing interactions, but if the model doesn't produce significant results for the interaction, a reduced model will be run without the interaction. Doing this seems to require getting the p-values out of an lmer object, but I don't know how to do this. (The grand DF debate seems to be irrelevant since the
2007 Dec 09
0
Lmer output for negative binomial data
Dear R-list, May I ask for help in interpretating the output of 'lmer' (from the lme4 package) when dealing with negative binomial data ? I'm using the functions glm.nb (from the MASS package) and lmer (from the lme4) to fit respectively fixed-effects and mixed-effects generalized linear models to data, generated from a negative binomial distribution : count ~ Neg.Bin (mu, theta).
2006 Oct 08
1
Simulate p-value in lme4
Dear r-helpers, Spencer Graves and Manual Morales proposed the following methods to simulate p-values in lme4: ************preliminary************ require(lme4) require(MASS) summary(glm(y ~ lbase*trt + lage + V4, family = poisson, data = epil), cor = FALSE) epil2 <- epil[epil$period == 1, ] epil2["period"] <- rep(0, 59); epil2["y"] <- epil2["base"]
2005 Sep 08
1
FW: Re: Doubt about nested aov output
Your response nicely clarifies a question that I've had for a long time, but which I've dealt with by giving each subject a unique label. Unless I'm missing something, both techniques should work as the toy example below gives exactly the same output in all 3 cases below (forgetting about the convergence problem). Would there be a reason to prefer labeling the levels one way or
2009 Apr 15
2
AICs from lmer different with summary and anova
Dear R Helpers, I have noticed that when I use lmer to analyse data, the summary function gives different values for the AIC, BIC and log-likelihood compared with the anova function. Here is a sample program #make some data set.seed(1); datx=data.frame(array(runif(720),c(240,3),dimnames=list(NULL,c('x1','x2','y' )))) id=rep(1:120,2); datx=cbind(id,datx) #give x1 a
2008 Dec 05
1
lme4, error in mer_finalize(ans)
Using lmer() on my data results in an error. The problem, I think, is my model specification. However, lm() works ok. I recreated this error with a more simple dataset. (See code below.) # word and letter recognition data # two within factors: # word length: 4, 5, 6 letters # letter position: 1-4 (in 4-letter words), 1-5 (in 5-letter words), 1-6 (in 6-letter words) # one dependent variable: #
2017 Dec 26
1
identifying convergence or non-convergence of mixed-effects regression model in lme4 from model output
Hi R community! I've fitted three mixed-effects regression models to a thousand bootstrap samples (case-resampling regression) using the lme4 package in a custom-built for-loop. The only output I saved were the inferential statistics for my fixed and random effects. I did not save any output related to the performance to the machine learning algorithm used to fit the models (REML=FALSE).
2013 Apr 05
0
(no subject)
Hello, I am running error rate analysis. It is my results below. When I compare aov1 and aov2, X square = 4.05, p = 0.044, which indicates that adding the factor "Congruity" improved the fitting of model. However, the following Z value is less than 1 and p value for Z is 1, which means that "Congruity" is not significant at all. Therefore, these two parts are not consistent,
2007 Jun 14
0
random effects in logistic regression (lmer)-- identification question
Hello R users! I've been experimenting with lmer to estimate a mixed model with a dichotomous dependent variable. The goal is to fit a hierarchical model in which we compare the effect of individual and city-level variables. I've run up against a conceptual problem that I expect one of you can clear up for me. The question is about random effects in the context of a model fit with a
2008 Sep 24
0
weights option in lmer
Hi all, I am trying to run a linear mixed effect models in lmer() from the lme4 package using the weights option. I am using the R version 2.7.2 (2008-08-25) and lmer version in lme4_0.999375-26, which I think it is the latest version! I am getting and error message when I add the option "weights" in the lmer function. This is the error message I get "Error en