delt-package {delt}R Documentation

Estimation of multivariate densities with adaptive histograms

Description

The package implements methods for estimating multivariate densities: adaptive histograms (greedy histograms and CART-histograms), stagewise minimization, and bootstrap aggregation are provided.

Details

Package: delt
Version: 0.6.0
Date: 2006-05-14
Depends: R
License: GPL version 2 or newer
URL: http://www.rni.helsinki.fi/~jsk/delt
Packaged: Wed May 17 10:47:27 2006; jsk
Built: R 2.2.1; i686-pc-linux-gnu; 2006-05-17 10:47:34; unix

Greedy histograms: eval.greedy, lstseq.greedy.

CART-histograms: eval.cart, lstseq.cart.

CART histograms step by step: densplit, prune, eval.pick.

Bootstrap aggregation of histograms: eval.bagg, lstseq.bagg.

Stagewise minimization: eval.stage, eval.stage.gauss.

Other utilities: partition, plotparti.

Tree transformation: lefrig2par, makebina.

Miscallenous: intpcf, supp.

Index:

densplit                Calculation of an overfitting histogram
eval.bagg               Returns a bootstrap aggregation of adaptive
                        histograms
eval.cart               Calculates a CART histogram
eval.greedy             Returns a greedy histogram
eval.pick               Returns a subtree of an evaluation tree
eval.stage              Returns a stagewise minimization estimate
eval.stage.gauss        Returns a 1D Gaussian mixture density estimate
intpcf                  Calculates the integral of a piecewise constant
                        function
lefrig2par              Transforms an evaluation tree so that it can be
                        plotted with the "plottree" function of package
                        "denpro"
lstseq.bagg             Calculates a scale of bootstrap aggregated
                        histograms
lstseq.cart             Calculates a scale of CART histograms
lstseq.greedy           Calculates a scale of greedy histograms
makebina                Tranforms and evaluation tree to the tree
                        object of R
partition               Finds the partition generated by an evaluation
                        tree
plotparti               Draws a partition
prune                   Prepares for pruning an overfitting evaluation
                        tree
scaspa                  Finds the number of modes of histograms which
                        are obtained by pruning an overfitting
                        histogram
supp                    Returns the bounding box of observations

Author(s)

Jussi Klemela <klemela@oulu.fi>

Maintainer: Jussi Klemela <klemela@oulu.fi>

Examples


# Generate the data

dendat<-sim.data(n=500,seed=5,type="mulmodII")

# Calculate the estimates

eva<-eval.greedy(dendat,leaf=16)

eva<-eval.cart(dendat,leaf=16)

eva<-eval.bagg(dendat,B=3,leaf=12,prune="on")

eva<-eval.stage(dendat,leaf=10,M=3)

# Draw the estimates

lst<-leafsfirst(eva)
plotvolu(lst)

dp<-draw.pcf(eva,pnum=c(60,60))         
persp(dp$x,dp$y,dp$z,theta=-20,phi=30)


[Package delt version 0.8.0 Index]