evf: Calculate empirical value functions

Description Usage Arguments Value

View source: R/mlearn.R

Description

This function calculates the empirical value functions as defined in equation (8) in Section 2.2 of the manuscript.

Usage

1
evf(data, pred, propensity)

Arguments

data

a data frame containing the ID (ID), outcome (reward), and observed treatment (treatment) information of subjects.

pred

a matrix with K(K-1)/2 columns, where K is the total number of treatments. Each column is the recommendations between two treatments for all subjects.

propensity

a data frame with K columns, where K is the total number of treatments. The kth column is the propensity scores of assigning the kth treatment to subjects.

Value

A scalar as defined in equation (8) in Section 2.2 of the manuscript.


jitonglou/MultiMlearn documentation built on Dec. 21, 2021, 12:08 a.m.