summary.scqe {scqe}R Documentation

Summary method for scqe

Description

The summary method provides several statements that summarize important values of delta requires to make different conclusions about the treatment's effect on patient outcome.

The ptin method provides the result table that includes the given delta values and their conclusions about the treatment's effect on patient outcome.

Usage

## S3 method for class 'scqe'
summary(object, ...)

## S3 method for class 'scqe'
print(x, ...)

Arguments

object

an object of class scqe

...

Extra optional arguments

x

an object of class scqe

Value

Text interpretations of your results from scqe method results table.

Results table.

Examples

set.seed(1234)
post <- c(rep(0, 100), rep(1, 100))
tx <- c(rep(0, 100), rbinom(n = 100, prob = 0.27, size = 1))
y <- rbinom(n = 200, prob = 0.1 + 0.02 * post - 0.05 * tx, size = 1)

# Two cohorts, full data
scqe.2cohort.full = scqe(post = post, treatment = tx, outcome = y,
                         delta=seq(from = -0.1, to = 0.1, by = 0.05))
summary(scqe.2cohort.full)

set.seed(1234)
post = c(rep(0,100), rep(1,100))
tx = c(rep(0, 100), rbinom(n = 100, prob = 0.27, size = 1))
y = rbinom(n= 200, prob = 0.1 + 0.02 * post - 0.05 * tx, size = 1)

# Two cohorts, full data
scqe.2cohort.full = scqe(post = post, treatment = tx, outcome = y,
                         delta = seq(from = -0.1, to = 0.1, by = 0.05))
scqe.2cohort.full
print(scqe.2cohort.full)


[Package scqe version 1.0.0 Index]