Skip to content

Commit

Permalink
Standardize and make explicit the "kind" of random number generator
Browse files Browse the repository at this point in the history
  • Loading branch information
brandon-gallas committed Oct 7, 2024
1 parent 603e358 commit 38ac052
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,10 @@ Next, we set the random seed for reproducible simulations (if needed) and simula

```{r}
# Set the simulation kind (L'Ecuyer), seed (=1), and stream (=2)
init.lecuyerRNG()
# simulate MRMC study
set.seed(1, kind = "L'Ecuyer-CMRG")
dFrame.newH <- sim.NormalIG.Hierarchical(config)
# check the first and last few lines of the simulated dataframe
Expand Down
Binary file not shown.
9 changes: 7 additions & 2 deletions Rpackage/iMRMC/inst/extra/limitsOfAgreement/LOA_ANOVA.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,14 @@ Putting it all together, the estimate of the variance of $Y_{jk}$,
The following is an example demonstrating the use of the function `laWRBM` to compute the WRBM limits of agreement for simulated MRMC agreement data. The example starts by simulating MRMC agreement data with the function `sim.NormalIG.Hierarchical` and finishes by printing the output.

```{r simulation & laWRBM}
# Simulate MRMC data
# Set the parameters of the simulation model
config <- sim.NormalIG.Hierarchical.config(modalityID = c("testA","testB"))
set.seed(1)
# Set the simulation kind (L'Ecuyer), seed (=1), and stream (=2)
init.lecuyerRNG()
# Simulate MRMC data
data.sim <- sim.NormalIG.Hierarchical(config)
# Using ANOVA to calculate WRBM limits of agreement
Expand Down
Binary file modified Rpackage/iMRMC/inst/extra/limitsOfAgreement/LOA_ANOVA.pdf
Binary file not shown.

0 comments on commit 38ac052

Please sign in to comment.