[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

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