Package: levelSets 0.8.2

Richard Raubertas

levelSets: Ray-Based Mapping and Visualization of Level Sets (Excursion Sets)

An (upper) level set of a function is the set of inputs for which the function value is at or above a specified threshold. (Also called an excursion set). Applications of level sets include confidence or credible regions for parameters of statistical models, where the function is the likelihood or posterior density; regions where classification rules assign high probability to a given class; and scientific or engineering models where one is interested in input regions for which model output is above a threshold. This package maps out the boundary of a level set by finding its intersections with collections of 1-dimensional rays, generalizing a proposal by Kim and Lindsay (Statistica Sinica 21:923-948, 2011). Tools are provided to generate rays, find intersections, and visualize results. The package makes few assumptions about the studied function: it may be discontinuous, it may have a complicated feasible region, and the target level set may be non-convex or have multiple, disconnected parts. Vignettes describe package usage and show examples with two to five input space dimensions.

Authors:Richard Raubertas [aut, cre]

levelSets_0.8.2.tar.gz
levelSets_0.8.2.tar.gz(r-4.7-any)levelSets_0.8.2.tar.gz(r-4.6-any)
levelSets_0.8.2.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
levelSets/json (API)
NEWS

# Install 'levelSets' in R:
install.packages('levelSets', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))
Datasets:

On CRAN:

Conda:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

2.60 score 56 exports 2 dependencies

Last updated from:f3e33bc9ce. Checks:2 WARNING, 2 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64WARNING151
source / vignettesOK239
linux-release-x86_64WARNING154
wasm-releaseOK136

Exports:absTolaxisRaysbdryFromRaysbdrySearchboundingRectfeasBndsfnObjfnSpechasGradinpDiminpLinesinpLines.defaultinpNamesinpRaysinpRays.defaultinpRectinpScaleinpTollsetPkgOptlsetSegslsetSegsChecklsetThreshpairs.lsetSegsplot.inpRaysplot.inpRectplot.lsetSegsplot.respProfilesplotSegsListposnToCoordprint.inpLinesprint.respProfilesptCoordrandomRaysrayOriginrayPosn1rayRectrayVecrectCornersrectRefPtrectSizerespInforespInfo.defaultrespProfilesrespProfiles.fnObjrespTolsegBoundingRectsegInfoslicedBdryFromRaysslicedBdrySearchsliceMatsrchControlsummary.lsetSegssummary.respProfilesupdate.fnObjupdate.inpRaysupdate.inpRect

Dependencies:proxywithr

levelSets Example: Classifiers

Rendered fromlevelSets.4.ex_classif.Rmdusingknitr::rmarkdownon Jun 22 2026.

Last update: 2026-06-22
Started: 2026-06-22

levelSets Example: Confidence Regions

Rendered fromlevelSets.3.ex_confreg.Rmdusingknitr::rmarkdownon Jun 22 2026.

Last update: 2026-06-22
Started: 2026-06-22

levelSets Problem Setup

Rendered fromlevelSets.2.problem_setup.Rmdusingknitr::rmarkdownon Jun 22 2026.

Last update: 2026-06-22
Started: 2026-06-22

Introduction to the levelSets Package

Rendered fromlevelSets.1.intro.Rmdusingknitr::rmarkdownon Jun 22 2026.

Last update: 2026-06-22
Started: 2026-06-22

Readme and manuals

Help Manual

Help pageTopics
Absolute (Difference Scale) Tolerance ValuesabsTol
Rays Based on the Coordinate Axes of Input SpaceaxisRays
Negative of Rosenbrock's Banana Function in Two Dimensionsbanana_2dEx
Intersections of Rays with the Boundary of a Level SetbdryFromRays
Ray-Based Exploration of the Boundary of a Level SetbdrySearch
Hyper-Rectangle Bounding a Set of Points in Input SpaceboundingRect
Example of a 3D Confidence Region as a Level SetcircuitFailure_3dEx
Example of a Multi-Part Level Set in a 2D Input Spacedbl_ellipse_2dEx dbl_ellipse_X1bnd_2dEx
Box Constraints on a Feasible RegionfeasBnds
Create an Object that Represents a Response FunctionfnObj
Create an Object that Represents a Response FunctionfnObj.character
Create an Object that Represents a Response FunctionfnObj.fnSpec
Input Space and Related SpecificationsfnSpec
Can a Response Function Calculate Gradient Vectors?hasGrad
Number of Dimensions for the Input SpaceinpDim
Lines in Input SpaceinpLines
Lines in Input SpaceinpLines.default
Names of the Dimensions of the Input SpaceinpNames
Rays in Input SpaceinpRays
Rays in Input SpaceinpRays.default
Hyper-Rectangle in Input SpaceinpRect
Scaling Information for Dimensions of Input SpaceinpScale
Numerical Tolerance Specifications for the Input SpaceinpTol
Extract or Set Options for the 'levelSets' PackagelsetPkgOpt
Line Segments in a Level Set of a Response FunctionlsetSegs
Check the Validity of Level Set Line SegmentslsetSegsCheck
Response Function Value that Defines a Level SetlsetThresh
'pairs' Method for Plotting 'lsetSegs' Objectspairs.lsetSegs
Plot Method for 'inpRays' Objectsplot.inpRays
Plot Method for 'inpRect' Objectsplot.inpRect
Plot Method for 'lsetSegs' Objectsplot.lsetSegs
Plot Profiles of a Response Function along Lines/Raysplot.respProfiles
Plot Sets of Level Set Segments in Separate PanelsplotSegsList
Convert Positions on Lines or Rays to Point CoordinatesposnToCoord
'print' Method for 'inpLines' and 'inpRays' Objectsprint.inpLines
'print' Method for 'respProfiles' and 'lsetSegs' Objectsprint.respProfiles
Extract a Matrix of Point CoordinatesptCoord
Generate Rays in Input SpacerandomRays
Coordinates of the Origin of a Set of Rays in Input SpacerayOrigin
Coordinates of the Position 1 Points of a Set of RaysrayPosn1
Hyper-Rectangle Associated with a Set of RaysrayRect
Ray Direction Vectors from an 'inpRays' ObjectrayVec
Coordinates of the Corner Points of a Hyper-RectanglerectCorners
Coordinates of the Reference Point of a Hyper-RectanglerectRefPt
Lengths of the Sides of a Hyper-RectanglerectSize
Response Function Values at Input PointsrespInfo
Response Function Values at Input PointsrespInfo.default
Profiles of a Response Function along Lines or RaysrespProfiles
Profiles of a Response Function along Lines or RaysrespProfiles.fnObj
Numerical Tolerance Specification for Response ValuesrespTol
Hyper-Rectangle Bounding a Set of Level Set SegmentssegBoundingRect
Information About Level Set Line SegmentssegInfo
Ray-Based Exploration of the Boundary of a Level SetslicedBdryFromRays
Ray-Based Exploration of the Boundary of a Level SetslicedBdrySearch
Define Slices of Input SpacesliceMat
Default Control Parameters for Boundary Search FunctionssrchControl
'summary' Method for 'lsetSegs' Objectssummary.lsetSegs
'summary' Method for 'respProfiles' Objectssummary.respProfiles
Update Certain Specifications in an 'fnObj' Objectupdate.fnObj
Rays in Input Spaceupdate.inpRays
Update Method for 'inpRect' Objectsupdate.inpRect