Estimate the baseline-outcome correlation (for ANCOVA planning)
Source:R/power.R
estimateBaselineCorrelation.RdFrom pilot data - a pair of numeric vectors, a data.frame with a
baseline and follow-up column, or a PhysioCohort cohortDesign()
plus column names - estimate \(\rho\) to feed sampleSizeANCOVA().
Arguments
- baseline
A numeric vector of baseline values, a
data.frame, or aPhysioCohort.- followup
A numeric vector of follow-up values (when
baselineis a vector).- cols
Length-2 character vector naming the baseline and follow-up columns (when
baselineis adata.frame/ cohort design).- method
Correlation method (default
"pearson").