predict_prepare: predict_prepare

Description Usage Arguments Value

View source: R/predict_prepare.R

Description

Prepares design matrices and other inputs needed for predictive methods

Usage

1
2
3
4
5
predict_prepare(
  x_mat,
  index_list,
  design = c("cross_all", "cross_random", "differences_random", "differences_plain")
)

Arguments

x_mat

Original data, i.e. row for each unit.

index_list

List of indices to use in the matching:

treat_train

Index of treated units for the training matrix

control_train

Index of control units for the training matrix

treat_test

Index of treated units for the test matrix

control_test

Index of control units for the test matrix

design

The design matrix form to use.

Value

list:

x_train

Design matrix for training

x_test

Design matrix for testing

y_train

Training outcome vector

y_test

Test outcome vector


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