ajout de rGAL et testparGAL

This commit is contained in:
François Pelletier 2014-01-04 13:02:45 -05:00
parent d25ec6ae1d
commit bdf752111e
8 changed files with 160 additions and 0 deletions

26
man/rGAL.Rd Normal file
View file

@ -0,0 +1,26 @@
\name{rGAL}
\alias{rGAL}
\title{Random number generator for the GAL distribution}
\usage{
rGAL(n, param, type = "mu", log = FALSE)
}
\arguments{
\item{n}{number of observations}
\item{param}{Parameter vector}
\item{type}{Choose between "mu" or "kappa"
parametrization}
\item{log}{Logical for log-parameters}
}
\value{
A vector of random numbers
}
\description{
Random number generator for the GAL distribution
}
\author{
Francois Pelletier
}

25
man/testparGAL.Rd Normal file
View file

@ -0,0 +1,25 @@
\name{testparGAL}
\alias{testparGAL}
\title{Check for the validity of a parameter vector. Stop at error.}
\usage{
testparGAL(param, type = "mu", log = FALSE)
}
\arguments{
\item{param}{Parameter vector}
\item{type}{Choose between "mu" or "kappa"
parametrization}
\item{log}{Logical for log-parameters}
}
\value{
logical
}
\description{
Check for the validity of a parameter vector. Stop at
error.
}
\author{
Francois Pelletier
}