[R] sample size for linear regression

Ingmar Visser I.Visser at uva.nl
Tue Nov 21 10:50:21 CET 2006


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 at grecc.umaryland.edu>
> Date: Mon, 20 Nov 2006 20:13:06 -0500
> To: <r-help at 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 at grecc.umaryland.edu
> 
> Confidentiality Statement:
> This email message, including any attachments, is for the so...{{dropped}}
> 
> ______________________________________________
> 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.



More information about the R-help mailing list