pi.true: Calculate true propensity scores in the simulation study

Description Usage Arguments Value

View source: R/simdata.R

Description

This function uses equation (2) in Section S.1.1 of the supplementary material to calculate true propensity scores for subjects in the simulated datasets.

Usage

1
pi.true(X, K)

Arguments

X

a covariate matrix of subjects.

K

the number of treatments.

Value

A matrix of true propensity scores of assigning each subject (row) to each treatment (column).


jitonglou/MultiMlearn documentation built on Dec. 21, 2021, 12:08 a.m.