Displaying 20 results from an estimated 2000 matches similar to: "coef se in lme"
2007 Oct 01
2
non-linear model parameterization
Dear all,
I would like to fit a non-linear model of the form:
y=g*x/(a+b*x)
with nls().
However this model is somehow overparameterized and I get the error message about
singular gradient matrix at initial parameter estimates.
What I am interested in is to make inference about parameters b and g, so this has to be taken into account in the model formulation.
What options do I have?
Also, how is
2007 Oct 09
5
continue for loop in case of erros
Dear all,
I have a for loop which includes nls model estimation.
The loop breaks after the first non-convergence error.
How can I make the loop continue and try to estimate all models?
I suppose it should be sth like: if(...) { next }
but I have no idea how to setup the arguements...
Thank you!
Irene
2007 Jun 21
3
meta-analysis in R
I would like to combine time-series data to test for correlations and
interactions using random and fixed effects meta-analysis.
So, I am looking for the right packages and documentation.
I know about meta and rmeta packages of R.
Are there any more? What are the diffrences in brief?
Can you please suggest some references that could be used as a guide for
meta-analysis in R (or S-plus)?
2008 Feb 18
3
mean and variance of ratio
Hi all!
I try to estimate a statistic of the form: (x1-x2)/(y1-y2), where
x1,x2,y1,y2 represent variable means, so each has an estimate and
standard error associated with it.
How is it possible to estimate the mean and the variance of this ratio?
Thank you!
[[alternative HTML version deleted]]
2008 May 02
3
points size in plots
Dear list,
I would like to produce a plot of variables where the size of the points
will be indicative of their standard errors.
How is that possible?
Thank you!
[[alternative HTML version deleted]]
2007 Nov 04
1
hierarchical mixed model
I would like to fit a 2-level mixed model:
yit=a+a[i]+a[it] +(b+b[i]+b[it])*xit+eps[it]
However, the variance of the second level components should depend on the group, i.e. sigma for a[it] and b[it] should be [i] specific.
I do not know whether this is conceptually right in the mixed model context...
In case it stands, how should the formula look like?
Also, the data are unbalanced with
2015 Feb 15
2
Imports problem
I'm testing out a new version of coxme and R CMD check fails with "could not find function
ranef" (or random.effects or fixef, or anything from nlme). The NAMESPACE file has the
line below
importFrom(nlme, ranef, random.effects, fixef, fixed.effects, VarCorr)
and nlme is declared in the DESCRIPTION file as an import. I feel that I must be staring
at some obvious (but
2008 Feb 19
1
regression with error in predictor
Hi all!
I am trying to run a regression where the predictor values are not real
data but each is estimated from a different model. So, for each value I
have a mean and variance.
Which package/function should I use in this case?
Thank you!
Irene
[[alternative HTML version deleted]]
2007 Apr 06
2
plotting multilevel / lme lines
Dear expeRts,
I am trying to plot a lme-object {package nlme) in such a way, that
on a selected level the x-axis represents the value on a selected
predictor and the y-axis represents the predicted-outcome variable.
The graphs would than consist of several lines that each represent
one group. I can't find such a plotting function.
I could write such a function myself, based on
2010 Mar 05
2
Defining a method in two packages
The coxme package has a ranef() method, as does lme4. I'm having
trouble getting them to play together, as shown below. (The particular
model in the example isn't defensible, but uses a standard data set.)
The problem is that most of the time only one of lme4 or coxme will be
loaded, so each needs to define the basic ranef function as well as a
method for it. But when loaded together
2007 Feb 15
2
simpleR or usingR package by Verzani
I am a new R user and so I thought I could start with "Using R for
Introductory statistics" by Verzani.
In order to use some of the functions and datasets I have to install the
simpleR package which is is now inside the UsingR package. I did so
using
>install.packages("UsingR"). However, the functions such as
"simple.freqpoly.R" do not work.
I also tried to
2015 Feb 16
2
Imports problem
On 16/02/2015 8:20 AM, Therneau, Terry M., Ph.D. wrote:
>
>> > I'm testing out a new version of coxme and R CMD check fails with "could not find function
>> > ranef" (or random.effects or fixef, or anything from nlme). The NAMESPACE file has the
>> > line below
>>
>> > importFrom(nlme, ranef, random.effects, fixef,
2013 Apr 30
1
Mixed Modeling in lme4
Hi All,
I am trying to shift from running mixed models in SAS using PROC MIXED
to using lme4 package in R. In trying to match the coefficients of R
output to that of SAS output, I came across this problem.
The dataset I am using is this one:
http://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_mixed_sect034.htm
If I run the following code:
proc mixed data=rc
2010 Jan 18
2
Problem extracting from mer objects
I am having a problem extracting from "mer" objects.
I have constructed my problem using existing datasets.
Using the following commands:
require(lme4)
fm1 <- lmer(Yield ~ 1 + (1 | Batch), Dyestuff)
fixef(fm1)
I get the following error message:
"Error in UseMethod("fixef") : no applicable method for "fixef""
I know that "fixef" is in
2006 May 09
1
trying to use standard notation
Hi, all. In setting up my package for post-processing regression
models, I am trying to use standard notation as much as possible: thus,
I use coef() to access estimated coefficients. I wrote a function
called se.coef() to grab standard errors, and se.fixef() and se.ranef()
to grab se's from coefficients estimated from lmer().
I also need a function to access sigma-hat (the residual sd
2010 Oct 18
1
Question about lme (mixed effects regression)
Hello!
If I run this example:
library(nlme)
fm1 <- lme(distance ~ age+Sex, Orthodont, random = ~ age + Sex| Subject)
If I run:
summary(fm1)
then I can see the fixed effects for age and sex (17.7 for intercept,
0.66 for age, and -1.66 for SexFemale)
If I run:
ranef(fm1)
Then it looks like it's producing the random effects for each subgroup
(in this example - each subject). For example,
2006 Sep 07
2
Matrix package in R-2.4.0alpha
In a newly downloaded version (today) of R-2-4-0alpha, with all packages
from CRAN also installed today, I get:
> library(Matrix)
Erro en loadNamespace(package, c(which.lib.loc, lib.loc), keep.source =
keep.source) :
in 'Matrix' methods specified for export, but none defined: BIC,
anova, coef, confint, deviance, fitted, fixef, formula, head, lmer, logLik,
mcmcsamp, plot,
2006 Jul 15
3
names() function and lmer()
Hello All,
I would like to retrieve some of the results from the lmer(...)
function in library lme4. If I run a model, say
fm.1 <- lmer(y ~ 1 + (1 | x), data = dog)
and try names(fm.1), I get NULL. Is there anyway to retrieve the information?
Thanks
2004 Feb 20
1
A question on lme in R
Hi, everyone,
I have a question on using lme on a mixed effects model with nested
error structure. After applying lme to the data, and put the outcome in,
say TR.lme. I can extract the fixed effects by TR.lme$coef$fixed.
However, when I use TR.lme$coef$random.effects, it does not give the
variance components that I need, but a vector of values at each nested
level. What I want are the
2007 Oct 07
1
constructing a self-starting non-linear model
Dear all,
I am trying to define a selfStart function for a non-linear model, which is a log-transformed SSmicmen model with multiplicative errors and so it is required to make them additive:
log(y)=log(a)+log(x)-log(1+x/b)
Any ideas about how to use the "peeling" method to derive the "initial" argument and get the initial values?
Thank you for being always there!:)