Package stapler. November 27, 2017

Similar documents
Package kdtools. April 26, 2018

Package fastdummies. January 8, 2018

Package cattonum. R topics documented: May 2, Type Package Version Title Encode Categorical Features

Package messaging. May 27, 2018

Package SEMrushR. November 3, 2018

Package validara. October 19, 2017

Package graphframes. June 21, 2018

Package ECctmc. May 1, 2018

Package gifti. February 1, 2018

Package ggimage. R topics documented: November 1, Title Use Image in 'ggplot2' Version 0.0.7

Package meme. November 2, 2017

Package kirby21.base

Package narray. January 28, 2018

Package geojsonsf. R topics documented: January 11, Type Package Title GeoJSON to Simple Feature Converter Version 1.3.

Package rgho. R topics documented: January 18, 2017

Package fitur. March 11, 2018

Package canvasxpress

Package ggimage. R topics documented: December 5, Title Use Image in 'ggplot2' Version 0.1.0

Package diagis. January 25, 2018

Package calpassapi. August 25, 2018

Package meme. December 6, 2017

Package bisect. April 16, 2018

Package goodpractice

Package quadprogxt. February 4, 2018

Package WhiteStripe. April 19, 2018

Package gggenes. R topics documented: November 7, Title Draw Gene Arrow Maps in 'ggplot2' Version 0.3.2

Package elmnnrcpp. July 21, 2018

Package semver. January 6, 2017

Package labelvector. July 28, 2018

Package nsprcomp. August 29, 2016

Package bigreadr. R topics documented: August 13, Version Date Title Read Large Text Files

Package catenary. May 4, 2018

Package embed. November 19, 2018

Package wdman. January 23, 2017

Package zebu. R topics documented: October 24, 2017

Package knitrprogressbar

Package robotstxt. November 12, 2017

Package datasets.load

Package crossrun. October 8, 2018

Package dat. January 20, 2018

Package condformat. October 19, 2017

Package wrswor. R topics documented: February 2, Type Package

Package oasis. February 21, 2018

Package WordR. September 7, 2017

Package splithalf. March 17, 2018

Package spark. July 21, 2017

Package smoothr. April 4, 2018

Package humanize. R topics documented: April 4, Version Title Create Values for Human Consumption

Package modules. July 22, 2017

Package infer. July 11, Type Package Title Tidy Statistical Inference Version 0.3.0

Package gtrendsr. October 19, 2017

Package projector. February 27, 2018

Package condusco. November 8, 2017

Package customlayout

Package rsppfp. November 20, 2018

Package sfdct. August 29, 2017

Package enpls. May 14, 2018

Package logisticpca. R topics documented: August 29, 2016

Package nmslibr. April 14, 2018

Package pwrab. R topics documented: June 6, Type Package Title Power Analysis for AB Testing Version 0.1.0

Package mixsqp. November 14, 2018

Package jdx. R topics documented: January 9, Type Package Title 'Java' Data Exchange for 'R' and 'rjava'

Package docxtools. July 6, 2018

Package internetarchive

Package widyr. August 14, 2017

Package edfreader. R topics documented: May 21, 2017

Package splitfeas. April 11, 2018

Package Rspc. July 30, 2018

Package vinereg. August 10, 2018

Package repec. August 31, 2018

Package postgistools

Package lumberjack. R topics documented: July 20, 2018

Package SNPediaR. April 9, 2019

Package qualmap. R topics documented: September 12, Type Package

Package gcite. R topics documented: February 2, Type Package Title Google Citation Parser Version Date Author John Muschelli

Package rprojroot. January 3, Title Finding Files in Project Subdirectories Version 1.3-2

Package githubinstall

Package deductive. June 2, 2017

Package ECOSolveR. February 18, 2018

Package gtrendsr. August 4, 2018

Package barcoder. October 26, 2018

Package coga. May 8, 2018

Package colf. October 9, 2017

Package zoomgrid. January 3, 2019

Package data.world. April 5, 2018

Package bannercommenter

Package liftr. R topics documented: May 14, Type Package

Package TrafficBDE. March 1, 2018

Package editdata. October 7, 2017

Package rnn. R topics documented: June 21, Title Recurrent Neural Network Version 0.8.1

Package triebeard. August 29, 2016

Package skynet. December 12, 2018

Package balance. October 12, 2018

Package available. November 17, 2017

Package mgc. April 13, 2018

Package tidytree. June 13, 2018

Package sessioninfo. June 21, 2017

Package spelling. December 18, 2017

Package rbgm. May 18, 2018

Package subplex. April 5, 2018

Transcription:

Version 0.6.3 Package stapler November 27, 2017 Title Simultaneous Truth and Performance Level Estimation An implementation of Simultaneous Truth and Performance Level Estimation (STAPLE) <doi:10.1109/tmi.2004.828354>. This method is used when there are multiple raters for an object, typically an image, and this method fuses these ratings into one rating. It uses an epectation-maimization method to estimate this rating and the individual specificity/sensitivity for each rater. License GPL-3 Imports matristats, RNifti Suggests knitr, rmarkdown, covr, testthat Encoding UTF-8 LazyData true ByteCompile true Type Package Maintainer John Muschelli <muschellij2@gmail.com> VignetteBuilder knitr URL https://github.com/muschellij2/stapler BugReports https://github.com/muschellij2/stapler/issues RoygenNote 6.0.1.9000 NeedsCompilation no Author John Muschelli [aut, cre] Repository CRAN Date/Publication 2017-11-27 16:45:56 UTC R topics documented: staple............................................ 2 staple_bin_img....................................... 3 1

2 staple staple_bin_mat....................................... 4 staple_eample_data.................................... 5 staple_multi_mat...................................... 5 Inde 7 staple Generic STAPLE Algorithm Tries to do the correct STAPLE algorithm (binary/multi-class) for the type of input (array/matri/list of images/filenames of images) ## Default S3 method: ## S3 method for class 'list' ## S3 method for class 'character' ## S3 method for class 'array' a nr matri where there are n raters and r elements rated, a list of images, or a character vector. Note, readnifti is used for image filenames... Options for STAPLE, see staple_bin_mat and staple_multi_mat set_orient Should the orientation be set to the same if is a set of images, including niftiimages.

staple_bin_img 3 staple_bin_img Run STAPLE on a set of nifti images Run STAPLE on a set of nifti images staple_bin_img(, set_orient = FALSE, verbose = TRUE,...) staple_multi_img(, set_orient = FALSE, verbose = TRUE,...) Character vector of filenames or list of arrays/images set_orient Should the orientation be set to the same if the images are niftiimages verbose print diagnostic messages... Additional arguments to staple_bin_mat A list similar to staple_bin_mat, but has a resulting image n = 5 r = 1000 = lapply(seq(n), function(i) { = rbinom(n = r, size = 1, prob = 0.5) array(, dim = c(10,10, 10)) staple_out = staple_bin_img(, set_orient = FALSE) n = 5 r = 1000 = lapply(seq(n), function(i) { = rbinom(n = r, size = 5, prob = 0.5) array(, dim = c(10,10, 10)) staple_out = staple_multi_img(, set_orient = FALSE)

4 staple_bin_mat staple_bin_mat STAPLE on binary matri STAPLE on binary matri staple_bin_mat(, sens_init = 0.99999, spec_init = 0.99999, ma_iter = 10000, tol =.Machine$double.eps, prior = "mean", verbose = TRUE, trace = 25) sens_init spec_init ma_iter tol prior verbose trace a nr matri where there are n raters and r elements rated Initialize parameter for sensitivity (p) Initialize parameter for specificity (q) Maimum number of iterations to run Tolerance for convergence Either "mean" or a vector of prior probabilities, print diagnostic messages Number for modulus to print out verbose iterations List of output sensitivities, specificities, and vector of probabilities n = 5 r = 1000 sens = c(0.8, 0.9, 0.8, 0.5, 0.8) spec = c(0.9, 0.75, 0.99, 0.98, 0.92) set.seed(20171120) n_1 = 200 n_0 = r - n_1 truth = c(rep(0, n_0), rep(1, n_1)) pred_1 = rbinom(n = n, size = n_1, prob = sens) pred_0 = rbinom(n = n, size = n_0, prob = spec) pred_0 = sapply(pred_0, function(n) { sample(c(rep(0, n), rep(1, n_0 -n))) pred_1 = sapply(pred_1, function(n) { sample(c(rep(1, n), rep(0, n_1 -n))) pred = rbind(pred_0, pred_1)

staple_eample_data 5 true_sens = colmeans(pred[ truth == 1, ]) true_spec = colmeans(1-pred[ truth == 0, ]) = t(pred) staple_out = staple_bin_mat() staple_out_prior = staple_bin_mat(, prior = rep(0.5, r)) staple_eample_data STAPLE Eample Data STAPLE Eample Data staple_eample_data() Character vector of filenames staple_eample_data() staple_multi_mat STAPLE on Multi-class matri STAPLE on Multi-class matri staple_multi_mat(, sens_init = 0.99999, spec_init = 0.99999, ma_iter = 10000, tol =.Machine$double.eps, prior = "mean", verbose = TRUE, trace = 25, ties.method = c("first", "random", "last"))

6 staple_multi_mat sens_init spec_init ma_iter tol prior verbose trace ties.method a nr matri where there are n raters and r elements rated Initialize matri for sensitivity (p) Initialize matri for specificity (q) Maimum number of iterations to run Tolerance for convergence Either "mean" or a matri of prior probabilities, print diagnostic messages Number for modulus to print out verbose iterations Method passed to ma.col for hard segmentation List of matri output sensitivities, specificities, and matri of probabilities rm(list = ls()) = matri(rbinom(5000, size = 5, prob = 0.5), ncol = 1000) sens_init = 0.99999 spec_init = 0.99999 ma_iter = 10000 tol =.Machine$double.eps prior = "mean" verbose = TRUE trace = 25 ties.method = "first" res = staple_multi_mat()

Inde ma.col, 6 readnifti, 2 staple, 2 staple_bin_img, 3 staple_bin_mat, 2, 3, 4 staple_eample_data, 5 staple_multi_img (staple_bin_img), 3 staple_multi_mat, 2, 5 7