Rdocumentation
powered by
Learn R Programming
simstudy (version 0.1.1)
trtObserve: Observed exposure or treatment
Description
Observed exposure or treatment
Usage
trtObserve(dt, formulas, logit.link = FALSE, grpName = "trtGrp")
Arguments
dt
data table
formulas
collection of formulas that determine probabilities
logit.link
indicator that specifies link. If TRUE, then logit link is used. If FALSE, the identity link is used.
grpName
character string representing name of treatment/exposure group variable
Value
An integer (group) ranging from 1 to length of the probability vector