[R] Multinomial Logit Regression
_Fede_
r_stat_solutions at hotmail.es
Fri Apr 11 20:35:36 CEST 2008
Hi all,
I have a dataset with a response variable with three categories (1, 2, 3)
and a lot of continuous variables. I'd like to make a MLR with these
variables. I've been watching the libraries nnet and zelig for this purpose
but I don't understand them well.
I use a training sample data to make the MLR.
train.set <- sample(1:1000,1000*0.7)
I have done this:
library(nnet)
net <- nnet(response.variable~., data = train.set)
Error in terms.formula(formula, data = data) :
'.' in formula y there is no 'data' argument
library(Zelig)
z=zelig(Alt.categ ~., model = "mlogit",data=train.set)
Error in terms.formula(object[[i]], specials = c("id", "tag")) :
'.' in formula y there is no 'data' argument
What's wrong here? How can I make this in the correct form?
Thank you in advance.
_Fede_
--
View this message in context: http://www.nabble.com/Multinomial-Logit-Regression-tp16628196p16628196.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list