2014-02-28 04:05:30 +00:00
|
|
|
#' Optimization with constraints for GMM methos
|
|
|
|
#'
|
|
|
|
#' @param start Starting values for the parameters and lagrangian
|
|
|
|
#' @param conditions.vector Vector of moment conditions
|
2014-03-03 01:20:34 +00:00
|
|
|
#' @param sample Individual data sample
|
|
|
|
#' @param ... Functions of the vector of moment conditions
|
2014-02-28 04:05:30 +00:00
|
|
|
#' @param W Weighting matrix
|
|
|
|
#' @param R Linear constraint matrix of coefficients
|
|
|
|
#' @param r Linear constraint constants
|
|
|
|
#' @return une liste contenant le résultat de l'optimisation
|
2014-03-03 01:20:34 +00:00
|
|
|
#'
|
2014-02-28 04:05:30 +00:00
|
|
|
#' @author François Pelletier
|
2014-03-03 01:20:34 +00:00
|
|
|
optim.GMM <- function(start,conditions.vector,sample,...,W,R,r)
|
2014-02-28 04:05:30 +00:00
|
|
|
{
|
2014-03-03 01:20:34 +00:00
|
|
|
optim(start,objective.GMM,conditions.vector,sample,...,W,R,r)
|
2014-02-28 04:05:30 +00:00
|
|
|
}
|