R : Copyright 2005, The R Foundation for Statistical Computing Version 2.1.1 (2005-06-20), ISBN 3-900051-07-0 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for a HTML browser interface to help. Type 'q()' to quit R. > ### *
> ### > attach(NULL, name = "CheckExEnv") > assign(".CheckExEnv", as.environment(2), pos = length(search())) # base > ## add some hooks to label plot pages for base and grid graphics > setHook("plot.new", ".newplot.hook") > setHook("persp", ".newplot.hook") > setHook("grid.newpage", ".gridplot.hook") > > assign("cleanEx", + function(env = .GlobalEnv) { + rm(list = ls(envir = env, all.names = TRUE), envir = env) + RNGkind("default", "default") + set.seed(1) + options(warn = 1) + delayedAssign("T", stop("T used instead of TRUE"), + assign.env = .CheckExEnv) + delayedAssign("F", stop("F used instead of FALSE"), + assign.env = .CheckExEnv) + sch <- search() + newitems <- sch[! sch %in% .oldSearch] + for(item in rev(newitems)) + eval(substitute(detach(item), list(item=item))) + missitems <- .oldSearch[! .oldSearch %in% sch] + if(length(missitems)) + warning("items ", paste(missitems, collapse=", "), + " have been removed from the search path") + }, + env = .CheckExEnv) > assign("..nameEx", "__{must remake R-ex/*.R}__", env = .CheckExEnv) # for now > assign("ptime", proc.time(), env = .CheckExEnv) > grDevices::postscript("ump-Examples.ps") > assign("par.postscript", graphics::par(no.readonly = TRUE), env = .CheckExEnv) > options(contrasts = c(unordered = "contr.treatment", ordered = "contr.poly")) > options(warn = 1) > library('ump') > > assign(".oldSearch", search(), env = .CheckExEnv) > assign(".oldNS", loadedNamespaces(), env = .CheckExEnv) > cleanEx(); ..nameEx <- "arpv.binom" > > ### * arpv.binom > > flush(stderr()); flush(stdout()) > > ### Name: arpv.binom > ### Title: Abstract Randomized P-value for the Binomial Distribution > ### Aliases: arpv.binom > ### Keywords: htest > > ### ** Examples > > library(ump) > print(arpv.binom(10, 10, 0.7, plot = FALSE)) $alpha [1] 0.000000000 0.000019683 0.000433026 0.004290894 0.025294842 0.052384365 $phi [1] 0.0000000000 0.0004877631 0.0102430249 0.0956015654 0.5204974118 [6] 1.0000000000 > arpv.binom(10, 10, 0.7) > arpv.binom(10, 10, 0.7, df = FALSE) > > > > cleanEx(); ..nameEx <- "arpv.plot" > > ### * arpv.plot > > flush(stderr()); flush(stdout()) > > ### Name: arpv.plot > ### Title: Plot Abstract Randomized P-value > ### Aliases: arpv.plot > ### Keywords: htest > > ### ** Examples > > out <- arpv.binom(10, 10, 0.7) > arpv.plot(out$alpha, out$phi) > arpv.plot(out$alpha, out$phi, df = FALSE) > > > > cleanEx(); ..nameEx <- "fci.binom" > > ### * fci.binom > > flush(stderr()); flush(stdout()) > > ### Name: fci.binom > ### Title: Abstract Randomized P-value for the Binomial Distribution > ### Aliases: fci.binom > ### Keywords: htest > > ### ** Examples > > library(ump) > fci.binom(4, 10) 95 percent fuzzy confidence interval core is [0.1688, 0.6604] support is (0.0978, 0.7486) > fci.binom(0, 10) 95 percent fuzzy confidence interval core is empty support is [0, 0.3033) > fci.binom(9, 10) 95 percent fuzzy confidence interval core is [0.6967, 0.9943] support is (0.5569, 1) > > > > cleanEx(); ..nameEx <- "umpu.binom" > > ### * umpu.binom > > flush(stderr()); flush(stdout()) > > ### Name: umpu.binom > ### Title: UMPU Test for the Binomial Distribution > ### Aliases: umpu.binom > ### Keywords: htest > > ### ** Examples > > library(ump) > umpu.binom(0:10, 10, 0.6, 0.1) [1] 1.00000000 1.00000000 1.00000000 0.83289497 0.00000000 0.00000000 [7] 0.00000000 0.00000000 0.04942615 1.00000000 1.00000000 > > > > ### *