Re: [R] sample size for linear regression

From: Ingmar Visser <I.Visser_at_uva.nl>
Date: Tue 21 Nov 2006 - 09:50:21 GMT


Length(y) is typically considered the sample size but apparantly not what you're looking for ...
Does fortune(172) apply here?
Best, Ingmar

> From: John Sorkin <jsorkin@grecc.umaryland.edu>
> Date: Mon, 20 Nov 2006 20:13:06 -0500
> To: <r-help@stat.math.ethz.ch>
> Subject: [R] sample size for linear regression
>
> Is there an R function that can be used to calculate a sample size for a
> linear regression:
> i.e.
> Given a linear regression:
> y=f(x,z)
> i.e. fit1<-lm(y~x+z)
> is there a function which can be passed coef(z), SE(z), and other
> parameters to determine a sample size based on z, SEz and other
> information from the regression?
> Thanks,
> John
>
>
> John Sorkin M.D., Ph.D.
> Chief, Biostatistics and Informatics
> Baltimore VA Medical Center GRECC,
> University of Maryland School of Medicine Claude D. Pepper OAIC,
> University of Maryland Clinical Nutrition Research Unit, and
> Baltimore VA Center Stroke of Excellence
>
> University of Maryland School of Medicine
> Division of Gerontology
> Baltimore VA Medical Center
> 10 North Greene Street
> GRECC (BT/18/GR)
> Baltimore, MD 21201-1524
>
> (Phone) 410-605-7119
> (Fax) 410-605-7913 (Please call phone number above prior to faxing)
> jsorkin@grecc.umaryland.edu
>
> Confidentiality Statement:
> This email message, including any attachments, is for the so...{{dropped}}
>
> ______________________________________________
> 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.



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 Nov 22 16:51:26 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 22 Nov 2006 - 06:30:21 GMT.

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