Displaying 20 results from an estimated 800 matches similar to: "lmer / variance-covariance matrix random effects"
2005 Sep 01
2
VarCorr function for assigning random effects: was Question
If you are indeed using lme and not lmer then the needed function is
VarCorr(). However, 2 recommendations. First, this is a busy list and
better emails subject headers get better attention. Second, I would
recommend using lmer as it is much faster. However, VarCorr seems to be
incompatible with lmer and I do not know of another function to work
with lmer.
Hence, a better email subject header
2004 Dec 31
1
lme: Confusion about Variances
Dear R users!
I used lme to fit a mixed model with random intercept and spatial Gaussian
correlation i.e. I fitted a model of the following form:
Y = X*beta + error
and
error = U + W(t) + Z
where U is the random intercept (normally distributed), W(t) the stationary
Gaussian process and Z also a normally distributed (the residual) rv. Each of
these three random variables have a variance which
2010 May 26
1
regresion mixta
Hola a tod en s,
estoy trabajando con modelos de regresión mixta con el paquete "nlme",
concretamente con la función "lme". Una vez que hago mi modelo y el
summary del mismo obtengo por ejemplo la significación (valor p) de la
variable independiente, así como el valor del AIC para comparar mi
modelo con otro similar, pero no sé cómo obtener un valor del grado de
ajuste de la
2007 Dec 09
1
R + LaTeX formula
Hi,
what is actually the best method to include R-plots into LaTeX documents?
At the moment i use
postscript("myplot.eps", width = 12.0, height = 9.0, horizontal = FALSE,
onefile = TRUE, paper = "special",encoding = "TeXtext.enc")
plot(foo,bar)
dev.off()
But it is a bit unhandy to scale later and its difficult to get nice
formula in the plots.
And how should
2017 Jun 27
2
paste strings in C
Dear R-devs,
Below is a small example of what I am trying to achieve, that is trivial in
R and I would like to learn how to do in C, for very large matrices:
> (mymat <- matrix(c(1,0,0,2,2,1), nrow = 2))
[,1] [,2] [,3]
[1,] 1 0 2
[2,] 0 2 1
And I would like to produce:
[1] "a*C" "B*c"
Which can be trivially done in R via something like:
foo
2019 Feb 26
2
Using Access Control Lists with SMB2/SMB3 Mounts on Linux Clients
Thanks for the first reply, Jeremy.
What about the (future) implementation of RichACL?
Will there be any native Linux Client support along with the SMB2/SMB3 protocol?
I know, there is a native implemenation for RichACLs in ext4 FS.
Unfortunately, smbcals is not a native Linux ACL Tool and has a very unhandy syntax.
I just tested some days ago. ;-)
I am looking for a solution that allows the
2001 Oct 09
1
PROC MIXED user trying to use (n)lme...
Dear R-users
Coming from a proc mixed (SAS) background I am trying to get into
the use of (n)lme.
In this connection, I have some (presumably stupid) questions
which I am sure someone out there can answer:
1) With proc mixed it is easy to get a hold on the estimated
variance parameters as they can be put out into a SAS data set.
How do I do the same with lme-objects? For example, I can see the
2024 Aug 02
1
grep
?s 02:10 de 02/08/2024, Steven Yen escreveu:
> Good Morning. Below I like statement like
>
> j<-grep(".r\\b",colnames(mydata),value=TRUE); j
>
> with the \\b option which I read long time ago which Ive found useful.
>
> Are there more or these options, other than ? grep? Thanks.
>
> dstat is just my own descriptive routine.
>
> > x
> ?[1]
2024 Aug 02
2
grep
Good Morning. Below I like statement like
j<-grep(".r\\b",colnames(mydata),value=TRUE); j
with the \\b option which I read long time ago which Ive found useful.
Are there more or these options, other than ? grep? Thanks.
dstat is just my own descriptive routine.
> x
?[1] "age"????????? "sleep"??????? "primary"????? "middle"
?[5]
2007 Sep 26
1
Accessing the fixed- and random-effects variance-covariance matrices of an nlme model
I would appreciate confirmation that the function vcov(model.nlme)
gives the var-cov matrix of the fixed effects in an nlme model.
Presumably the random-effects var-cov matrix is given by cov(ranef
(model.nlme)?
Rob Forsyth
2007 May 29
2
summing up colum values for unique IDs when multiple ID's exist in data frame
I have data.frame's with IDs and multiple columns. B/c some of IDs showed up
more than once, I need sum up colum values to creat a new dataframe with
unique ids.
I hope there are some cheaper ways of doing it... Because the dataframe is
huge, it takes almost an hour to do the task. Thanks so much in advance!
Young
# ------------------------- examples are here and sum.dup.r is at the
2006 Jun 16
2
Effect size in mixed models
Hello,
Is there a way to compare the relative relevance of fixed and random effects
in mixed models? I have in mind measures of effect size in ANOVAs, and would
like to obtain similar information with mixed models.
Are there information criteria that allow to compare the relevance of each
of the effects in a mixed model to the overall fit?
Thank you,
Bruno
2003 Jul 14
1
methods help and glmmPQL
Dear All,
I would like to ask you to help me with my memeory. I remember using some
function that would list all the possible methods I could apply to an
object. Say, if I had an object of
class=lme,
it would tell me that that I could do stuff like
qqnorm(myobjct), or VarCorr(myobject). In general, a very complete list.
I though this list of all possible methods would pop out by typing
2011 Jan 19
2
VarCorr
I have a loop that I would like to use to extract the "stddev" for
each itteration so I can average the "stddev" for all the runs. It
would be helpful to know how to extract the "stddev" for each run from
the VarCorr. Thanks
MCruns<-1000
sighatlvec<-rep(NA,MCruns)
sighatbvec<-rep(NA,MCruns)
sighatevec<-rep(NA,MCruns)
for(mc in 1:MCruns)
{
2006 Sep 23
1
variance-covariance structure of random effects in lme
Dear R users,
I have a question about the patterned variance-covariance structure for the random effects in linear mixed effect model.
I am reading section 4.2.2 of "Mixed-Effects Models in S and S-Plus" by Jose Pinheiro and Douglas Bates.
There is an example of defining a compound symmetry variance-covariance structure for the random effects in a
split-plot experiment on varieties of
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
2013 Sep 12
1
Importing packages in Depend
Hi,
I am currently preparing a new version of my package papeR. When I run R CMD
check using the development version of R I get the following note:
Package in Depends field not imported from: ?nlme?, ?lme4?, ?survival?
These packages needs to imported from for the case when
this namespace is loaded but not attached.
I now have problems to fix this issue. It is easy to get rid of two of the
2012 May 01
1
VarCorr procedure from lme4
Folks
In trying to use lmer for a hierarchical model, I encountered the
following message:
Error in UseMethod("VarCorr") :
no applicable method for 'VarCorr' applied to an object of class "mer"
foo.mer <- lmer(y ~ TP + (TP|M),data=joe.q)
> head(joe.q[,1:5])
TP M AB Trt y
1 1 Jan A NN 19.20002
2 1 Jan A NN 19.06378
3 1 Jan A NN
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 )
2004 Sep 21
2
Bootstrap ICC estimate with nested data
I would appreciate some thoughts on using the bootstrap functions in the
library "bootstrap" to estimate confidence intervals of ICC values
calculated in lme.
In lme, the ICC is calculated as tau/(tau+sigma-squared). So, for instance
the ICC in the following example is 0.116:
> tmod<-lme(CINISMO~1,random=~1|IDGRUP,data=TDAT)
> VarCorr(tmod)
IDGRUP = pdLogChol(1)