estimate_rate: Compute rate estimates, a function to be passed on to...

View source: R/rank_average_treatment.R

estimate_rateR Documentation

Compute rate estimates, a function to be passed on to bootstrap routine.

Description

Compute rate estimates, a function to be passed on to bootstrap routine.

Usage

estimate_rate(data, indices, q, wtd.mean)

Arguments

data

A data.frame with the original data, column 1: DR.scores*sample.weights, column 2: sample.weights (positive), column 3: priority scores (integer vector with scores 1,...,num.unique.prios).

indices

A vector of indices which define the bootstrap sample.

q

A vector of fractions to compute TOC on, with last entry = 1.

wtd.mean

A weighting function determining the type of RATE estimate.

Value

an estimate of RATE, together with the TOC curve.


grf documentation built on Oct. 1, 2023, 1:07 a.m.