-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2b4a352
commit b2a5d3a
Showing
4 changed files
with
69 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#' Bivariate NORTA Generated Correlation | ||
#' | ||
#' Simulated dataset to understand | ||
#' | ||
#' @format ## `simulation` | ||
#' A data frame with 100 rows and 4 columns: | ||
#' \describe{ | ||
#' \item{rho}{numeric indicating the value of the correlation parameter.} | ||
#' \item{normal}{numeric indicating the simulated average of the correlation parameter with | ||
#' normal margins.} | ||
#' \item{logistic}{numeric indicating the simulated average of the correlation parameter with | ||
#' logistic margins.} | ||
#' \item{gumbel}{numeric indicating the simulated average of the correlation parameter with | ||
#' gumbel margins.} | ||
#' } | ||
#' @examples | ||
#' simulation |> | ||
#' plot(rho - normal ~ rho, data = _, type = "l", col = "blue", | ||
#' ylim = c(0, 0.016), | ||
#' ylab = "Difference between true and simulated correlation values", | ||
#' xlab = "Correlation parameter") | ||
#' simulation |> | ||
#' points(rho - logistic ~ rho, data = _, type = "l", col = "red") | ||
#' simulation |> | ||
#' points(rho - gumbel ~ rho, data = _, type = "l", col = "grey") | ||
#' legend("topright", legend = c("Normal", "Logistic", "Gumbel"), | ||
#' col = c("blue", "red", "grey"), pch = "l" ) | ||
"simulation" |
Binary file not shown.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.