Learn R Programming

sleacr (version 0.1.3)

get_sample_n: Calculate sample size and decision rule for a specified LQAS sampling plan

Description

Calculate sample size and decision rule for a specified LQAS sampling plan

Usage

get_sample_n(N, dLower, dUpper, alpha = 0.1, beta = 0.1)

get_sample_d(N, n, dLower, dUpper, alpha = 0.1, beta = 0.1)

Value

A list of values providing the LQAS sampling plan for the specified parameters. The list includes sample size, decision rule, alpha error and beta error for the specified classification scheme

Arguments

N

Total population size of cases in the specified survey area

dLower

Lower triage threshold. Values from 0 to 1.

dUpper

Upper triage threshold. Values from 0 to 1.

alpha

Maximum tolerable alpha error. Values from 0 to 1. Default is 0.1

beta

Maximum tolerable beta error. Values from 0 to 1. Default is 0.1

n

Sample size

Examples

Run this code
get_sample_n(N = 600, dLower = 0.7, dUpper = 0.9)
get_sample_d(N = 600, n = 40, dLower = 0.7, dUpper = 0.9)

Run the code above in your browser using DataLab