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 m

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

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

2017-03-01 Thread Allan Tanaka
Hi,  I have encountered the following error, when running 'depmix' function, which I think  has something to do with my data, and I cannot understand why, even though i have converted my data into as.matrix() See attached file  library(depmixS4) library(TTR) library(ggplot2) library(reshape2) dat

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

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

2015-12-02 Thread Jorge Cimentada
Hello everyone, I'm running an ordinal logistic and I keep getting this error: Error in model.frame.default(formula = eduattain ~ dadedu, data = workdataset, : variable lengths differ (found for '(weights)') I looked at several similar questions on the internet and ended up deleting all the N

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

[R] Error in model.frame.default

2011-03-03 Thread Heike Schmitz
Dear R- Community, to learn i reanalysed some data provided and analysed by Zuur et. al. in their book "Mixed effect models and Extensions in Ecology with R". When i run the last command i get a warning message i dont understand. Loyn<- read.table(file = "loyn.txt",header = TRUE) Loyn$L.AREA

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

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

2008-02-13 Thread Klaus (Diego)
I'm getting the following errors when I try to execute the glm() procedure: If my matrix of predictors is a data.frame, R shows me this error: Error in model.frame.default(formula = Ycentro ~ metodocentro - 1, data = metodocentro, : invalid type (list) for variable 'metodocentro' If my matrix