stepp.GLM | R Documentation |
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.
stepp.GLM(coltrt, trts, colY, MM, glm, link)
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 |
glm |
the glm to be used for analysis: "gaussian", "binomial", "poisson" |
link |
the link function; reserved for future use |
It returns a stmodelGLM object.
Wai-Ki Yip
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.
stwin
, stsubpop
, stmodelKM
,
stmodelCI
, stmodelGLM
,
steppes
, stmodel
,
stepp.win
, stepp.subpop
, stepp.KM
,
stepp.CI
,
stepp.test
, estimate
, generate
#
# see the example for the aspirin data for an example for a binomial glm model
#
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.