Re: [R] Using eval in multinom argument

2009-02-17 Thread Crouch, Daniel
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

Re: [R] Using eval in multinom argument

2009-02-16 Thread Charles C. Berry
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

[R] Using eval in multinom argument

2009-02-16 Thread Crouch, Daniel
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