QuadraticEstimatingEquations/R/M.gauss.R

22 lines
858 B
R
Raw Normal View History

2014-02-24 02:05:36 +00:00
# M Matrix (gaussian)
#
# Author: Francois Pelletier
#
# LGPL-3.0
###############################################################################
#' M Matrix (gaussian)
#' @param Y Individual data sample
#' @param param Vector of parameters of the distribution function
#' @param meanf Mean function of the distribution
#' @param variancef Variance function of the distribution
#' @param dmean Derivative in respect to the parameter vector of the mean function of the distribution
#' @param dsd Derivative in respect to the parameter vector of the standard deviation function of the distribution
#' @return M Matrix
#' @export M.gauss
2014-02-24 02:05:36 +00:00
#' @author Francois Pelletier
M.gauss <- function(param,Y,meanf,variancef,dmean,dsd)
{
2014-02-24 02:51:20 +00:00
-(a.gauss(param,variancef,dmean) %o% dmean(param) +
2*sqrt(variancef(param)) * b.gauss(param,variancef,dsd) %*% t(dsd(param)))
2014-02-24 02:05:36 +00:00
}