CreateStrata: Create strata

Description Usage Arguments Value Author(s)

View source: R/02.ParepareDataWithinSites.R

Description

Create strata by categorizing summary scores into nStrata quantiles. If there are fewer discrete scores than nStrata, the rank will be returned. Sometimes a single value may have many data points causing quantile threshold to be identical values. The duplicated threshold values are dropped in this case, giving levels fewer than nStrata.

Usage

1
CreateStrata(score, nStrata)

Arguments

score

summary score to be categorized.

nStrata

number of strata.

Value

vector strata as numeric

Author(s)

Kazuki Yoshida


kaz-yos/distributed documentation built on May 27, 2019, 4:50 a.m.