Ypop: Estimates and asymptotic variance of the population average...

View source: R/Ypop_function.R

YpopR Documentation

Estimates and asymptotic variance of the population average potential outcome for known or estimated propensity score model.

Description

Estimates and asymptotic variance of the population average potential outcome for known or estimated propensity score model.

Usage

Ypop(
  ygroup,
  ps = c("true", "estimated"),
  scores = NULL,
  dta = NULL,
  use = "everything"
)

Arguments

ygroup

An array including the group average potential outcome estimates where the dimensions correspond to group, individual treatment and value of alpha.

ps

String. Can take values 'true', or 'estimated' for known or estimated propensity score. Defaults to 'true'.

scores

A matrix with rows corresponding to the parameters of the propensity score model and columns for groups. Includes the score of the propensity score evaluated for the variables of each group. Can be left NULL when ps is set to 'true'.

dta

The data set including the variable neigh. Defaults to NULL. Can be left NULL when the true propensity score is used.

use

Whether the data with missing values will be used for the estimation of the variance. Argument for cov() function. Defaults to 'everything'.


gpapadog/Interference documentation built on Oct. 30, 2022, 9:20 p.m.