Learn R Programming

optmatch (version 0.10.8)

strata: Identify Stratafication Variables

Description

This is a special function used only in identifying the strata variables when defining an exactMatch during a call to fullmatch, pairmatch, or match_on. It should not be called externally.

Usage

strata(...)

Value

the variables with appropriate labels

Arguments

...

any number of variables of the same length.

Examples

Run this code
data(nuclearplants)
fullmatch(pr ~ cost + strata(pt), data = nuclearplants)

Run the code above in your browser using DataLab