fmla2treatedblocking: (Internal) A helper function to turn formulas into treatment...

View source: R/feasible.R

fmla2treatedblockingR Documentation

(Internal) A helper function to turn formulas into treatment and blocking variables

Description

Given a function and any of the arguments normally passed to model.frame, this function will return a data.frame with two columns: a treatment indicator and a blocking factor.

Usage

fmla2treatedblocking(x, ...)

Arguments

x

A formula

...

Arguments to be passed to model.frame (e.g. data)

Value

data.frame containing two columns: Z is a treatment indicator, B is a blocking factor


jgellar/GroupMatch documentation built on Nov. 8, 2022, 10:48 p.m.