Skip to content

Commit

Permalink
Add explanation of weights for scan1 and est_herit (Issue rqtl#221)
Browse files Browse the repository at this point in the history
  • Loading branch information
kbroman committed Aug 24, 2023
1 parent db2665e commit 480c535
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
that aren't two characters, and add an explanation of this in the
help info. (Issue #220)

- More fully explain the use of weights in `est_herit()` and
`scan1()`. (Issue #221)


## qtl2 0.32 (2023-04-21)

Expand Down
4 changes: 4 additions & 0 deletions R/est_herit.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
#' matrix \eqn{\sigma^2 [h^2 (2 K) + I]}{sigmasq*[hsq*2*K+I]} where
#' \eqn{K} is the kinship matrix and \eqn{I} is the identity matrix.
#'
#' If `weights` are provided, the covariance matrix becomes
#' \eqn{\sigma^2 [h^2 (2 K) + D]}{sigmasq*[hsq*2*K+D]} where
#' \eqn{D} is a diagonal matrix with the reciprocal of the weights.
#'
#' For each of the inputs, the row names are used as
#' individual identifiers, to align individuals.
#'
Expand Down
4 changes: 4 additions & 0 deletions R/scan1.R
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@
#' mean 0 and covariance matrix \eqn{\sigma^2 [h^2 (2 K) +
#' I]}{sigmasq*[hsq*2*K+I]}, taking \eqn{h^2}{hsq} to be known.
#'
#' Note that if `weights` are provided, the covariance matrix becomes
#' \eqn{\sigma^2 [h^2 (2 K) + D]}{sigmasq*[hsq*2*K+D]} where
#' \eqn{D} is a diagonal matrix with the reciprocal of the weights.
#'
#' For each of the inputs, the row names are used as
#' individual identifiers, to align individuals. The `genoprobs`
#' object should have a component `"is_x_chr"` that indicates
Expand Down
4 changes: 4 additions & 0 deletions man/est_herit.Rd

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

4 changes: 4 additions & 0 deletions man/scan1.Rd

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

0 comments on commit 480c535

Please sign in to comment.