Description Usage Arguments Details Value
View source: R/condmoms_util.R
Internal. condmoms_util
returns an object consisting of conditional moments
1 2 | condmoms_util(mu_xst, resy, start_x, nx, start_y, sgma, rho,
lambda = NULL)
|
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 |
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
Returns a list of moments of centered x:
conditional mean
conditional variance
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.