-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from arcaldwell49/jamovi
Jamovi
- Loading branch information
Showing
1,339 changed files
with
130,470 additions
and
49 deletions.
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 |
---|---|---|
|
@@ -3,3 +3,5 @@ | |
.RData | ||
.Ruserdata | ||
inst/doc | ||
*.jmo | ||
^cran-comments\.md$ |
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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
Package: SimplyAgree | ||
Type: Package | ||
Title: Agreement, Consistency, and Reliability Calculations | ||
Title: Flexible and Robust Agreement and Reliability Analyses | ||
Version: 0.0.1 | ||
Authors@R: person("Aaron", "Caldwell", email = "[email protected]", | ||
role = c("aut", "cre")) | ||
Maintainer: Aaron Caldwell <[email protected]> | ||
Description: This package calculate absolute agreement between two continuous variables (agree_test), those with replicates (agree_reps), and with nested data (agree_reps and loa_mixed). Power calculations for Bland-Altman agreement limits can be calculated with the blandPowerCurve function. In addition, test-restest reliability can also be estimated (reli_stats). | ||
Description: Reliability and agreement analyses often have limited software support. Therefore, this package, and jamovi module, was created to make agreement and reliability analyses easier for the average researcher. The functions within this package include simple tests of agreement, agreement analysis for nested and replicate data, and provide robust analyses of reliability. In addition, this package contains a set of functions to help when planning studies looking to assess measurement agreement. For robust analyses of agreement, boostrapped limits of agreement can also be calculated. | ||
License: GPL-3 | ||
Encoding: UTF-8 | ||
LazyData: true | ||
|
@@ -22,7 +22,8 @@ Imports: | |
tidyr, | ||
sjstats, | ||
stringr, | ||
cccrm | ||
cccrm, | ||
jmvcore | ||
Suggests: | ||
knitr, | ||
rmarkdown, | ||
|
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,18 @@ | ||
|
||
# This file is automatically generated, you probably don't want to edit this | ||
|
||
.jmvrefs <- list( | ||
`R`=list( | ||
`type`="software", | ||
`author`="R Core Team", | ||
`year`=2018, | ||
`title`="A Language and Envionment for Statistical Computing", | ||
`publisher`="[Computer software]. Retrieved from https://cran.r-project.org/", | ||
`url`="https://cran.r-project.org/"), | ||
`SimplyAgree`=list( | ||
`type`="software", | ||
`author`="Caldwell, A.R.", | ||
`year`=2021, | ||
`title`="SimplyAgree: Flexible and Robust Agreement and Reliability Analyses", | ||
`publisher`="[R package]. Retrieved from https://github.com/arcaldwell49/SimplyAgree", | ||
`url`="https://github.com/arcaldwell49/SimplyAgree")) |
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
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
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,119 @@ | ||
|
||
# This file is a generated template, your changes will not be overwritten | ||
|
||
jmvagreeClass <- if (requireNamespace('jmvcore', quietly=TRUE)) R6::R6Class( | ||
"jmvagreeClass", | ||
inherit = jmvagreeBase, | ||
private = list( | ||
.run = function() { | ||
|
||
# `self$data` contains the data | ||
# `self$options` contains the options | ||
# `self$results` contains the results object (to populate) | ||
|
||
if ( !is.null(self$options$method1) && !is.null(self$options$method2) ) { | ||
# read the option values into shorter variable names | ||
method1 <- self$options$method1 | ||
method2 <- self$options$method2 | ||
|
||
plotba <- self$results$plotba | ||
plotcon <- self$results$plotcon | ||
|
||
# get the data | ||
data <- self$data | ||
|
||
# convert to appropriate type | ||
data[[method1]] <- jmvcore::toNumeric(data[[method1]]) | ||
data[[method2]] <- jmvcore::toNumeric(data[[method2]]) | ||
|
||
ciWidth = self$options$ciWidth | ||
agreeWidth = self$options$agreeWidth | ||
delta_val = self$options$testValue | ||
res = agree_test(x = data[[method1]], | ||
y = data[[method2]], | ||
delta = delta_val, | ||
conf.level = ciWidth, | ||
agree.level = agreeWidth) | ||
|
||
pr_res = paste0("Limit of Agreement = ", res$shieh_test$prop0*100, "%", | ||
"\n", | ||
"alpha =", (1-res$conf.level), "|", res$conf.level*100,"% Confidence Interval", | ||
"\n", | ||
"\n", | ||
"Shieh Test of Agreement", | ||
"\n", | ||
"Exact C.I.:"," [",round(res$shieh_test$lower.ci,4),", ",round(res$shieh_test$upper.ci, 4), "]", | ||
"\n", | ||
"\n", | ||
"Hypothesis Test: ",res$shieh_test$h0_test) | ||
|
||
self$results$text$setContent(pr_res) | ||
table1 <- self$results$blandtab | ||
table1$setRow(rowNo=1, values=list( | ||
var="Mean Bias", | ||
estimate=res$loa$estimate[1], | ||
lowerci=res$loa$lower.ci[1], | ||
upperci=res$loa$upper.ci[1] | ||
)) | ||
|
||
table1$setRow(rowNo=2, values=list( | ||
var="Lower Limit of Agreement", | ||
estimate=res$loa$estimate[2], | ||
lowerci=res$loa$lower.ci[2], | ||
upperci=res$loa$upper.ci[2] | ||
)) | ||
table1$setRow(rowNo=3, values=list( | ||
var="Upper Limit of Agreement", | ||
estimate=res$loa$estimate[3], | ||
lowerci=res$loa$lower.ci[3], | ||
upperci=res$loa$upper.ci[3] | ||
)) | ||
|
||
table2 <- self$results$ccctab | ||
table2$setRow(rowNo=1, values=list( | ||
var="CCC", | ||
estimate=res$ccc.xy$est.ccc[1], | ||
lowerci=res$ccc.xy$lower.ci[1], | ||
upperci=res$ccc.xy$upper.ci[1] | ||
)) | ||
|
||
plotba$setState(res) | ||
plotcon$setState(res) | ||
} | ||
|
||
|
||
|
||
#citethis = paste0( | ||
# "Shieh (2019). Assessing Agreement Between Two Methods of Quantitative Measurements: Exact Test Procedure and Sample Size Calculation, | ||
# Statistics in Biopharmaceutical Research, | ||
# <https://doi.org/10.1080/19466315.2019.1677495>" | ||
#) | ||
#self$results$cites$setContent(citethis) | ||
}, | ||
.plotba = function(image,...){ | ||
|
||
if (is.null(image$state)) | ||
return(FALSE) | ||
|
||
plotpr = plot(image$state) | ||
|
||
|
||
print(plotpr) | ||
|
||
return(TRUE) | ||
|
||
}, | ||
.plotcon = function(image,...){ | ||
|
||
if (is.null(image$state)) | ||
return(FALSE) | ||
|
||
plotpr = image$state | ||
|
||
|
||
print(plotpr$identity.plot) | ||
|
||
return(TRUE) | ||
|
||
}) | ||
) |
Oops, something went wrong.