Displaying 20 results from an estimated 1000 matches similar to: "set initial parameter values for GLMM estimation"
2008 Nov 19
1
F-Tests in generalized linear mixed models (GLMM)
Hi!
I would like to perform an F-Test over more than one variable within a
generalized mixed model with Gamma-distribution
and log-link function. For this purpose, I use the package mgcv.
Similar tests may be done using the function "anova", as for example in
the case of a normal
distributed response. However, if I do so, the error message
"error in eval(expr, envir, enclos) :
2005 Aug 18
1
GLMM - Am I trying the impossible?
Dear all,
I have tried to calculate a GLMM fit with lmer (lme4) and glmmPQL
(MASS), I also used glm for comparison.
I am getting very different results from different functions, and I
suspect that the problem is with our dataset rather than the functions,
but I would appreciate help in deciding whether my suspicions are right.
If indeed we are attempting the wrong type of analysis, some
2007 Nov 16
1
generate multivariate F with specified correlation matrix
Dear all,
In MATLAB, to generate multivariate F with specified correlation matrix Pn I can use the code such as
Z = mvnrnd([0 0 0 0 0], Pn, N);
U = normcdf(Z,0,1);
X = [finv(U(:,1),5,15) finv(U(:,2),5,15) finv(U(:,3),5,15) finv(U(:,4),5,15) finv(U(:,5),5,15)];
Is there something similar in R?
Thank you for your time.
2007 Jul 25
0
DF and intercept term meaning for mixed (lme) models
Hi,
I am using the lme package to fit mixed effects models to a set of data.
I am having a difficult time understanding the *meaning* of the numDF (degrees
of freedom in the numerator), denDF (DF in the denomenator), as well as the
Intercept term in the output.
For example:
I have a groupedData object called 'Soil', and am fitting an lme model as
follows:
## fit a simple model
#
2004 Aug 27
2
degrees of freedom (lme4 and nlme)
Hi, I'm having some problems regarding the packages
lme4 and nlme, more specifically in the denominator
degrees of freedom. I used data Orthodont for the two
packages. The commands used are below.
require(nlme)
data(Orthodont)
fm1<-lme(distance~age+ Sex,
data=Orthodont,random=~1|Subject, method="REML")
anova(fm1)
numDF DenDF F-value p-value
(Intercept) 1
2005 Mar 09
1
multiple comparisons for lme using multcomp
Dear R-help list,
I would like to perform multiple comparisons for lme. Can you report to me
if my way to is correct or not? Please, note that I am not nor a
statistician nor a mathematician, so, some understandings are sometimes
quite hard for me. According to the previous helps on the topic in R-help
list May 2003 (please, see Torsten Hothorn advices) and books such as
Venables &
2009 Jan 02
1
R: numerical integration problems
hello all
happy new year and hope you r having a good holiday.
i would like to calculate the expectation of a particular random variable and would like to approximate it using a number of the functions contained in R. decided to do some experimentation on a trivial example.
example
========
suppose x(i)~N(0,s2) where s2 = the variance
the prior for s2 = p(s2)~IG(a,b)
so the posterior is
2004 Aug 19
2
glmmPQL in R and S-PLUS 6 - differing results
Greetings R-ers,
A colleague and I have been exploring the behaviour of glmmPQL in R
and S-PLUS 6 and we appear to get different results using the same
code and the same data set, which worries us. I have checked the
behaviour in R 1.7.1 (MacOS 9.2) and R. 1.9.0 (Windows 2000) and the
results are the same, but differ from S-PLUS 6 with the latest Mass
and nlme libraries (Windows XP).
Here
2004 Nov 26
1
help with glmmPQL
Hello:
Will someone PLEASE help me with this problem. This is the third time
I've posted it.
When I appply anova() to two equations estimated using glmmPQL, I get a
complaint,
> anova(fm1, fm2)
Error in anova.lme(fm1, fm2) : Objects must inherit from classes "gls",
"gnls" "lm","lmList", "lme","nlme","nlsList", or
2004 Nov 25
1
Error in anova(): objects must inherit from classes
Hello:
Let me rephrase my question to attract interest in the problem I'm having. When I appply anova() to two equations
estimated using glmmPQL, I get a complaint,
> anova(fm1, fm2)
Error in anova.lme(fm1, fm2) : Objects must inherit from classes "gls",
"gnls" "lm","lmList", "lme","nlme","nlsList", or "nls"
2012 Feb 14
2
how to test the random factor effect in lme
Hi
I am working on a Nested one-way ANOVA. I don't know how to implement
R code to test the significance of the random factor
My R code so far can only test the fixed factor :
anova(lme(PCB~Area,random=~1|Sites, data = PCBdata))
numDF denDF F-value p-value
(Intercept) 1 12 1841.7845 <.0001
Area 1 4 4.9846 0.0894
Here is my data and my hand
2004 Nov 25
0
MASS problem -- glmmPQL and anova
Hello:
I am really stuck on this problem. Why do I get an error message with
anova() when I compare these two equations?
Hope someone can help.
ANDREW
____________________________
> fm1 <- glmmPQL(choice ~ day + stereotypy,
+ random = ~ 1 | bear, data = learning, family = binomial)
> fm2 <- glmmPQL(choice ~ day + envir + stereotypy,
+ random = ~ 1 |
2017 Nov 27
0
How to extract coefficients from sequential (type 1) ANOVAs using lmer and lme
I wantto run sequential ANOVAs (i.e. type I sums of squares), and trying to getresults including ANOVA tables and associated coefficients for predictive variables(I am using the R 3.4.2 version). I think ANOVA tables look right, but believecoefficients are wrong. Specifically, it looks like that the coefficients arefrom ANOVA with ?marginal? (type III sums of squares). I have tried both lme
2004 Nov 24
0
problem with anova and glmmPQL
Hello:
I am getting an error message when appplying anova() to two equations
estimated using glmmPQL. I did look through the archives but didn't
finding anything relevant to my problem. The R-code and results follow.
Hope someone can help.
ANDREW
____________________________
> fm1 <- glmmPQL(choice ~ day + stereotypy,
+ random = ~ 1 | bear, data = learning, family =
2003 Apr 09
1
[OFF] Nested or not nested, this is the question.
Hi,
sorry by this off.
I'm still try to understand nested design.
I have the follow example (fiction):
I have 12 plots in 4 sizes in 3 replicates (4*3 = 12)
In each plot I put 2 species (A and B) to reproduce.
After a period I make samples in each board and count the number of
individuals total (tot) and individuals A and B (nsp). Others individuals
excepts A and B are in total of
2003 Sep 30
0
lme vs. aov
Hi,
I have a question about using "lme" and "aov" for the
following dataset. If I understand correctly, using
"aov" with Error term in the formula is equivalent to
using "lme" with default settings, i.e. both assume
compound symmetry correlation structure. And I have
found that equivalency in the past. However, with the
follwing dataset, I got different
2003 Oct 02
0
lme vs. aov with Error term
Hi,
I have a question about using "lme" and "aov" for the
following dataset. If I understand correctly, using
"aov" with an Error term in the formula is equivalent
to using "lme" with default settings, i.e. both assume
compound symmetry correlation structure. And I have
found that equivalency in the past. However, with the
follwing dataset, I got different
2003 Oct 01
0
lme vs. aov with Error term again
Hi all,
Sent the following question yesterday, but haven't got
any suggestions yet. So just trying again, can anyone
comment on the problem that I have? Thank you!
-------------
Hi,
I have a question about using "lme" and "aov" for the
following dataset. If I understand correctly, using
"aov" with an Error term in the formula is equivalent
to using
2003 May 22
1
[R ] Query : problems with the arithmetic operator "^" with function "lme"
Dear all,
I've got a problem in including square variables in lme function. I've
tried to work on Dialyzer data of Pinheiro and Bates'book.
We fit the heteroscedastic model with:
> data(Dialyzer)
> fm2Dial.lme<-lme(rate~(pressure+pressure^2+pressure^3+pressure^4)*QB,
+ Dialyzer,~pressure+pressure^2,weights=varPower(form=~pressure))
We Obtain
> fm2Dial.lme
Linear
2006 Feb 23
2
Strange p-level for the fixed effect with lme function
Hello,
I ran two lme analyses and got expected results. However, I saw
something suspicious regarding p-level for fixed effect. Models are the
same, only experimental designs differ and, of course, subjects. I am
aware that I could done nesting Subjects within Experiments, but it is
expected to have much slower RT (reaction time) in the second
experiment, since the task is more complex, so it