t.subgroup_logist_summary: Transpose a subgroup logist summary table

View source: R/group_effect.R

t.subgroup_logist_summaryR Documentation

Transpose a subgroup logist summary table

Description

A method to transpose logist summary table, rather than stratify by subgroup, it stratifies by covariables.

Usage

## S3 method for class 'subgroup_logist_summary'
t(x)

Arguments

x

an object of class subgroup_logist_summary

Value

If x is a simplified subgroup_logist_summary (aka a data.frame), return itself. Otherwise, a transposed list of class subgroup_logist_summary

Author(s)

Trinh Dong Huu Khanh

See Also

t

Examples

y = sample(0:1, 1000, replace = T)
x1 = sample(1:100, 1000, replace = T)
x2 = sample(c("A", "B"), 1000, replace = T)
x3 = sample(c("C", "D", "E"), 1000, replace = T)
x4 = sample(c("F", "G"), 1000, replace = T)
fakefit = glm(y ~ x1*x3 + x2*x3 + x2*x4, family = binomial())
se = C306::subgroup_effect(~x3, fakefit)
t(se)

oucru-biostats/C306 documentation built on July 16, 2024, 2:33 p.m.