powerADgen.Rd
Estimates the statistical power of an affect dynamics time series study for a given sampling, effect size, alpha level and metric of interest.
powerADgen(
individuals,
samples,
metric,
r,
p.value = 0.05,
min,
max,
data,
id,
affect,
time,
perm = 100
)
Number of individuals sampled.
Number of affect observations per individual.
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.
Affect scale lower bound.
Affect scale upper bound.
Data frame containing affect observations used perform power analysis.
Name of variable containing id observations.
Name of variable containing affect observations.
Name of variable containing observation order/time stamp of affect reports.
Number of simulations employed in power analysis. For robust power calculations, we recommend using a minimum of 1000 simulations.
Pirla, Taquet and Quoidbach (2021). ADD REFERENCE