Learn R Programming

bliss (version 1.1.1)

predict_bliss: predict_bliss

Description

Compute predictions.

Usage

predict_bliss(x, grids, burnin, posterior_sample, Smooth_estimate)

Value

A vector of predictions for each individual data x.

Arguments

x

a list containing the design matrices related to the functional covariates. Must be similar to the result of the function sim_x.

grids

a list of numerical vectors, the qth vector is the grid of time points for the qth functional covariate.

burnin

an integer (optional), the number of iteration to drop from the posterior sample.

posterior_sample

a list provided by the function Bliss_Gibbs_Sampler.

Smooth_estimate

one of the objects resulting from Bliss_Simulated_Annealing.

Examples

Run this code
# \donttest{
data(data1)
data(param1)
data(res_bliss1)

predict_bliss(data1$x,data1$grids,50,res_bliss1$posterior_sample,res_bliss1$smooth_estimate)
# }

Run the code above in your browser using DataLab