Skip to content
Snippets Groups Projects
Commit f7863893 authored by Clare's avatar Clare
Browse files

Added an example to the documentation

parent 252b5338
Branches
Tags
No related merge requests found
......@@ -20,6 +20,11 @@
#' data(snps)
#' ## Create an LD profile using this data
#' create_LDprofile(snps$distances,as.matrix(snps[,3:12]),0.001)
#' ## To get the Beta distribution parameter estimates, the fitdistrplus package is required
#' if (requireNamespace("fitdistrplus", quietly = TRUE)==TRUE) {
#' create_LDprofile(snps$distances,as.matrix(snps[,3:12]),0.001,beta_params=TRUE)
#' }
#'
#'
#' @export
#' @seealso \code{\link{Zalpha_expected}} \code{\link{Zalpha_rsq_over_expected}} \code{\link{Zalpha_log_rsq_over_expected}} \code{\link{Zalpha_Zscore}} \code{\link{Zalpha_BetaCDF}} \code{\link{Zbeta_expected}} \code{\link{Zbeta_rsq_over_expected}} \code{\link{Zbeta_log_rsq_over_expected}} \code{\link{Zbeta_Zscore}} \code{\link{Zbeta_BetaCDF}} \code{\link{Zalpha_all}}
......
......@@ -33,6 +33,11 @@ By default, Beta parameters are not calculated. To calcualte Beta parameters, ne
data(snps)
## Create an LD profile using this data
create_LDprofile(snps$distances,as.matrix(snps[,3:12]),0.001)
## To get the Beta distribution parameter estimates, the fitdistrplus package is required
if (requireNamespace("fitdistrplus", quietly = TRUE)==TRUE) {
create_LDprofile(snps$distances,as.matrix(snps[,3:12]),0.001,beta_params=TRUE)
}
}
\references{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment