33 lines
1.2 KiB
R
33 lines
1.2 KiB
R
# V Matrix (gaussian)
|
|
#
|
|
# Author: Francois Pelletier
|
|
#
|
|
# LGPL-3.0
|
|
###############################################################################
|
|
|
|
|
|
#' V 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 skewnessf Skewness function of the distribution
|
|
#' @param kurtosisf Kurtosis 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 V Matrix
|
|
#'
|
|
#' @author Francois Pelletier
|
|
V.gauss <- function(param,Y,meanf,variancef,skewnessf,kurtosisf,dmean,dsd)
|
|
{
|
|
(variancef(param)*(a.gauss(param,variancef,dmean) %o%
|
|
a.gauss(param,variancef,dmean) +
|
|
sqrt(variancef(param)) * skewnessf(param) *
|
|
(a.gauss(param,variancef,dmean) %o%
|
|
b.gauss(param,variancef,dsd) +
|
|
b.gauss(param,variancef,dsd) %o%
|
|
a.gauss(param,variancef,dmean)) +
|
|
variancef(param)*(kurtosis(param)+2) *
|
|
b.gauss(param,variancef,dsd) %*%
|
|
t(b.gauss(param,variancef,dsd))))
|
|
}
|