Displaying 2 results from an estimated 2 matches for "tmpzx".
Did you mean:
tmpx
2000 Sep 29
0
Is it R or I?
..."addcolx", names(xd))] <- resp
cat("Lm Model", "\n")
lmexp <- formula(paste(resp, " ~ ", pickedlist,sep=""))
lmexpall <- formula(paste(resp, " ~ .", sep=""))
assign("xd", xd, env=.GlobalEnv)
tmpzx <- lm(lmexp, data=xd)
# NOTE: THE STEP() TAKES FOREVER IN R
# tmpzx2 <-lm(lmexpall,data=xd)
# tmpzxall <- step(tmpzx2, trace=0)
cat ("Done building model", "\n")
# Get predictions
xp <- predict(tmpzx,se.fit=T,interval=c("confidence&quo...
2000 Sep 22
3
eval functions... (PR#668)
...n runs fine in S-PLUS but gives the error:
Error in x[[j]] : subscript out of bounds
in R
code snippet .....
attach(xd)
resp <- "iv802"
pickedlist <- "BD + CEC + CLAY + ERODFAC + INCEPTSL"
lmexp <- paste(resp, " ~ ", pickedlist,sep="")
tmpzx <- eval(lm(lmexp,data=xd))
Essentially, I want to do:
lm(iv802 ~ BD + CEC + CLAY + ERODFAC + INCEPTSL, data=xd)
thru a function that has the parameters passed thru TclTk and Perl......
Thanks much.
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel maili...