stepp.GLM: The constructor to create the stmodelGLM object

View source: R/stmodelGLM.R

stepp.GLMR Documentation

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)

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

Value

It returns a stmodelGLM object.

Author(s)

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.

See Also

stwin, stsubpop, stmodelKM, stmodelCI, stmodelGLM, steppes, stmodel, stepp.win, stepp.subpop, stepp.KM, stepp.CI, stepp.test, estimate, generate

Examples

#
# see the example for the aspirin data for an example for a binomial glm model
#

stepp documentation built on June 22, 2024, 9:24 a.m.

Related to stepp.GLM in stepp...