This package computes the optimal combination of number of participants and number of repeated measurements in longitudinal studies with fixed follow-up duration such that maximizes the power to detect the effect under the alternative hypothesis without exceeding a fixed budget or minimizes the cost of the study while achieving a certain power. Response variable is assumed to be continuous with damped exponential covariance structure and the exposure of interest is assumed to be binary which can be time-varying as well as its prevalence. The methods are described in the manuscript Optimal combination of number of participants and number of repeated measurements in longitudinal studies with time-varying exposure.
Download:
Package source: optimalAllocation_1.0.tar.gz
Windows binary: optimalAllocation_1.0.zip
Reference manual: optimalAllocation-manual.pdf
Vignette: optimalAllocation.pdf