Skip to contents

Provide an estimate based on user-specified weights for the choices of the research design.

Usage

calculate_weighted_estimate(df, est, lb, ub)

Arguments

df

The data frame as generated by exhaust_design(..., weight = TRUE).

est

A character value indicating the variable in df that contains the point estimate.

lb

A character value indicating the variable in df that contains the lower bound of the estimate.

ub

A character value indicating the variable in df that contains the upper bound of the estimate.

Value

A list containing the

"Estimate"

Weighted estimate

"Lower bound"

Weighted lower bound

"Upper bound"

Weighted upper bound

"n"

Number of model estimates that have been used to generate the weighted estimate

Details

See the vignette of the package for further details on how to implement the RDF workflow.

Examples

if (FALSE) {
  print("Sorry. No examples yet.")
}