estimate_ci_mannwhitney {drord}R Documentation

Compute confidence interval/s for the Mann-Whitney parameter

Description

Compute confidence interval/s for the Mann-Whitney parameter

Usage

estimate_ci_mannwhitney(
  mannwhitney_est,
  cdf_est,
  pmf_est,
  treat_prob_est,
  treat_form,
  out_form,
  treat,
  ci,
  out,
  alpha,
  nboot,
  out_levels,
  covar,
  out_model
)

Arguments

mannwhitney_est

The point estimates for log-odds.

cdf_est

The estimated conditional CDF.

pmf_est

The estimated conditional PMF.

treat_prob_est

Estimated probability of treatments, output from call to estimate_treat_prob.

treat_form

The right-hand side of a regression formula for the working model of treatment probability as a function of covariates

out_form

The right-hand side of a regression formula for the working proportional odds model. NOTE: THIS FORMULA MUST NOT SUPPRESS THE INTERCEPT.

treat

A numeric vector containing treatment status. Missing values are not allowed unless the corresponding entry in out is also missing. Only values of 0 or 1 are treated as actual treatment levels. Any other value is assumed to encode a value for which the outcome is missing and the corresponding outcome value is ignored.

ci

A vector of characters indicating which confidence intervals should be computed ("bca" and/or "wald")

out

A numeric vector containing the outcomes. Missing outcomes are allowed.

alpha

Confidence intervals have nominal level 1-alpha.

nboot

Number of bootstrap replicates used to compute bootstrap confidence intervals.

out_levels

A numeric vector containing all ordered levels of the outcome.

covar

A data.frame containing the covariates to include in the working proportional odds model.

out_model

Which R function should be used to fit the proportional odds model. Options are "polr" (from the MASS package), "vglm" (from the VGAM package), or "clm" (from the ordinal package).

Value

List with wald and bca-estimated confidence intervals for the Mann-Whitney parameter.


[Package drord version 1.0.1 Index]