An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20090317/9f3b4800/attachment-0002.pl>
- help - predicting with glmnet/lars for dataframes with different nrow then the train set
2 messages · eitan lavi, Hadley Wickham
On Mon, Mar 16, 2009 at 7:21 PM, eitan lavi <lavi.eitan at gmail.com> wrote:
Hello I'm having trouble using lars and glmnet functions to predict on a new data set with different nrow then the original : for instance: ============= ? ?log.1 = glm(temp.data$TL~(.),temp.data,family = binomial,x=TRUE,y=TRUE)
I don't know if this is the problem or not (you didn't supply a reproducible example), but I'd expect your call to be: log.1 <- glm(TL ~ ., data = temp.data , family = binomial , x = TRUE, y = TRUE) i.e. when you supply a data frame you don't explicitly use it in the formula. Hadley