| estimate | R Documentation |
Maps posterior samples of outcome-group means back to the (stratum x treatment) grid via the SZDG table.
estimate(object, ...)
## S3 method for class 'PStrataFit'
estimate(object, type = c("probability", "RACE"), ...)
object |
A |
... |
Additional arguments (unused). |
type |
For survival models: |
A PSEstimate object containing
outcome_array |
[S, Z, iter] array for non-survival, or [S, Z, T, iter] for survival. |
is_survival |
Logical. |
time_points |
Numeric vector (survival only). |
model_info |
List of strata names, treatment info, family, ER flags, outcome groups. |
data(sim_data_normal)
model <- PStrataModel(
S.formula = Z + D ~ 1,
Y.formula = Y ~ 1,
Y.family = gaussian(),
strata = c(n = "00", c = "01", a = "11"),
ER = c("n", "a")
)
ps_fit <- fit(model, data = sim_data_normal, chains = 2, iter = 500)
est <- estimate(ps_fit)
summary(est)
plot(est)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.