Learn R Programming

strataG (version 2.4.905)

permuteStrata: Permute strata

Description

Permute the strata slot within a '>gtypes object.

Usage

permuteStrata(g)

Arguments

g

a '>gtypes object.

Value

a '>gtypes object with the strata randomly permuted.

Examples

Run this code
# NOT RUN {
data(msats.g)
msats.g <- stratify(msats.g, "fine")
summary(msats.g)

ran.msats <- permuteStrata(msats.g)
summary(ran.msats)

# }

Run the code above in your browser using DataLab