bzGetSubgrpRaw: Get subgroup treatment effect estimation and variance

Description Usage Arguments Value Examples

Description

Compute subgroup treatment effect estimation and variance from subject level data.

Usage

1
2
bzGetSubgrpRaw(data.all, var.resp, var.trt, var.cov, var.censor,
  resptype = c("continuous", "binary", "survival"))

Arguments

data.all

subject level dataset

var.resp

column name in data.all for response

var.trt

column name in data.all for treatment assignment

var.cov

array of column names in dat.all that corresponds to binary or ordinal baseline covaraites

var.censor

column name in data.all for censoring if the response is time to event data

resptype

type of response. The options are binary, continuous or survial

Value

A dataframe with treatment effect estimation and variance for each subgroup

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
var.cov    <- c("sodium", "lvef", "any.vasodilator.use");
var.resp   <- "y";
var.trt    <- "trt";
var.censor <- "censor";
resptype   <- "survival";
subgrp.effect <- bzGetSubgrpRaw(solvd.sub,
                                  var.resp   = var.resp,
                                  var.trt    = var.trt,
                                  var.cov    = var.cov,
                                  var.censor = var.censor,
                                  resptype   = resptype);
## End(Not run)

beanz documentation built on May 2, 2019, 4:01 a.m.