R/probmatrix.R

Defines functions probmatrix

#This function helps combine all probdraw we got from stage 1
probmatrix<-function(after_burn_in_data){
  S=length(after_burn_in_data)
  current_matrix<-c()
  for (s in 1:S){
    combined_matrix<-rbind(current_matrix, after_burn_in_data[[s]][["probdraw"]]) 
    current_matrix<-combined_matrix
  }
  return(current_matrix)  
}

Try the scalablebayesm package in your browser

Any scripts or data that you put into this service are public.

scalablebayesm documentation built on April 3, 2025, 7:55 p.m.