ESSgls: Effective Sample Size for 'gls' Parameters

Description Usage Arguments Details Value Note Author(s) References See Also Examples

Description

Compute the effective sample sizes associated with the parameter estimates of a general linear model fitted via gls.

Usage

1
ESSgls(model, IDcolumn)

Arguments

model

A general linear model fit of class gls from nlme.

IDcolumn

An integer giving the number of the column in the data.frame on which the model fit is based that contains the ID variable (cluster identifier).

Details

The data.frame used for model fitting must be sorted along the ID variable, otherwise you might get mock results!

Value

A vector giving the effective sample sizes associated with the estimated parameters of the gls model.

Note

Models with multiple hierarchical levels are currently not supported.

Author(s)

Philip Pallmann pallmann@biostat.uni-hannover.de

References

Faes, C., Molenberghs, G., Aerts, M., Verbeke, G., Kenward, M. G. (2009) The effective sample size and an alternative small-sample degrees-of-freedom method. The American Statistician, 63(4), 389–399.

See Also

ESSlme

Examples

1
2
3
4
5
6
### Using the example from the gls help page
library(nlme)
data(Ovary)
gls1 <- gls(follicles ~ sin(2 * pi * Time) + cos(2 * pi * Time), Ovary,
            correlation=corAR1(form=~1|Mare))
#ESSgls(model=gls1, IDcolumn=1)

PhilipPallmann/SimLongi documentation built on May 8, 2019, 1:34 a.m.