Thanks for your help,
I managed to get it working like this:
fml<-as.formula(paste("y ~", paste(PCnames, collapse="+")))
y = class.ind(grp[outgroup])
z1=multinom(formula = fml, data=data.frame(scores))
Daniel Crouch
**QUOTE:
Forget eval(parse(text = ))
See
?as.formul
Forget eval(parse(text = ))
See
?as.formula
?update.formula
and try out the example() s there.
HTH,
Chuck
On Mon, 16 Feb 2009, Crouch, Daniel wrote:
Hi,
I am having difficulty entering a 'programmable' argument into the multinom
function from the nnet package. Intera
Hi,
I am having difficulty entering a 'programmable' argument into the multinom
function from the nnet package. Interactively, I can get the function to work
fine by calling it this way:
z1=multinom(formula = class.ind(grp[-outgroup])~ (PC1 + PC2 + PC3),
data=data.frame(scores))
However I nee
3 matches
Mail list logo