bzGetSubgrpRaw {beanz} | R Documentation |
Get subgroup treatment effect estimation and variance
Description
Compute subgroup treatment effect estimation and variance from subject level data.
Usage
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 |
var.trt |
column name in |
var.cov |
array of column names in |
var.censor |
column name in |
resptype |
type of response. The options are |
Value
A dataframe with treatment effect estimation and variance for each subgroup
Examples
## 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)
[Package beanz version 3.1 Index]