sample.size: compute sample size by group

Usage Arguments Value Examples

Usage

1
2
3
4
5
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

1
2
3
4
5
6
## Not run: 
sample.size(list(x1,x2,x3))
sample.size(x1,x2,x3)
sample.size(lm(y~a+b,data))

## End(Not run)

byandell/pda documentation built on May 13, 2019, 9:27 a.m.