Description

sampsizer

sampsizer

Sample size for simple random surveys or random cluster surveys

get_deff()

Function to calculate design effect (DEFF) given intracluster correlation coefficient (ICC) and cluster size.

get_icc()

Function to calculate the intracluster correlation coefficient of an indicator collected from random cluster survey (RCS). This is a wrapper of the deff() function in the Hmisc package.

get_ss_prevalence()

Function to calculate sample size for estimating prevalence/proportional indicators from a simple random sample (SRS) or a random cluster sample (RCS) survey. This function has an option to apply a finite population correction (FPC) to the sample size calculations.

Sample size for stepped wedge studies

get_deff_swedge()

Function to calculate the design effect of a stepped wedge cluster randomised study.

get_ss_swedge()

Function to calculate sample size requirements for a stepped wedge cluster randomised study.

Sample size for receiver-operator characteristic curve studies

get_k_roc()

Function to calculate ratio of cases to non-cases in the sample for an ROC analysis

get_a_roc()

Function to calculate the A binormal distribution parameter

get_vf_roc()

Function to calculate variance function (VF) of the area under the curve (AUC) for the receiver operator characteristic (ROC) curve sample size calculations

get_nc_roc()

Function to calculate the number of cases needed for an ROC analysis for a single test

get_n_roc()

Function to calculate total sample size for an ROC analysis for a single test