Skip to contents

Every analysis in the jamovi module is also an R function with the same name. The function arguments are the options of the jamovi panel; see the help page of each function (for example ?decision) for the full list.

The 15 analyses

Function jamovi menu Purpose Article
agreement() meddecide > Agreement > Interrater Reliability Kappa, weighted kappa, ICC, Krippendorff’s alpha, Gwet’s AC1, Bland-Altman and related agreement statistics Agreement, comprehensive
decision() meddecide > Decision > Medical Decision Sensitivity, specificity, predictive values and likelihood ratios from raw data against a reference standard Diagnostic tests
decisioncombine() meddecide > Decision > Combine Medical Decision Tests Accuracy of combinations (patterns) of up to three binary tests
decisioncompare() meddecide > Decision > Compare Medical Decision Tests Compare the accuracy of up to three tests on the same patients
nogoldstandard() meddecide > Decision > Analysis Without Gold Standard Latent models for 3-5 tests without a reference standard; reference-rule agreement for 2-5 tests No gold standard
decisioncalculator() meddecide > Decision Calculators > Medical Decision Calculator Diagnostic accuracy from the four cell counts, with Fagan nomogram Diagnostic tests
cotest() meddecide > Decision Calculators > Co-Testing Analysis Post-test probabilities when two tests are done together, with or without conditional dependence Co-testing
sequentialtests() meddecide > Decision Calculators > Sequential Testing Analysis Serial and parallel two-test strategies Sequential testing
decisioncurve() meddecide > Decision Curve Analysis > Decision Curve Analysis Net benefit of prediction models across threshold probabilities
enhancedROC() meddecide > ROC > Clinical ROC Analysis ROC curves, AUC, optimal cut-offs and clinical metrics Clinical ROC
psychopdaROC() meddecide > ROC > Advanced ROC Analysis ROC with many cut-point methods, DeLong comparison, IDI/NRI, decision curves ROC, comprehensive
lassologistic() meddecide > Prediction Models > LASSO Logistic Regression Penalised logistic regression for variable selection and risk scores
kappaSizeCI() Power > Power Analysis by meddecide > Confidence Interval Approach for the Number of Subjects Required Sample size for a kappa confidence interval of a given width kappaSizeCI
kappaSizePower() Power > Power Analysis by meddecide > Power Approach for the Number of Subjects Required Sample size to test kappa against a null value kappaSizePower
kappaSizeFixedN() Power > Power Analysis by meddecide > Lowest Expected Kappa for a Fixed Sample Size Expected one-sided lower confidence bound at fixed N; not a power calculation kappaSizeFixedN

Calling conventions

  • Pass columns by name: gold = "gold", vars = c("Rater1", "Rater2"). A bare object name given to a variable argument is read as a column name, so build vectors of names inline (vars = c(...) or vars = sprintf(...)).
  • Arguments of type Level (the positive and negative levels of an outcome or test, such as goldPositive/goldNegative in decision() or positiveClass/negativeClass in psychopdaROC()) have no default and must always be given. The analysis does not guess which level means “disease”.
  • The result is an object whose elements are the tables and plots of the jamovi output. Print it to see everything, or pick one element and convert a table with $asDF:
res <- decisioncalculator(TP = 90, FN = 10, TN = 80, FP = 20)
res$ratioTable$asDF
#>     tablename Sens Spec AccurT PrevalenceD       PPV       NPV
#> "1"  Measures  0.9  0.8   0.85         0.5 0.8181818 0.8888889
#>     PostTestProbDisease PostTestProbNeg LRP   LRN
#> "1"           0.8181818       0.1111111 4.5 0.125

Some results sit inside groups and need a two-part path, for example agreement(...)$krippTableGroup$krippTable.

For assumptions, denominator differences and validation status, see Choosing and interpreting an analysis.