Re: [R] fastbw question

From: Frank E Harrell Jr <f.harrell_at_vanderbilt.edu>
Date: Thu 31 Mar 2005 - 01:41:40 EST

Peter Flom wrote:
> Hello
>
> I am running R 2.0.1 on Windows, I am attempting to use Frank Harrell's
> 'fastbw' function (from the Design library), but I get an error that the
> fit was not created with a Design library fitting function; yet when I
> go to the help for fastbw (and also look in Frank's book Regression
> Modeling Strategies) it appears that fastbw should work with a model
> created with lm.....
>
> Relevant code
> <<<<<
> model.borrow.logols<- lm(logborrow~age + sex + racgp + yrseduc +
> needlchg + gallery + totni + inject + poly(year.of.int,3) + druginj
> + inj.years + HTLV3)
>
> fastbw(model.borrow.logols)

The error message was exactly correct. lm is not a Design fitting function. Try ols. -Frank

>
>
> Thanks in advance
>
>
> Peter
>
> Peter L. Flom, PhD
> Assistant Director, Statistics and Data Analysis Core
> Center for Drug Use and HIV Research
> National Development and Research Institutes
> 71 W. 23rd St
> www.peterflom.com
> New York, NY 10010
> (212) 845-4485 (voice)
> (917) 438-0894 (fax)
>
> ______________________________________________
> 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
>

-- 
Frank E Harrell Jr   Professor and Chair           School of Medicine
                      Department of Biostatistics   Vanderbilt University

______________________________________________
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
Received on Thu Mar 31 01:49:09 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:30:57 EST