[R] ols Error : missing value where TRUE/FALSE needed
Frank E Harrell Jr
f.harrell at vanderbilt.edu
Thu Mar 15 01:58:08 CET 2007
Charles Evans wrote:
> I have installed Hmisc and Design. When I use ols, I get the
> following error message:
>
> Error in if (!length(fname) || !any(fname == zname)) { :
> missing value where TRUE/FALSE needed
>
> The model that I am running is:
>
> > ecools <- ols(eco$exp ~ eco$age + eco$own + eco$inc + inc2, x=TRUE)
ecools <- ols(exp ~ age + own + inc + inc2, data=eco, x=TRUE)
Watch out for variables named exp but probably OK.
Frank Harrell
>
> I have tried several other combinations of arguments that take TRUE/
> FALSE values, but no luck.
>
> Ultimately, I am trying to calculate robust standard errors.
>
> Any help would be appreciated.
>
> Charles Evans
> Executive Director
> Free Curricula Center
>
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at 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.
>
--
Frank E Harrell Jr Professor and Chair School of Medicine
Department of Biostatistics Vanderbilt University
More information about the R-help
mailing list