simulate_sample_strat: Simulate stratified Simple Random Samples from a population

Description Usage Arguments Value

View source: R/ssrs.R

Description

Function to generate stratified SRS from a given population and compute survey weighted ROC curve for each sample drawn

Usage

1
simulate_sample_strat(pop, N_sample, sample_size, grid, var_weight = "weight")

Arguments

pop

dataframe containing population information (strata, X, D)

N_sample

numeric value for number of samples to be drawn

sample_size

sample size of samples to be drawn

grid

numeric vector of points for roc curve from 0 to 1

var_weight

string value indicating sampling weight variable name

Value

a dataframe containing containing survey weighted point and interval estimates for ROC curve for each sample drawn from the specified population


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