simulate_strat: Simulation function for stratified SRS

Description Usage Arguments Value

View source: R/ssrs.R

Description

Generates stratified populations and draw stratified SRS from each population. Computes survey weighted ROC curve for each sample drawn form each of the genereated populations

Usage

1
2
3
4
5
6
7
8
9
simulate_strat(
  N_pop,
  pop_size,
  param_pop,
  prop_disease,
  N_sample,
  sample_size,
  grid = seq(0, 1, by = 0.1)
)

Arguments

N_pop

numeric value for number of stratified population to be generated

pop_size

numeric value for population size of populations generated

param_pop

data frame containing population parameters (prob, mu0, mu1, sigma0, sigma1)

N_sample

numeric value for number of samples to be drawn

sample_size

numeric value for sample size of samples to be drawn

grid

numeric vector of points for roc curve from 0 to 1

Value

a dataframe containing containing survey weighted point and interval estimates for ROC curve for each sample drawn from each of the generated populations


tamytsujimoto/surveyROC documentation built on Sept. 8, 2021, 11:35 p.m.