undocumented {sdtoolkit} | R Documentation |
Undocumented Functions for sdtoolkit
Description
A listing of all the helper and undocumented functions in sdtoolkit, along with brief description of their functionality. While some of these are useless except as part of larger functions, many may have use in post-discovery analysis of boxes, and the user may wish to explore their application.
Details
The functions are briefly discussed below, along with attributions to code from Duong's original prim package, where appropriate.
- beval
- “Box Evaluation” - Calculates coverage and density statistics for an individual box.
- boxconverter
- Converts a matrix-style box to a list-style box for use in
pbox
.
- colptplot
- “Colored Point Plot” - Function for plotting a scatterplot of the dataset given two specific dimensions to focus on, with high-value and low-value points distinguished via different fills and/or colors.
- contourmkr
- A rather untransparent function that generates other boxes by removing dimensions from the boxes that populate a box trajectory.
- csvboxes
- Writes out box definitions in format designed to be read in by CARs.
- dimchecker
- “Dimension Checker” - Small function to determine which ends of which dimensions have been restricted from their initial values.
- dupcolchecker
- “Duplicate Column Checker” - Called by
sd.start
, checks for whether columns in the potential input matrix are identical to other columns.
- filterpts
- Takes a dataset and a box, and returns the subset of points inside or outside the box.
- find.traj
- Based on Duong's
find.box
, is called by prim.traj
, uses peel.one
and paste.one
to generate a trajectory of boxes.
- boxformat
- Formats box definition and statistics so they can be printed nicely.
- in.box
- Unmodified from Duong, tests which points are inside a given box.
- in.box.seq
- Unmodified from Duong, test which points are inside a box sequence.
- lvout
- Finds the statistics associated with the boxes that result from dropping individual dimensions from a box.
- nicecat
- An entirely helper function for automatically doing word wrap, used in dialogue-heavy functions in the R console, such as
sd.start
and sdprim
.
- nullprob
- Estimates p-values for the significance of dimension restrictions, under certain assumptions (which are likely not actually met).
- olaps
- Takes the input data, output data and box sequence and returns the
olaps
attribute of a box sequence, a matrix which gives absolute coverage, and overlaps in box support and coverage.
- paste.one
- Essentially Duong's function - pasting one face onto a candidate box on the trajectory.
- pbox
- Function to plot rectangular boxes based on the box definitions in one of several forms.
- peel.one
- Very slightly modified from Duong's function of the same name, notably to call
pquantile
(below) rather than one of R's built-in quantile functions.
- pquantile
- A modified quantile function that better accounts for input vectors that have multiple repeated values.
- prim.traj
- Second-most high function that is responsible selection of individual boxes. The function
sdprim
is essentially a wrapper for this. Based off of Duong's prim.one
.
- boxprint
- Prints boxes in an easy to read way, along with some of their statistics.
- pvallister
- A wrapper of
nullprob
, calculates the quasi-p-values displayed along with dimension restrictions.
- ranker
- Ranks the dimension restrictions according to their importance in raising the density of the box.
- resampstats
- Resamples the original dataset multiple times to get an estimate of the variance of the statistics.
- traj.info
- Get information on boxes in the trajectory.
- traj.stats
- Formulate the trajectory statistics.
- trajplot
- Plots a box trajectory, possibly with dimensions contours and dominated points.
- uberstats
- Finds the ensemble statistics for a box sequence.
- unioner
- Takes two box definitions (defined differently in a somewhat non-standard format) and returns the box that minimally encompasses both, in list format.
- unionpts
- Finds the union of points contained within all boxes in a box sequence.
- vol.box
- Duong's original code, used by
peel.one
.
Author(s)
Benjamin P. Bryant, bryant@prgs.edu, with some code taken from Tarn Duong's prim package.
See Also
sdprim
, prim
[Package
sdtoolkit version 2.22
Index]