View source: R/basic_functions.R
BIC_model_choice | R Documentation |
Model selection with BIC criterion.
BIC_model_choice(Ks, iter, data, verbose = T)
Ks |
a numerical vector containing the K values. |
iter |
an integer, the number of iteration for each run of |
data |
a list containing required options to run the function
|
verbose |
write stuff if TRUE (optional). |
A numerical vector, the BIC values for the Bliss model for different K value.
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.