Displaying 20 results from an estimated 5000 matches similar to: "as.formula(string) and augPred in lme"
2004 Nov 30
1
augPred with lme(...,subset=...)
Hello,
Is there a way to get augPred to work with lme if a subset statement is
used? For example, if I modify the example from ?augPred.lme to include
a subset statement, I get the following error:
fm1 <- lme(Orthodont, random = ~1, subset=distance>19)
augPred(fm1, length.out = 2, level = c(0,1))
Error in tapply(object[[nm]], groups, FUN[["numeric"]], ...) :
arguments
2006 Jul 03
1
panel ordering in nlme and augPred plots
Hi,
I'm new at this, I'm very confused, and I think I'm missing something
important here. In our pet example we have this:
> fm <- lme(Orthodont)
> plot(Orthodont)
> plot(augPred(fm, level = 0:1))
which gives us a trellis plot with the females above the males,
starting with "F03", "F04", "F11", "F06", etc. I thought the point of
2005 Sep 29
1
plot.augPred sorted and labelled according second factor
Hi
using this code example:
library(nlme)
fm1 <- lme(Orthodont, random = ~1)
plot(augPred(fm1))
is there any way to have the plots in each cell labelled and ordered
according to Orthodont$Sex? I.e. in addition to the bar with the label for
Orthodont$Subject there is another bar labelling the Sex of the subject?
thanks a lot
christoph
--
2006 Sep 04
1
abline and plot(augPred) help
Dear all
as I did not get any response on my post about abline and
plot(augPred)) I try again. I hope I do not break some posting guide
rules. I would try to contact package maintainer directly but there
is stated to be R-core people, so I feel R-help list shall be OK.
I need to draw straight lines through augPred plotted panels
(vertical or horizontal) at specified point. I know I shall
2008 Oct 08
1
Observed responses in 'augPred' data frame - Wrong order ?
Dea-R community.
I'd like to draw your attention to an issue I have recently
encountered while doing my current data analysis.
I've got an unexpected (to me) result from the command:
> augPred(lmList(my.object)),
'my.object' being a grouped data frame of class:
> class(my.object)
[1] "nfnGroupedData" "nfGroupedData" "groupedData"
1999 Jun 02
1
lme problem ?
Dear friends. I tried the session below with 10 MB in both vsize and nsize but didn't get the
example work. Is this a problem in LME or in me or both or somewhere else or undefined ?
R : Copyright 1999, The R Development Core Team
Version 0.64.0 Patched (May 3, 1999)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type
2006 Sep 07
5
augPred plot in nlme library
All,
I'm trying to create an augPred plot in the nlme library, similar to the
plot on
p.43 of Pinheiro & Bates (Mixed Effects Models in S and S-Plus) for
their Pixel data.
My data structure is the same as the example but I still get the error
msg below.
> comp.adj.UKV <- groupedData(adj.UKV ~ Time | Patient_no/Lisinopril,
data = comp.adj.UKV.frm, order.groups = F)
>
2005 Jun 08
0
bug in predict.lme?
Dear All,
I've come across a problem in predict.lme. Assigning a model formula to a variable and then using this variable in lme (instead of typing the formula into the formula part of lme) works as expect. However, when performing a predict on the fitted model I gan an error messag - predict.lme (but not predictlm) seems to expect a 'properly' typed in formula and a cannot extract
2005 Apr 25
4
panel ordering in nlme and augPred plots
Dear all
I am trying nlme together with Pinheiro/Bates book. I constructed
grouped data object with suitable plotting layout (according to
some common factor, panels from bottom to top are in increasing
order).
When I do nlme(... some stuff...) I get fitted object which I can plot
with
plot(augPred(fit.nlme6, level=0:1))
but it results in completely different ordering. Is there any way
2009 Jun 25
2
Problems with subsets in NLME
I am trying to estimate models with subsets using the NLME package. However, I am getting an error in the case below (among others):
> subset <- c(rep(TRUE, 107), FALSE)
> fm2 <- lme(distance ~ age + Sex, data = Orthodont, random = ~ 1, subset=subset)
Error in xj[i] : invalid subscript type 'closure'
> fm2 <- lme(distance ~ age + Sex, data = Orthodont, random = ~ 1,
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
2006 Aug 24
2
my error with augPred
Dear all
I try to refine my nlme models and with partial success. The model is
refined and fitted (using Pinheiro/Bates book as a tutorial) but when
I try to plot
plot(augPred(fit4))
I obtain
Error in predict.nlme(object, value[1:(nrow(value)/nL), , drop =
FALSE], :
Levels (0,3.5],(3.5,5],(5,7],(7,Inf] not allowed for
vykon.fac
>
Is it due to the fact that I have unbalanced
2011 Jul 07
2
How do I overlay two trellis plots of lme fitted lines produced by plot.augPred?
Hello,
I want to use lme to fit two (or more) models, and then compare the fits
on each individual. I know how to write my own code to do this (for each
individual, plot the raw data, followed by lines() to plot each fitted
curve) but I would like to use plot(augPred(... as it produces a nice
trellis plot. I thought I could do this with par(new=T) but it does not
seem to work.
2008 Aug 28
1
Adjusting for initial status (intercept) in lme growth models
Hi everyone, I have a quick and probably easy question about lme for this
list.
Say, for instance you want to model growth in pituitary distance as a
function of age in the Orthodont dataset.
fm1 = lme(distance ~ I(age-8), random = ~ 1 + I(age-8) | Subject, data =
Orthodont)
You notice that there is substantial variability in the intercepts (initial
distance) for people at 8 years, and that
2012 Mar 20
1
Remove quotes from a string to use in a variable call
Hi,
I have a string that I want to use in a variable call. How can I remove the
quotes and/or the string properties of the string to use it in a variable
call?
Here's an example:
library(lme)
fm2 <- lme(distance ~ age, data = Orthodont, random = ~ 1)
summary(fm2)
I want to update the above regression to include new predictors according to
what is in a string:
predictors <-
2000 Jun 04
2
mle (PR#560)
Full_Name: Per Broberg
Version: 1.00
OS: Windows 98
Submission from: (NULL) (62.20.231.229)
I tested my installation with the following:
> library(lme)
Loading required package: nls
Error in dyn.load(x, as.logical(local), as.logical(now)) :
unable to load shared library
"C:\PROGRAM\R\RW1000/library/nls/libs/nls.dll":
LoadLibrary failure
> data(Orthodont)
> fm1
2006 Nov 09
0
Help with plot(augPred()) plot(comparePred()) in nlme
Dear r-helpers,
When I issue the commands
plot(augPred(mcc.lme, primary = ~ mcc$age, length.out = 2, level = c
(0, 1)))
or
plot(comparePred(mcc1.lis, mcc.lme, primary = ~ mcc$age, length.out =
2), layout = c(4, 3)))
no lines are drawn.
But
fm1 <- lme(Orthodont)
plot(augPred(fm1, level = 0:1, length.out = 2))
does plot lines.
augPred() and comparePredict() seem to be working correctly, as
2017 May 10
2
bug report: nlme model-fitting crashes with R 3.4.0
lme() and gls() models from the nlme package are all crashing with R.3.4.0. Identical code ran correctly, without error in R 3.3.3 and earlier versions. The behavior is easily demonstrated using one of the examples form the lme() help file, along with two simple variants. I have commented the errors generated by these calls, as well as the lines of code generating them, in the code example below.
1999 Jun 02
0
Sv: lme problem ?
Dear Douglas Bates. I just downloaded the compiled version (I'm a poor Windows devil, not yet having found the time to move to a more advanced platform...) from NT- the files are dated 30.5-1999 so they are not old - and the problem persisted....wonder what I did wrong ?
R : Copyright 1999, The R Development Core Team
Version 0.64.0 Patched (May 3, 1999)
R is free software and comes with
2006 Jul 24
3
standardized random effects with ranef.lme()
Using ranef() (package nlme, version 3.1-75) with an 'lme' object I can
obtain random effects for intercept and slope of a certain level (say:
1) - this corresponds to (say level 1) "residuals" in MLWin. Maybe I'm
mistaken here, but the results are identical.
However, if I try to get the standardized random effects adding the
paramter "standard=T" to the