stepp.GLM: The constructor to create the stmodelGLM object
Description
This is the constructor function for stmodelGLM object. Three kinds of GLMs are supported at this time:
gaussian with identity link, binomial with logit link and Poisson with log link.
Usage
stepp.GLM(coltrt, trts, colY, MM, glm, link)
Value
It returns a stmodelGLM object.
Arguments
coltrt
the treatment variable
trts
a vector containing the codes for the 2 treatment arms, 1st and 2nd treatment groups, respectively
colY
a vector containing the outcome
MM
a model matrix for additional covariates; default is NULL
no logical values or factors allowed
these values need to be converted to numeric with some encoding scheme
glm
the glm to be used for analysis: "gaussian", "binomial", "poisson"
link
the link function; reserved for future use
Author
Wai-Ki Yip
References
Yip WK, Bonetti M, Cole BF, Barcella W, Wang XV, Lazar A and Gelber R (2016),
"STEPP- Subpopulation Analysis for Continuous, Binary and Count Outcomes",
Clinical Trials 2016 August ; 13(4): 382-290, doi:10.1177/1740774516643297.