2014-02-28 04:05:30 +00:00
|
|
|
# Covariance matrix of the parameters using delta method
|
|
|
|
#
|
|
|
|
# Author: Francois Pelletier
|
|
|
|
#
|
|
|
|
# LGPL-3.0
|
|
|
|
###############################################################################
|
|
|
|
|
|
|
|
|
|
|
|
#' Covariance matrix of the parameters using delta method
|
|
|
|
#' @param covariance Covariance matrix of the moment conditions
|
|
|
|
#' @param gradient Gradient matrix of the moment conditions
|
|
|
|
#' @param size Sample size
|
|
|
|
#' @return The covariance matrix of the parameters
|
2014-03-06 02:48:37 +00:00
|
|
|
#' @export delta.method.covariance.GMM
|
2014-02-28 04:05:30 +00:00
|
|
|
#' @author François Pelletier
|
|
|
|
delta.method.covariance.GMM <- function(covariance,gradient,size)
|
|
|
|
{
|
|
|
|
ginv(gradient %*% ginv(covariance) %*% t(gradient))/size
|
|
|
|
}
|