Correction ordre des paramètres mGAL et cmGAL
This commit is contained in:
parent
a7a238dd9b
commit
a2ff837ec7
5 changed files with 15 additions and 15 deletions
|
@ -7,19 +7,19 @@
|
|||
###############################################################################
|
||||
|
||||
#' Centered moments of the GAL distribution
|
||||
#' @param order Order of raw moment
|
||||
#' @param param Parameter vector
|
||||
#' @param order Order of raw moment
|
||||
#' @param type Choose between "mu" or "kappa" parametrization
|
||||
#' @param log Logical for log-parameters
|
||||
#' @return A numeric value of the centered moment
|
||||
#' @export cmGAL
|
||||
#' @author Francois Pelletier
|
||||
cmGAL <- function(order,param,type="mu",log=FALSE)
|
||||
cmGAL <- function(param,order,type="mu",log=FALSE)
|
||||
{
|
||||
testparGAL(param,type,log)
|
||||
if(log)
|
||||
{
|
||||
return(cmGAL(order,exp(param),type,log=FALSE))
|
||||
return(cmGAL(exp(param),order,type,log=FALSE))
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
6
R/mGAL.R
6
R/mGAL.R
|
@ -7,19 +7,19 @@
|
|||
|
||||
|
||||
#' Raw moments of the GAL distribution
|
||||
#' @param order Order of raw moment
|
||||
#' @param param Parameter vector
|
||||
#' @param order Order of raw moment
|
||||
#' @param type Choose between "mu" or "kappa" parametrization
|
||||
#' @param log Logical for log-parameters
|
||||
#' @return A numeric value of the raw moment
|
||||
#' @export mGAL
|
||||
#' @author Francois Pelletier
|
||||
mGAL <- function(order,param,type="mu",log=FALSE)
|
||||
mGAL <- function(param,order,type="mu",log=FALSE)
|
||||
{
|
||||
testparGAL(param,type,log)
|
||||
if(log)
|
||||
{
|
||||
return(mGAL(order,exp(param),type,log=FALSE))
|
||||
return(mGAL(exp(param),order,type,log=FALSE))
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -2,13 +2,13 @@
|
|||
\alias{cmGAL}
|
||||
\title{Centered moments of the GAL distribution}
|
||||
\usage{
|
||||
cmGAL(order, param, type = "mu", log = FALSE)
|
||||
cmGAL(param, order, type = "mu", log = FALSE)
|
||||
}
|
||||
\arguments{
|
||||
\item{order}{Order of raw moment}
|
||||
|
||||
\item{param}{Parameter vector}
|
||||
|
||||
\item{order}{Order of raw moment}
|
||||
|
||||
\item{type}{Choose between "mu" or "kappa"
|
||||
parametrization}
|
||||
|
||||
|
|
|
@ -2,13 +2,13 @@
|
|||
\alias{mGAL}
|
||||
\title{Raw moments of the GAL distribution}
|
||||
\usage{
|
||||
mGAL(order, param, type = "mu", log = FALSE)
|
||||
mGAL(param, order, type = "mu", log = FALSE)
|
||||
}
|
||||
\arguments{
|
||||
\item{order}{Order of raw moment}
|
||||
|
||||
\item{param}{Parameter vector}
|
||||
|
||||
\item{order}{Order of raw moment}
|
||||
|
||||
\item{type}{Choose between "mu" or "kappa"
|
||||
parametrization}
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
\name{mean.variance.GMM.gradient}
|
||||
\alias{mean.variance.GMM.gradient}
|
||||
\name{mean.variance.GMM.gradient.GAL}
|
||||
\alias{mean.variance.GMM.gradient.GAL}
|
||||
\title{Gradient of the GMM moment conditions on mean and variance}
|
||||
\usage{
|
||||
\method{mean}{variance.GMM.gradient}(param, Data, type = "mu")
|
||||
\method{mean}{variance.GMM.gradient.GAL}(param, Data, type = "mu")
|
||||
}
|
||||
\arguments{
|
||||
\item{param}{GAL parameters}
|
Loading…
Reference in a new issue