permutation_brier: permutation_brier

Description Usage Arguments Value

View source: R/permutation_brier.R

Description

For a given match, computes the brier score distribution, assuming the pairings were truly random.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
permutation_brier(
  x_mat,
  match_list,
  design = "cross_all",
  use_cv = TRUE,
  num_permutations = 100L,
  match_predict_function = match_predict_xgb(),
  num_folds = 5,
  train_fraction = 0.7
)

Arguments

x_mat

Typical input matrix

match_list

Match result

design

See predict_prepare

use_cv

Logical, default TRUE: wether to use CV to get briers? Else split.

num_permutations

Number of permutations to do.

match_predict_function

Function to predict treated units.

num_folds

If using CV, how many folds to make.

train_fraction

If using split, what fraction to train.

Value

Vector of brier scores for random pairings


rzgross/uRbanmatching documentation built on Dec. 22, 2021, 8:20 p.m.