Learn R Programming

StratifiedMedicine (version 0.1.3)

param_cox: Parameter Estimation: Cox Regression

Description

For each identified subgroup, fit separate cox regression models. Point-estimates and variability metrics in the overall population are obtained by aggregating subgroup specific results (adaptive weighting or sample size weighting).

Usage

param_cox(Y, A, X, mu_hat, Subgrps, alpha_ovrl, alpha_s,
  combine = "adaptive", ...)

Arguments

Y

The outcome variable. Must be numeric or survival (ex; Surv(time,cens) )

A

Treatment variable. (a=1,...A)

X

Covariate space.

mu_hat

Patient-level estimates (See PLE_models)

Subgrps

Identified subgroups (can be the overall population)

alpha_ovrl

Two-sided alpha level for overall population

alpha_s

Two-sided alpha level at subgroup

combine

For overall population, method of combining subgroup-specific results. Default is "adaptive", "SS" corresponds to sample size weighting.

...

Any additional parameters, not currently passed through.

Value

Data-set with parameter estimates (hazard ratio) and corresponding variability metrics, for overall and subgroups. Subgrps=0 corresponds to the overall population by default.

  • param.dat - Parameter estimates and variability metrics (est=HR, SE=SE(logHR), LCL/UCL = lower/upper confidence limit on HR scale, pval = p-value).

See Also

param_combine

Examples

Run this code
# NOT RUN {
library(StratifiedMedicine)
# Survival Data #
require(TH.data); require(coin)

# MOB-Weibull Subgroup Model ##
res_weibull = submod_train(Y, A, X, Xtest=X, family="survival",
                            submod="submod_weibull")
plot(res_weibull$mod)

## Parameter-Estimation ##
params = param_cox(Y, A, X, Subgrps = res_weibull$Subgrps.train, alpha_ovrl=0.05,
                   alpha_s=0.05)
params
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab