condmoms_util: Conditional Moments Computation

Description Usage Arguments Details Value

View source: R/condmoms_util.R

Description

Internal. condmoms_util returns an object consisting of conditional moments

Usage

1
2
condmoms_util(mu_xst, resy, start_x, nx, start_y, sgma, rho,
  lambda = NULL)

Arguments

mu_xst

mean vector of latent utility values

resy

residual vector on y

start_x

matrix of Tmax x trtmax holding information at which indicator value observations with panel time t and treatment j start

nx

T x trtmax matrix containing number of observations for each combination of t and j

start_y

analoguous to start_x for outcome values

sgma

variance matrix

rho

covariance matrix

lambda

(optional) reserved parameter for further programming

Details

Computes conditional mean and variance in the utility x* model. Construct array resyt (Residuals of y_t): n x Tmax with zeros for not observed values

Value

Returns a list of moments of centered x:

  1. conditional mean

  2. conditional variance


PatrickPfeifferDSc/bite documentation built on Aug. 22, 2019, 9:57 a.m.