mise | R Documentation |
Computes the mean integrated squared error (MISE) for two given Bounded density objects.
mise(model1,model2,discreteApproximation = TRUE)
model1 |
a bounded density object. See |
model2 |
a bounded density object. See |
discreteApproximation |
If |
# a general approximation to a Beta(1,10) distribution using BoundedDensity objects cache <- seq(0,1,0.01) dens <- dbeta(cache,1,10) bd <- boundedDensity(x=cache,densities=dens) # a BrVitale approximation to the Beta(1,10) distribution using a random data sample to # learn the model dataSample <- rbeta(100,1,10) kernel <- hirukawaTSKernel(dataPoints=dataSample, b=0.1, c=0.3, dataPointsCache=cache, modified=FALSE) # compute the mise mise(bd,kernel,discreteApproximation=TRUE) mise(bd,kernel,discreteApproximation=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.