
Sample from a t-distribution
sample_distrib.Rd
Sample from a (possibly multivariate) t-distribution. This function can be used to sample both from a prior or posterior, depending on the value of parameters provided.
Arguments
- posterior
A tibble or data frame, detailing for each
Peptide
and eachGroup
, the value of the t-distribution parameters. The expected format is typically a return from a posterior_mean() function. Expected columns in the univariate case:mu
,lambda
,alpha
,beta
. Expected columns in the multivariate case:mu
,lambda
,Sigma
,nu
.- nb_sample
A number, indicating the number of samples generated for each couple
Peptide
-Group
.