SATE | R Documentation |
SATE
can be used to calculate the survival treatment effects of a binary treatment variable, with
corresponding interval obtained using posterior simulation.
SATE(x, trt, surv.t = NULL, int.var = NULL, joint = TRUE,
n.sim = 100, prob.lev = 0.05, ls = 10, plot.type = "survival", ...)
x |
A fitted |
trt |
Name of the treatment variable. |
surv.t |
Numeric value for time. If not provided, the function will be calculate the SATE for each time point of a grid of
lenght |
int.var |
A vector made up of the name of the variable interacted with |
joint |
If |
n.sim |
Number of simulated coefficient vectors from the posterior distribution of the estimated model parameters. It may be increased if more precision is required. |
prob.lev |
Overall probability of the left and right tails of the SAT distribution used for interval calculations. |
ls |
Length of sequence to use for time variable. Only used when |
plot.type |
Used when |
... |
Other graphics parameters to pass on to plotting commands. |
SATE measures the average survival difference in outcomes under treatment (the binary predictor or treatment assumes value 1) and under control (the binary treatment assumes value 0). Posterior simulation is used to obtain a confidence/credible interval.
res |
It returns three values: lower interval limit(s), estimated SATE(s) and upper interval limit(s). |
prob.lev |
Probability level used. |
sim.SATE |
It returns a vector containing simulated values of the survival average treatment effect for the case in which a specific time is chosen. This is used to calculate intervals. |
Maintainer: Giampiero Marra giampiero.marra@ucl.ac.uk
GJRM-package
, gjrm
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.