predict_counterfactual {RobinCID}R Documentation

Counterfactual Prediction

Description

Obtain counterfactual prediction of a fit.

Usage

predict_counterfactual(
  fit.j,
  fit.k,
  treatment,
  treatments_for_compare,
  prob_mat,
  post_strata,
  data,
  stabilize,
  settings
)

Arguments

fit.j

fitted object for trt j.

fit.k

fitted object for trt k.

treatment

name of treatment column

treatments_for_compare

(character) Treatments for comparison

prob_mat

(data.frame) treatment assignment probabilities

post_strata

(character) A string name of post-stratification variable.

data

(data.frame) raw dataset.

stabilize

stabilize

settings

estimation setting

Value

A list of prediction_cf object with following elements:


[Package RobinCID version 1.0.0 Index]