Package: PReMiuM 3.2.14

PReMiuM: Dirichlet Process Bayesian Clustering, Profile Regression

Bayesian clustering using a Dirichlet process mixture model. This model is an alternative to regression models, non-parametrically linking a response vector to covariate data through cluster membership. The package allows Bernoulli, Binomial, Poisson, Normal, survival and categorical response, as well as Normal and discrete covariates. It also allows for fixed effects in the response model, where a spatial CAR (conditional autoregressive) term can be also included. Additionally, predictions may be made for the response, and missing values for the covariates are handled. Several samplers and label switching moves are implemented along with diagnostic tools to assess convergence. A number of R functions for post-processing of the output are also provided. In addition to fitting mixtures, it may additionally be of interest to determine which covariates actively drive the mixture components. This is implemented in the package as variable selection. The main reference for the package is Liverani, Hastie, Azizi, Papathomas and Richardson (2015) <doi:10.18637/jss.v064.i07>.

Authors:David I. Hastie [aut], Silvia Liverani [aut, cre], Sylvia Richardson [aut], Aurore J. Lavigne [aut], Lucy Leigh [aut], Lamiae Azizi [aut], Xi Liu [aut], Ruizhu Huang [aut], Austin Gratton [aut], Wei Jing [aut]

PReMiuM_3.2.14.tar.gz
PReMiuM_3.2.14.zip(r-4.7-x86_64)PReMiuM_3.2.14.zip(r-4.7-arm64)PReMiuM_3.2.14.zip(r-4.6-x86_64)PReMiuM_3.2.14.zip(r-4.6-arm64)PReMiuM_3.2.14.zip(r-4.5-x86_64)
PReMiuM_3.2.14.tgz(r-4.6-x86_64)PReMiuM_3.2.14.tgz(r-4.6-arm64)PReMiuM_3.2.14.tgz(r-4.5-x86_64)PReMiuM_3.2.14.tgz(r-4.5-arm64)
PReMiuM_3.2.14.tar.gz(r-4.7-arm64)PReMiuM_3.2.14.tar.gz(r-4.7-x86_64)PReMiuM_3.2.14.tar.gz(r-4.6-arm64)PReMiuM_3.2.14.tar.gz(r-4.6-x86_64)
PReMiuM_3.2.14.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION
card.svg |card.png
PReMiuM/json (API)

# Install 'PReMiuM' in R:
install.packages('PReMiuM', repos = c('https://silvialiverani.r-universe.dev', 'https://cloud.r-project.org'))
Uses libs:
  • c++– GNU Standard C++ Library v3

On CRAN:

Conda:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

cpp

3.21 score 162 scripts 947 downloads 10 mentions 36 exports 39 dependencies

Last updated from:c0ac6fae2a. Checks:15 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK167
linux-devel-x86_64OK177
source / vignettesOK278
linux-release-arm64OK186
linux-release-x86_64OK174
macos-release-arm64OK310
macos-release-x86_64OK481
macos-oldrel-arm64OK239
macos-oldrel-x86_64OK475
windows-devel-arm64OK429
windows-devel-x86_64OK192
windows-release-arm64OK366
windows-release-x86_64OK130
windows-oldrel-x86_64OK159
wasm-releaseOK137

Exports:calcAvgRiskAndProfilecalcDissimilarityMatrixcalcOptimalClusteringcalcPredictionsclusSummaryBernoulliDiscreteclusSummaryBernoulliDiscreteSmallclusSummaryBernoulliMixedclusSummaryBernoulliNormalclusSummaryBinomialNormalclusSummaryCategoricalDiscreteclusSummaryGammaNormalclusSummaryNormalDiscreteclusSummaryNormalNormalclusSummaryNormalNormalSpatialclusSummaryPoissonDiscreteclusSummaryPoissonNormalclusSummaryPoissonNormalSpatialclusSummaryQuantileNormalclusSummaryVarSelectBernoulliDiscreteclusSummaryWeibullDiscretecomputeRatioOfVariancegenerateSampleDataFileglobalParsTraceheatDissMatis.wholenumbermapforGeneratedDatamargModelPosteriorplotPredictionsplotRiskProfileprofRegrqALDrALDsetHyperparamssimBenchmarksummariseVarSelectRhovec2mat

Dependencies:BHbootclassclassIntcliclustercpp11data.tableDBIdeldire1071farverggplot2gluegtableisobandKernSmoothlabelinglatticelifecycleplotrixproxyR6RColorBrewerRcppRcppEigenrlangs2S7scalessfspspDataspdepunitsvctrsviridisLitewithrwk

Readme and manuals

Help Manual

Help pageTopics
Dirichlet Process Bayesian ClusteringPReMiuM-package PReMiuM PReMiuMpackage
Calculation of the average risks and profilescalcAvgRiskAndProfile
Calculates the dissimilarity matrixcalcDissimilarityMatrix
Calculation of the optimal clusteringcalcOptimalClustering
Calculates the predictionscalcPredictions
Sample datasets for profile regressionclusSummaryBernoulliDiscrete clusSummaryBernoulliDiscreteSmall clusSummaryBernoulliMixed clusSummaryBernoulliNormal clusSummaryBinomialNormal clusSummaryCategoricalDiscrete clusSummaryGammaNormal clusSummaryNormalDiscrete clusSummaryNormalNormal clusSummaryNormalNormalSpatial clusSummaryPoissonDiscrete clusSummaryPoissonNormal clusSummaryPoissonNormalSpatial clusSummaryQuantileNormal clusSummaryVarSelectBernoulliDiscrete clusSummaryWeibullDiscrete
computeRatioOfVariancecomputeRatioOfVariance
Generate sample data files for profile regressiongenerateSampleDataFile
Plot of the trace of some of the global parametersglobalParsTrace
Plot the heatmap of the dissimilarity matrixheatDissMat
Function to check if a number is a whole numberis.wholenumber
Map generated datamapforGeneratedData
Marginal Model PosteriormargModelPosterior
Plot the conditional density using the predicted scenariosplotPredictions
Plot the Risk ProfilesplotRiskProfile
Profile RegressionprofRegr
Asymmetric Laplace DistributionqALD rALD
Definition of characteristics of sample datasets for profile regressionsetHyperparams
Benchmark for simulated examplessimBenchmark
summariseVarSelectRhosummariseVarSelectRho
Vector to upper triangular matrixvec2mat