predict_bliss_distribution {bliss}R Documentation

predict_bliss_distribution

Description

Compute the distribution of the predictions.

Usage

predict_bliss_distribution(x, grids, burnin, posterior_sample, beta_sample)

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.

beta_sample

a list provided by the function compute_beta_sample.

Value

A matrix containing predictions for each individual data x.

Examples


data(data1)
data(param1)
data(res_bliss1)

predict_bliss_distribution(data1$x,data1$grids,50,res_bliss1$posterior_sample,
   res_bliss1$beta_sample)


[Package bliss version 1.1.1 Index]