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("skewt-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('skewt') > > assign(".oldSearch", search(), env = .CheckExEnv) > assign(".oldNS", loadedNamespaces(), env = .CheckExEnv) > cleanEx(); ..nameEx <- "SkTdist" > > ### * SkTdist > > flush(stderr()); flush(stdout()) > > ### Name: SkTDist > ### Title: The Skewed Student t Distribution > ### Aliases: SkTDist dskt pskt qskt rskt > ### Keywords: distribution > > ### ** Examples > > dskt(0.5,2) [1] 0.2962963 > dskt(0.01,2,2) [1] 0.2828374 > pskt(1.25,2,2) [1] 0.5233808 > pskt(c(0.5,1.25),3) [1] 0.6742760 0.8500353 > qskt(c(0,0.025,0.25,0.5,0.75,0.975,1),2,2) [1] -Inf -1.2780193 0.1771230 1.1441551 2.6777547 11.0467980 Inf > rskt(100,2,2) [1] 0.232388526 0.623143952 1.489953464 5.383592633 0.005946537 [6] 5.062459054 7.204994781 1.992981781 1.797634676 -0.676074539 [11] 0.021123901 -0.083459733 2.170425494 0.668857076 2.870451910 [16] 1.133963625 2.400169059 19.732444971 0.653277971 2.949851509 [21] 6.564572427 0.042935242 1.934778235 -0.283579752 0.238504406 [26] 0.676576389 -1.833948323 0.662280182 4.328315384 0.504025674 [31] 1.065752758 1.630631096 1.115641359 -0.048844253 3.574771528 [36] 2.043246009 3.138032258 -0.366612291 2.449391604 0.774463525 [41] 3.481918040 1.905973973 3.009302081 1.390934750 1.279457767 [46] 3.081355165 -1.332589763 1.044902543 2.521136584 2.211272247 [51] 1.046571682 4.152865985 0.881758161 0.158631191 -0.599375344 [56] -0.411161940 0.415494356 1.228162469 2.000811161 0.756991990 [61] 5.553773877 0.333226693 0.968102291 0.474630585 1.929733425 [66] 0.205661826 1.050541585 2.834689971 -0.501841735 4.453649852 [71] 0.499299571 3.762096999 0.527548032 0.479720346 1.041140577 [76] 4.881457765 4.215871951 0.691497715 2.948523953 8.677894899 [81] 0.867819350 2.359887934 0.730274811 0.448729579 2.744346963 [86] 0.009518613 2.349035959 -0.300883098 0.161086802 -0.209023711 [91] 0.140283367 -0.703562801 1.876603905 4.475514211 2.965588583 [96] 3.174536356 0.952315307 0.769775917 3.344802615 1.660014022 > plot(function(x)dskt(x,2,2),-3,3) > > > > ### *