sample.size {pda} | R Documentation |
compute sample size by group
Description
Usage
sample.size(object, ...)
## Default S3 method:
sample.size(object, ...)
## S3 method for class 'lm':
sample.size(object, data, factors, na.action, ...)
Arguments
object |
vector or list of vectors, or object from linear model fit |
... |
additional vectors in implicit list |
data |
data frame in which to interpret the variables named
inthe full and reduced objects (determined from reduced fit if
omitted) |
factors |
Character string of length 2 with names of x.factor
and trace.factoras found in fit and data (default is first 2
factors in fit). |
na.action |
missing data action |
Value
In the case of a list of vectors, a vector of their lengths. For
a linear model object, the sample size by factors.
Examples
## Not run:
sample.size(list(x1,x2,x3))
sample.size(x1,x2,x3)
sample.size(lm(y~a+b,data))
## End(Not run)
[Package
pda version 1.2-3
Index]