Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
gaussratiovegind
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ImHorPhen
gaussratiovegind
Commits
07d9d106
Commit
07d9d106
authored
2 months ago
by
SANTAGOSTINI Pierre
Browse files
Options
Downloads
Patches
Plain Diff
Ref to kummerM function. Examples: donttest
parent
4d88cd96
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
R/EM.R
+3
-1
3 additions, 1 deletion
R/EM.R
man/EM.Rd
+3
-1
3 additions, 1 deletion
man/EM.Rd
with
6 additions
and
2 deletions
R/EM.R
+
3
−
1
View file @
07d9d106
...
...
@@ -22,7 +22,7 @@ EM <- function(z, eps = 1e-06) {
#' with two attributes \code{attr(, "epsilon")} (precision of the result) and \code{attr(, "k")} (number of iterations).
#'
#' @details The parameters \eqn{\beta} are computed using the EM algorithm
#' as presented in El Ghaziri et al.
#' as presented in El Ghaziri et al.
The computation uses the \code{\link{kummerM}} function.
#' This uses an iterative algorithm.
#'
#' The precision for the estimation of the parameters is given by the \code{eps} parameter.
...
...
@@ -37,6 +37,7 @@ EM <- function(z, eps = 1e-06) {
#' @seealso \code{\link{dz}}: probability density of a Gaussian ratio.
#'
#' @examples
#' \donttest{
#' # First example
#' beta1 <- 0.15
#' rho1 <- 5.75
...
...
@@ -56,6 +57,7 @@ EM <- function(z, eps = 1e-06) {
#' z2 <- rz(800, bet = beta2, rho = rho2, delta = delta2)
#'
#' EM(z2)
#' }
#'
#' @importFrom graphics plot
#' @export
...
...
This diff is collapsed.
Click to expand it.
man/EM.Rd
+
3
−
1
View file @
07d9d106
...
...
@@ -30,12 +30,13 @@ using the EM (estimation-maximization) algorithm.
}
\details{
The parameters \eqn{\beta} are computed using the EM algorithm
as presented in El Ghaziri et al.
as presented in El Ghaziri et al.
The computation uses the \code{\link{kummerM}} function.
This uses an iterative algorithm.
The precision for the estimation of the parameters is given by the \code{eps} parameter.
}
\examples{
\donttest{
# First example
beta1 <- 0.15
rho1 <- 5.75
...
...
@@ -55,6 +56,7 @@ set.seed(1234)
z2 <- rz(800, bet = beta2, rho = rho2, delta = delta2)
EM(z2)
}
}
\references{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment