Displaying 2 results from an estimated 2 matches for "outpm".
Did you mean:
outp
2011 Apr 08
0
dynamic argument names and values as variables inside a loop
...batch
processing that allows the varb and vval to be variable. For instance, in
this toy example:
a.func<-function(...){
does.something(...)
}
#I need to pass varb as a character
my.func<-function(dat,varb){
dat.col<-dat[,varb]
vval<-unique(dat.col)
for(i in 1:length(vval){
outpm<-a.func(eval(args))
}
return(outpm)
}
#Intuitively, the following should work (but does not):
my.func<-function(dat,varb){
dat.col<-dat[,varb]
vval<-unique(dat.col)
for(i in 1:length(vval){
args<-attr(parse(text=paste(varb,"=","\"",vval[i],"\...
2007 Sep 28
1
fitted values in LMER for the fixed-effects only
Hi,
I would like to extract the fitted values from a model using LMER but
only for the fix portion of the model and not for the fix and random
portion (e.g it is the procedure outpm or outp in SAS). I am aware of
the procedure fitted() but I not sure it give the fitted values both for
the fixed and random or only the fixed. I looked in the r help and the r
list and I haven?t not found much details about it excepted this
comments from Douglas Bates in January 2006 :
?Would...