ps: Propensity Scores

Description Usage Arguments Value

View source: R/ps.R

Description

Calculate the propensity scores.

Usage

1
ps(treat,x)

Arguments

treat

a factor vector of the treatment indicator

x

an optional covariace matrix containing the variables in the model

Value

A numeric vector with the same length of treat, which contains the propensity scores for each observations.


kimihua1995/adjKMtest documentation built on Jan. 1, 2021, 7:20 a.m.