constrained_uniform: Find (constrained) uniform exact allocation of the study for...

View source: R/constrained_uniform.R

constrained_uniformR Documentation

Find (constrained) uniform exact allocation of the study for bounded design

Description

Find (constrained) uniform exact allocation of the study for bounded design

Usage

constrained_uniform(Ni, nsample)

Arguments

Ni

a vector with size m, upper bound for exact design of each category/stratification group, if unconstrained, use Inf vector, the function will return unbounded uniform allocation

nsample

a number, the sample size

Value

n is the constrained/unconstrained uniform exact allocation

Examples


constrained_uniform(Ni=c(50, 40, 10, 200, 150, 50), nsample=200)


CDsampling documentation built on Oct. 13, 2024, 9:07 a.m.