Hello! I need some help, because I don't know how this error means: Error: variables ?Output1?, ?Output2?, ?Output3?, ?Output4?, ?Output5? were specified with different types from the fit Execution halted Can you help me? Thank You
> I need some help, because I don't know how this error means: Error: > variables ?Output1?, ?Output2?, ?Output3?, ?Output4?, ?Output5? were > specified with different types from the fit > Execution halted > > Can you help me?No! Please read the posting guide at http://www.R-project.org/posting-guide.html Please give a reproducible example that tells us exactly what you were doing when you got the error message (and give a subject that is more informative than 'Error'). Regards, Richie. Mathematical Sciences Unit HSL ------------------------------------------------------------------------ ATTENTION: This message contains privileged and confidential inform...{{dropped:21}}
> >> I need some help, because I don't know how this error means: Error: > >> variables ?Output1?, ?Output2?, ?Output3?, ?Output4?, ?Output5? were > >> specified with different types from the fit > >> Execution halted> I have two tables and I join them like this: tabela <- > data.frame(dados.indep[1,], rank.freq) > > rank.freq is > Output1 Output2 Output3 Output4 Output5 > 1 1 2 3 4 5 > > dados.indep[1,] > Input1 Input2 Input3 Input4 Input5 Input6 > 1 b 1 a b 15 12 > > tabela > Input1 Input2 Input3 Input4 Input5 Input6 Output1 Output2 Output3Output4> 1 b 1 a b 15 12 1 2 3 4 > Output5 > 1 5 > > The error occour when I do: > predict(arv, tabela) > where arv is the model.Okay, this is a bit better, but it's still not possible to reproduce exactly what you are doing. From what you've told me, all I can suggest is: 1. That you read the help page for whichever version of predict you were using (e.g. ?predict.lm) 2. See what types of input the model 'arv' needs. Are they numeric? How many of them should there be? 3. Try traceback(), to see exactly where the error occured 4. Set options(error=recover), and type the code that causes the error again. Regards, Richie. Mathematical Sciences Unit HSL ------------------------------------------------------------------------ ATTENTION: This message contains privileged and confidential inform...{{dropped:20}}
Carla Rebelo wrote:> Hello! > > I need some help, because I don't know how this error means: Error: > variables ?Output1?, ?Output2?, ?Output3?, ?Output4?, ?Output5? were > specified with different types from the fitPlease read the posting guide! Please tell us at least what produced the error in a reproducable way. I think you are using predict and the type of Output1, e.g., was a different one when estimating the model than when trying to predict from it. Uwe Ligges> Execution halted > > Can you help me? > Thank You > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.