stratified_sampling: stratified_sampling

Description Usage Arguments Value Note

View source: R/RcppExports.R

Description

select k elements from vector v w.r.t stratify structure group g. TODO - implementing via template so v is flexible as vec or uvec.

Usage

1

Arguments

v

<vector> v: a numeric candidate v from which draw sample.

k

<integer> k: selection sample size.

g

<vector> g: stratify structure g - info on grouping of v so that the selected sample is stratified across groups.

Value

s <vector> s: a vector select from v length k stratified by g.

Note

v is required as an integer vector for using in skm


gyang274/skm documentation built on May 17, 2019, 9:41 a.m.