RGLab / flowClust

Bayesian flowClust
9 stars 8 forks source link

getting quantiles for each point, for each cluster from flowClust object #23

Open phauchamps opened 1 year ago

phauchamps commented 1 year ago

Hi @gfinak, hi @mikejiang,

I was wondering whether there was a way to get the quantiles of each point, for each cluster from a flowClust object., i.e. the quantile of each point with regard to the K different multivariate student-t distributions that were fitted to the data.

So, in other words, the output would look like the one from posterior() or importance(), but returning the quantiles instead of the posterior probability/weight. I guess this information is calculated at some point in order to apply the 'level' outlier parameter (when it is used).

Thanks a lot,

Philippe

gfinak commented 1 year ago

It is but there is no specific API for it. I recommend digging around in the source to figure out where the calculation is done and reference the paper for accuracy. I recall it's in the R code, but that's about it. Sorry I can't be of more specific help at this time.

phauchamps commented 1 year ago

I'll give it a try, thanks !