Skip to content

Commit

Permalink
221121: added simulated data
Browse files Browse the repository at this point in the history
  • Loading branch information
AnestisTouloumis committed Nov 21, 2022
1 parent 2b4a352 commit b2a5d3a
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 1 deletion.
3 changes: 2 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ License: GPL-3
VignetteBuilder:
knitr,
R.rsp
RoxygenNote: 7.2.1
RoxygenNote: 7.2.2
Roxygen: list(old_usage = TRUE)
Encoding: UTF-8
LazyData: true
28 changes: 28 additions & 0 deletions R/SimCorMultRes-data.R
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 added data/simulation.rda
Binary file not shown.
39 changes: 39 additions & 0 deletions man/simulation.Rd

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

0 comments on commit b2a5d3a

Please sign in to comment.