Skip to content

Commit

Permalink
Update package man for qqfr()
Browse files Browse the repository at this point in the history
  • Loading branch information
watanabe-j committed Feb 8, 2024
1 parent de138eb commit 00ec685
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 25 deletions.
18 changes: 9 additions & 9 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Package: qfratio
Type: Package
Title: Moments and Distributions of Ratios of Quadratic Forms Using Recursion
Version: 1.1.0.9000
Date: 2023-11-08
Date: 2024-02-08
Authors@R: c(person("Junya", "Watanabe", email = "Junya.Watanabe@uab.cat",
role = c("aut", "cre", "cph"),
comment = c(ORCID = "0000-0002-9810-5286")),
Expand All @@ -21,14 +21,14 @@ Authors@R: c(person("Junya", "Watanabe", email = "Junya.Watanabe@uab.cat",
Description: Evaluates moments of ratios (and products) of quadratic forms
in normal variables, specifically using recursive algorithms developed by
Bao and Kan (2013) <doi:10.1016/j.jmva.2013.03.002> and Hillier et al.
(2014) <doi:10.1017/S0266466613000364>. Also provides distribution and
probability density functions of simple ratios of quadratic forms in normal
variables with several algorithms. Originally developed as a supplement
to Watanabe (2023) <doi:10.1007/s00285-023-01930-8> for evaluating average
evolvability measures in evolutionary quantitative genetics, but can be used
for a broader class of statistics. Generating functions for these moments
are also closely related to the top-order zonal and invariant polynomials
of matrix arguments.
(2014) <doi:10.1017/S0266466613000364>. Also provides distribution,
quantile, and probability density functions of simple ratios of quadratic
forms in normal variables with several algorithms. Originally developed as
a supplement to Watanabe (2023) <doi:10.1007/s00285-023-01930-8> for
evaluating average evolvability measures in evolutionary quantitative
genetics, but can be used for a broader class of statistics. Generating
functions for these moments are also closely related to the top-order zonal
and invariant polynomials of matrix arguments.
License: GPL (>= 3)
URL: https://github.com/watanabe-j/qfratio
BugReports: https://github.com/watanabe-j/qfratio/issues
Expand Down
18 changes: 10 additions & 8 deletions R/qfratio-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
#' forms in normal variables, specifically using recursive algorithms developed
#' by Bao et al. (2013) and Hillier et al. (2014) (see also Smith, 1989, 1993;
#' Hillier et al., 2009). It also provides some functions to evaluate
#' distribution and probability density functions of simple ratios of quadratic
#' forms in normal variables using several algorithms. It was originally
#' developed as a supplement to Watanabe (2023) for evaluating
#' distribution, quantile, and probability density functions of simple ratios
#' of quadratic forms in normal variables using several algorithms. It was
#' originally developed as a supplement to Watanabe (2023) for evaluating
#' average evolvability measures in evolutionary quantitative genetics,
#' but can be used for a broader class of statistics.
#'
Expand All @@ -27,9 +27,9 @@
#' related to the top-order zonal and invariant
#' polynomials of matrix arguments.
#'
#' The package also has some functions to evaluate distribution and
#' density functions of simple ratios of quadratic forms: \code{\link{pqfr}()}
#' and \code{\link{dqfr}()}.
#' The package also has some functions to evaluate distribution, quantile, and
#' density functions of simple ratios of quadratic forms: \code{\link{pqfr}()},
#' \code{\link{qqfr}()}, and \code{\link{dqfr}()}.
#'
#' See package vignettes (\code{vignette("qfratio")} and
#' \code{vignette("qfratio_distr")}) for more details.
Expand Down Expand Up @@ -127,9 +127,11 @@
#' ## A Monte Carlo mean
#' mean(rqfp(1000, A = A, B = B, D = D, p = 1, q = 1, r = 1, mu = mu))
#'
#' ## Distribution function and density of (x^T A x) / (x^T B x)
#' ## Distribution and quantile functions,
#' ## and density of (x^T A x) / (x^T B x)
#' quantiles <- 0:nv + 0.5
#' pqfr(quantiles, A, B)
#' (probs <- pqfr(quantiles, A, B))
#' qqfr(probs, A, B) # p = 1 yields maximum of ratio
#' dqfr(quantiles, A, B)
#'
#' @docType package
Expand Down
18 changes: 10 additions & 8 deletions man/qfratio-package.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 00ec685

Please sign in to comment.