Learn R Programming

LPower (version 0.1.1)

Calculates Power, Sample Size, or Detectable Effect for Longitudinal Analyses

Description

Computes power, or sample size or the detectable difference for a repeated measures model with attrition. It requires the variance covariance matrix of the observations but can compute this matrix for several common random effects models. See Diggle, P, Liang, KY and Zeger, SL (1994, ISBN:9780198522843).

Copy Link

Version

Install

install.packages('LPower')

Monthly Downloads

162

Version

0.1.1

License

Unlimited

Maintainer

David A Schoenfeld

Last Published

December 11th, 2019

Functions in LPower (0.1.1)

LPower

Calculates either the power, sample size, or detectable effect for a longitudinal study with a repeated measures design.
randomSlopesMatrix

Creates the xMatrix and zMatrix, and attrition rates for a two treatment clinical trial analyzed using the random slopes model.
randomEffectsMatrix

Calculates the variance covariance matrix for a multivariate normal vector when there are random effects.