Re: [R] "model = F" causing error in polr()

From: Rolf Turner <rolf_at_erdos.math.unb.ca>
Date: Wed 16 Aug 2006 - 06:09:56 EST

Try ``model = FALSE'' rather than ``model = F'' and see if it makes a difference. You make have an unwanted variable named ``F'' lurking somewhere.

(In general it is a *bad* idea to use ``F'' when ``FALSE'' is intended.)

                        cheers,

				Rolf Turner
				rolf@math.unb.ca

===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+=== Original message:

> Hi all,
>
> I got an error message if I set model =F in polr(), like
>
> > polr(y ~ x1 + x2, data1, model = F, method = "probit")
>
> Error in model.frame(formula, rownames, variables, varnames, extras,
> extranames, :
> variable lengths differ (found for '(model)')
> but
>
> > polr(y ~ x1 + x2, data1, method = "probit")
>
> would work.
>
> Why? Thank you,
>
> Tian



R-help@stat.math.ethz.ch 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. Received on Wed Aug 16 06:17:50 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 16 Aug 2006 - 08:21:10 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.