Skip to content

Commit

Permalink
shortened some names
Browse files Browse the repository at this point in the history
  • Loading branch information
dpc10ster committed Dec 1, 2023
1 parent 5eb9d24 commit 2e6d943
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
4 changes: 2 additions & 2 deletions R/ORAnalysisSplitPlot.R → R/OR_SP.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Implement formulae in Hillis 2014 modified for unequal numbers of readers
# In different treatments; this code assumes two treatments
ORAnalysisSplitPlotA <- function(dataset, FOM, alpha , analysisOption)
OR_SP_A <- function(dataset, FOM, alpha , analysisOption)
{

I <- dim(dataset$ratings$NL)[1]; if (I != 2) stop(" ORAnalysisSplitPlotA assumes two treatments")
Expand Down Expand Up @@ -188,7 +188,7 @@ ORAnalysisSplitPlotA <- function(dataset, FOM, alpha , analysisOption)



ORAnalysisSplitPlotC <- function(dataset, FOM, alpha, analysisOption)
OR_SP_C <- function(dataset, FOM, alpha, analysisOption)
{

RRRC <- NULL
Expand Down
12 changes: 4 additions & 8 deletions R/StSP.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
#' fileName <- system.file("extdata", "/toyFiles/ROC/rocSpAZP.xlsx",
#' package = "RJafroc", mustWork = TRUE)
#' dsSpA <- DfReadDataFile(fileName)
#' StSP(dsSpA, FOM = "Wilcoxon")
#' ret <- StSP(dsSpA, FOM = "Wilcoxon")
#'
#' StSP(datasetFROCSpC, FOM = "wAFROC")
#' ret <- StSP(datasetFROCSpC, FOM = "wAFROC")
#'
#'
#' @importFrom stats pf pt qt cov pchisq pnorm qnorm
Expand All @@ -48,17 +48,13 @@
StSP <- function(dataset, FOM, alpha = 0.05, analysisOption = "RRRC")
{

# options(stringsAsFactors = FALSE, "digits" = 8)
method <- "OR"
covEstMethod <- "jackknife"

if (dataset$descriptions$design == "SPLIT-PLOT-A") {

return(ORAnalysisSplitPlotA(dataset, FOM, alpha, analysisOption))
return(OR_SP_A(dataset, FOM, alpha, analysisOption))

} else if (dataset$descriptions$design == "SPLIT-PLOT-C") {

return(ORAnalysisSplitPlotC(dataset, FOM, alpha, analysisOption))
return(OR_SP_C(dataset, FOM, alpha, analysisOption))

}
}
Expand Down
4 changes: 2 additions & 2 deletions man/StSP.Rd

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

0 comments on commit 2e6d943

Please sign in to comment.