utils.attrition: Inflate Sample Size for Attrition

inflate.sampleR Documentation

Inflate Sample Size for Attrition

Description

Helper function to inflate sample size for attrition.

Usage

  inflate.sample(n, rate = 0.05,
               ceiling = TRUE,
               verbose = TRUE)

Arguments

n

sample size.

rate

attrition rate.

ceiling

rounds-up the inflated sample size.

verbose

logical; whether the output should be printed on the console. TRUE by default.

Value

inflated sample size.

Examples


inflate.sample(n = 100, rate = 0.05)


pwrss documentation built on Sept. 16, 2025, 9:11 a.m.