my_loss: Calculate a statistic given some model and a function f.

Description Usage Arguments Examples

Description

Defaults to the posterior variance on lambda_b - lambda_a for simple biqq model

Usage

1
my_loss(model, L = function(D) {     var(D$abcd[, 2] - D$abcd[, 1]) })

Arguments

model

a fitted biqq model

L

a loss function, defined over the dataframe extracted from model L. Defaults to posterior variance of ATE

Examples

1
2
model <- biqq()
my_loss(model, f = function() {var(abcd[,2])})

macartan/biqq documentation built on May 6, 2019, 6:03 p.m.