BIC_model_choice {bliss}R Documentation

BIC_model_choice

Description

Model selection with BIC criterion.

Usage

BIC_model_choice(Ks, iter, data, verbose = T)

Arguments

Ks

a numerical vector containing the K values.

iter

an integer, the number of iteration for each run of fit_Bliss.

data

a list containing:

Q

an integer, the number of functional covariates.

y

a numerical vector, the outcomes.

x

a list of matrices, the qth matrix contains the observations of the qth functional covariate at time points given by grids.

grids

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

verbose

write stuff if TRUE (optional).

Value

A numerical vector, the BIC values for the Bliss model for different K value.

Examples


param_sim <- list(Q=1,n=100,p=c(50),grids_lim=list(c(0,1)))
data      <- sim(param_sim,verbose=TRUE)
iter = 1e2
Ks <- 1:5

res_BIC <- BIC_model_choice(Ks,iter,data)
plot(res_BIC,xlab="K",ylab="BIC")


[Package bliss version 1.0.4 Index]