Displaying 20 results from an estimated 900 matches similar to: "GLMM: MEEM error due to dichotomous variables"
2005 Aug 18
2
lme model: Error in MEEM
Hi,
We have data of two groups of subjects: 32 elderly, 14 young adults. for
each subject we have 15 observations, each observation consisting of a
reaction-time measure (RT) and an activation maesure (betadlpcv).
since we want to analyze the influence of (age-)group and RT on the
activation, we call:
lme(betadlpcv ~ RT*group, data=our.data, random=~ RT |subject)
this yields:
Error in
2012 Jan 06
1
lme model specification problem (Error in MEEM...)
Dear all,
In lme, models in which a factor is fully "contained" in another lead to
an error. This is not the case when using lm/aov.
I understand that these factors are aliased, but believe that such
models make sense when the factors are fitted sequentially. For example,
I sometimes fit a factor first as linear term (continuous variable with
discrete levels, e.g. 1,2,4,6), and
2010 May 01
0
Error in MEEM
Hello everyone:
It's the first time I write to this mailing list. Sorry in advance if my doubt has already been posted before, but I have been checking the archives and I haven't been able to find anything satisfactory.
I am running a mixed effects model with nested effects (site and pair, referred to barn swallow nests located in different places in different farms). My dependent
2003 May 28
1
Bradley Terry model and glmmPQL
Dear R-ers,
I am having trouble understanding why I am getting an error using glmmPQL (library MASS).
I am getting the following error:
iteration 1
Error in MEEM(object, conLin, control$niterEM) :
Singularity in backsolve at level 0, block 1
The long story:
I have data from an experiment on pairwise comparisons between 3 treatments (a, b, c). So a typical run of an experiment
2010 Aug 31
1
any statement equals to 'goto'?
I have the following code:
-----------------------------------------------------------------------------------------------------
result <- matrix(NA, nrow=1, ncol=5)
for(i in 1:(nsnp-1)) {
for(j in (i+1):nsnp){
tempsnp1 <- data.lme[,i]
tempsnp2 <- data.lme[,j]
fm1 <- lme(trait~sex+age+rmtemp.b+fc+tempsnp1+tempsnp2+tempsnp1*tempsnp2,
random=~1|famid, na.action=na.omit)
fm2 <-
2011 Oct 05
1
Difficulty with lme
Hi all,
I'm having some difficulty with lme. I am currently trying to run the
following simple model
anova(lme(x ~ f1 + f2 + f1:f2, data=m, random=~1|r1))
Which is currently producing the error
Error in MEEM(object, conLin, control$niterEM) :
Singularity in backsolve at level 0, block 1
x is a numeric vector containing 194 observations. f1 is a factor vector
containing two levels, and
2006 Oct 09
1
split-plot analysis with lme()
Dear R-help,
Why can't lme cope with an incomplete whole plot when analysing a split-plot
experiment? For example:
R : Copyright 2006, The R Foundation for Statistical Computing
Version 2.3.1 (2006-06-01)
> library(nlme)
> attach(Oats)
> nitro <- ordered(nitro)
> fit <- lme(yield ~ Variety*nitro, random=~1|Block/Variety)
> anova(fit)
numDF denDF F-value
2012 Apr 18
1
Add covariate in nlme?
Hi R-experts,
I have a problem using nlme. I use the following code to group my data:
Parameterg <- groupedData( result ~ time | Batch,
data = Batchdata,
labels = list( x = "Time", y = "analysis")
)
and then uses the nlme function to fit a nonlinear mixed model that includes
Process as a fixed covariate:
nlme.model001epr <- nlme(result ~ A0 * exp(- ( exp(A1)
2007 Nov 04
1
Help in error of mixed models
Hi R-masters
I read the article: Bivariate analysis of sensitivity and specificity
produces informative summary measures in diagnostic reviews.
In this paper i proposed a bivariate mixed model and use SAS proc mixed
to adjust the estimates.
I thinks use R to make the same and try with this code:
base<-read.csv("base.csv")
adj<-.5
attach(base)
sens<-(VP+adj)/(VP+FN+2*adj)
2008 Feb 20
3
reshaping data frame
Dear all,
I'm having a few problems trying to reshape a data frame. I tried with
reshape{stats} and melt{reshape} but I was missing something. Any help is
very welcome. Please find details below:
#################################
# data in its original shape:
indiv <- rep(c("A","B"),c(10,10))
level.1 <- rpois(20, lambda=3)
covar.1 <- rlnorm(20, 3, 1)
level.2
2009 Jul 10
1
problems with contrast matrix
Dear lme and lmer -ers,
I have some problems using "home-made" contrast matrix in lme and lmer.
I
did an experiment to investigate the relationship between the response of an animal and some factors, namely the light wavelength (WA), the light intensity to which this animal was exposed and the sex of the animal
tested.
- The response can be a variable LA (normal
distribution) or
2011 Nov 14
1
lme4:glmer with nested data
Dear all,
I have the following dataset with results from an experiment with individual bats that performed two tasks related to prey capture under different conditions:
X variables:
indiv - 5 individual bats used in the experiment; all of which performed both tasks
task - 2 tasks that each individual bat had to perform
dist - 5 repeated measures of individual bats at 5 different distances from
2011 Mar 08
1
NaNs in Nested Mixed Model
Dear R users,
I have a problem with something called "NaNs" in a nested mixed model.
The background is that I have studied the number of insect nymphs
emerging from replicated Willow genotypes in the field. I have 15
replicates each of 4 Willow genotypes belonging two 2 Willow species.
Now I want to elucidate the effect of Willow genotype on the number of
emerging nymphs. Previously I
2010 Feb 11
2
Unexpected output in first iteration of for-loop
Dear r-helpers,
why do I get an output in the first iteration of the for-loop
which contains the string values of the input vector,
and how can I avoid that?
Here's the output (only line 1 is wrong)
latentVariable Indiv Group
1 rPlanning rIterat rTDD
2 rPlanning 0.79 0.84
3 rIterat 0.79 0.83
4 rTDD 0.9 0.96
5 rStandup 0.83 0.82
6
2006 Aug 18
1
multivariate analysis by using lme
Dear R users,
I have a data structure as follows:
id two res1 res2 c1 c2 inter
1 -0.786093166 1 0 1 2 6
3 -0.308495749 1 0 0 1 2
5 -0.738033048 1 0 0 0 1
7 -0.52176252 1 0
2009 Oct 28
2
regression on large file
Dear R community,
I have a fairly large file with variables in rows. Every variable
(thousands) needs to be regressed on a reference variable. The file is too
big to load into R (or R gets too slow having done it) and I do now read in
line by line with "scan" (see below) and write the results to out. Although
improved, this is still very slow... Can someone please help me and suggest
2011 Jan 19
3
lme-post hoc
Hi all,
I analysed my data with lme and after that I spent a lot of time for
mean separation of treatments (post hoc). But still I couldn’t make
through it. This is my data set and R scripts I tried.
replication fertilizer variety plot height
1 level1 var1 1504 52
1 level1 var3 1506 59
1 level1 var4 1509 54
1 level1 var2 1510 48
2 level1 var1 2604 47
2 level1 var4 2606 51
2 level1 var3
2005 Oct 31
2
Cascading Comboboxen and GO button ?
Hello all,
I have two comboboxen, comboA is popultaed when :controller/list is
retrieved first time.
When comboA is selected, I want to auto-populate comboB (modelB belongs_to
modelA).
The population of tableC (modelC belongs_to modelB and belongs_to modelA)
should not populate until a "GO" button is clicked (link_to with submit).
Help? I need an example of how to filter the post
2006 Feb 24
1
predicting glm on a new dataset
Hello together,
I would like to predict my fitted values on a new dataset. The original dataset consists of the variable a and b (data.frame(a,b)). The dataset for prediction consists of the same variables, but variable b has a constant value (x) added towards it (data.frame (a,b+x).
The prediction command returns the identical set of predicted values as for the original dataset yet I would have
2009 Mar 27
3
color vectors other than gray()
I'm trying to create a graph where different cells of a grid (a shapefile)
will be painted with a color share scale, where the most easy way is to use
gray().
Can I somehow get a vector (gradient) of colors, a vector of colors with
other methods but gray()?
I'm doing this until now
quad_N_sp <-