stxtpsm: calculate propensity score for panel data

View source: R/panel.R

stxtpsmR Documentation

calculate propensity score for panel data

Description

calculate propensity score for panel data

Usage

stxtpsm(
  data,
  treat,
  cov,
  lag = NULL,
  id = NULL,
  time = NULL,
  method = "logit",
  ...
)

Arguments

data

a data.table labeld as panel data by stxtset()

treat

variable name that indicates whether the unit is treated

cov

character vector indicating the set of covarieates

lag

an integer vector indicating how to use lags of covarieates

method

a string indicating the method used to calcuate propensity score which will be passed to binomial() as augument link.

Value

a list with match result, match log and balance check result


liubianshi/lbs documentation built on Nov. 2, 2023, 11:06 a.m.