trim {vaccine} | R Documentation |
Trim data for plotting/reporting
Description
Removes a subset of estimates returned by est_ce
Usage
trim(ests, dat, quantiles)
Arguments
ests |
An object of class |
dat |
The data object originally passed into |
quantiles |
A vector of length 2 representing the quantiles of the
marker distribution at which to trim the data; if, for example,
|
Value
A modified copy of ests
with the data trimmed.
Examples
data(hvtn505)
dat <- load_data(time="HIVwk28preunblfu", event="HIVwk28preunbl", vacc="trt",
marker="IgG_V2", covariates=c("age","BMI","bhvrisk"),
weights="wt", ph2="casecontrol", data=hvtn505)
ests_cox <- est_ce(dat=dat, type="Cox", t_0=578)
ests_cox <- trim(ests_cox, dat=dat, quantiles=c(0.1,0.9))
plot_ce(ests_cox, density_type="kde", dat=dat)
[Package vaccine version 1.2.1 Index]