R/wmean_fn.R
estimate_wmean.RdCompute the estimate of the weighted mean parameter based on estimated PMF in each treatment arm.
estimate_wmean( pmf_est, treat, out, out_levels, out_weights, treat_prob_est, return_cov = TRUE )
| 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 |
List with estimates of treatment-specific means and difference in means.
If return_cov = TRUE, also includes covariance matrix estimates.