Re: [R] Error in model.frame.default(formula = formula, data = data, drop.unused.levels = TRUE, : object is not a matrix

2017-03-01 Thread PIKAL Petr
Hi what is result of str(deret) or is.matrix(deret) Cheers Petr > -Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Allan > Tanaka > Sent: Wednesday, March 1, 2017 11:52 AM > To: r-help@r-project.org > Subject: [R] Error in model.frame.default(formul

Re: [R] Error in model.frame.default(formula = formula, data = data, drop.unused.levels = TRUE, : object is not a matrix

2017-03-01 Thread Rui Barradas
Hello, >What is function logret? After loading the packages I've tried ?logret No documentation for ‘logret’ in specified packages and libraries: you could try ‘??logret’ Besides, how can you use a function logret(data1.ts, ...) and then do depmix(logret ~ 1, ...) Suddenly logret becomes a c

Re: [R] Error in model.frame.default… variable lengths differ (Without NA's)

2015-12-02 Thread William Dunlap
In your > ordinalmodel <- polr(eduattain ~ dadedu, data = workdataset, weights = > "SPFWT0", Hess = TRUE) take the quotation marks off of SPFWT0. Like the subset argument, weights is a literal expression, evaluated in the context of the data argument, not a character string naming a column in the

Re: [R] Error in model.frame.default

2011-03-04 Thread David Winsemius
On Mar 4, 2011, at 4:47 AM, Heike Schmitz wrote: Hi again, dear Dennis, i checked the spelling in Zuur et al. and they wrote it like i did. I tried your suggestion but now i have another warning message: D1<- data.frame(L.AREA= Loyn$L.AREA[Loyn$fGRAZE==1], fGraze = "1") Error in data.fram

Re: [R] Error in model.frame.default

2011-03-04 Thread Heike Schmitz
Hi again, dear Dennis, i checked the spelling in Zuur et al. and they wrote it like i did. I tried your suggestion but now i have another warning message: > D1<- data.frame(L.AREA= Loyn$L.AREA[Loyn$fGRAZE==1], fGraze = "1") Error in data.frame(L.AREA = Loyn$L.AREA[Loyn$fGRAZE == 1], fGraze = "

Re: [R] Error in model.frame.default

2011-03-03 Thread Dennis Murphy
Hi: You need the second variable in D1 to be named fGRAZE - the variable names in the newdata data frame (D1) have to be the same as the variable names on the RHS of the model formula, in this case L.AREA and fGRAZE. HTH, Dennis On Thu, Mar 3, 2011 at 7:43 AM, Heike Schmitz wrote: > Dear R- Com

Re: [R] Error in model.frame.default: invalid type (list) for variable ...

2008-02-14 Thread Klaus (Diego)
I got it right now, It wasn't working because the matrix of predictors had the same name as the dataset, so I modified the call creating a dataset with the response and predictors and keeping the data.frame using the same name metodocentrod <- data.frame(metodocentro) resultadocentro <- glm(Ycent