estimate_wmean {drord} | R Documentation |
Compute the estimate of the weighted mean parameter based on estimated PMF in each treatment arm.
Description
Compute the estimate of the weighted mean parameter based on estimated PMF in each treatment arm.
Usage
estimate_wmean(
pmf_est,
treat,
out,
out_levels,
out_weights,
treat_prob_est,
return_cov = TRUE
)
Arguments
pmf_est |
List of treatment-specific PMF estimates. |
treat |
A |
out |
A |
out_levels |
A |
out_weights |
A vector of |
treat_prob_est |
Estimated probability of treatments, output from call
to |
return_cov |
If |
Value
List with estimates of treatment-specific means and difference in means.
If return_cov = TRUE
, also includes covariance matrix estimates.