predict.combinedFlexCoDE: Evaluates the estimated density of new observations (testing...

Description Usage Arguments Value Examples

View source: R/basicFunctions.R

Description

Evaluates the estimated density of new observations (testing points) of a "combinedFlexCoDE" object

Usage

1
2
## S3 method for class 'combinedFlexCoDE'
predict(objectCombined, xNew, B = 1000, predictionBandProb = FALSE)

Arguments

xNew

Matrix with nTest rows and same number of columns as xTrain, containing x's for which the estimates are desired.

B

Number of point where f(z|x) will be evaluated (on the z scale). This will be equally spaced between zMin and zMax

predictionBandProb

Either a number indicating the probability for the highest predictive density region desired or FALSE if bands are not desired. Default is FALSE

objectCDE

Object of the class "combinedFlexCoDE", typically fitted used combineFlexCoDE beforehand

Value

The return value is an object with the following components

z

Points where the density was evaluate

CDE

Matrix with value of the density at points z. Each row corresponds to a different observation x (i-th row of CDE corresponds to i-th row of xTest).

Examples

1
# See \code{\link{combineFlexCoDE}}

rizbicki/FlexCoDE documentation built on Feb. 10, 2022, 3:14 p.m.