assign_prob_and_strata {RobinCID}R Documentation

Assign Probability according to Design

Description

Assign Probability according to Design

Usage

assign_prob_and_strata(
  data,
  estimand,
  design = list(randomization_var_colnames = NULL, randomization_table = NULL),
  method,
  estimated_propensity = TRUE,
  stratify_by = NULL
)

Arguments

data

(data.frame) Input data frame.

estimand

(list) A list specifying the estimand.

design

(list) A list describing the randomization design. See Details.

method

estimation method.

estimated_propensity

Whether to use estimated propensity score.

stratify_by

The column name of stratification variable in data.

Details

design has two elements: randomization_var_colnames (vector) and randomization_table (data.frame)

Value

A new data with columns of the treatment assignment probability.


[Package RobinCID version 1.0.0 Index]