Installation and Implementation Instructions
devtools
and rmarkdown
packages installed (type the code below into the console)install.packages("devtools")
install.packages("rmarkdown")
Windows users: You may have to download and install Rtools MAC users: You may have to download and install Xcode
Install and load the nomscheck package
devtools::install_github("sarahvanhala/nomscheck")
library(nomscheck)
read_noms_data
function (the file is the file that you download from SPARS)noms_data <- read_noms_data("/Users/sarah/Desktop/SV Work/Evaluation Projects/General Reports/Packages/ExcelReport old.xls")
The results of read_noms_data
includes the following derived variables:
You can save the results of read_noms_data
using the following code:
library(readr)
write_csv(noms_data, "/path/file_name_you_want.csv")
save_prior_assessments
functionsave_prior_assessments(noms_data, "/Desktop/prior_assessments.csv")
Click on File > New File > R Markdown > select from template > select NOMs checking report > OK
Click on the arrow to the right of Knit > knit with parameters
Save the code file
Enter the paths for the new NOMs data set and optionally for the csv of prior assessments
Click Knit to create the report!
Determine the mean of the distribution
Determine the standard deviation of the distribution
Go into the code that is generated after Step 8 above
Type ctrl+f for compare_dist
and change the mean and standard deviation parameters
## For the difference plots:
The probability that the difference between assessments is zero
The mean of the absolute value of the non-zero differences
Go into the code that is generated after Step 8 above
Type ctrl+f for compare_diff
and change the zero_prob and the mean parameters
compare_diff(diff_data, "Weight", zero_prob = .3, mean = 10)
compare_dist(new_data, "BPressure_s", mean = 90, sd = 15)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.