plot_samplingAD.Rd
Plots the set of feasible combinations of individuals and observations per individual needed to obtain a statistical power given an effect size, alpha level and metric of interest. Based on Pirla, Taquet and Quoidbach (2021).
plot_samplingAD(power = 0.8, metric, r, p.value = 0.05)
Minimum required power. Input as a number from 0.01 to 0.99. Defaults to 0.8 (80% power).
Metric of interest. Must be a single character from "Average", "Rel.SD", "SD", "RMSSD", "TKEO", "PAC" or "Autocorrelation".
Number from 0.01 to 0.99 indicating the expected effect size (Pearson correlation) of interest.
Alpha level. Must be one of the following numbers: 0.01, 0.05, 0.001, 0.005, 0.001. Defaults to 0.05.
Pirla, Taquet and Quoidbach (2021). ADD REFERENCE
plot_samplingAD(power=0.8, metric="SD", r=0.1, p.value=0.01)