Skip to contents

User-facing functions

Main entry points for fitting a Normal-Block model and simulating data

normal_block()
Fit Normal-Block Models
normal_block_sequential()
Cluster Variables in the Mean, then in the Residual Covariance
normal_block_cv()
Cross-Validated Log-Likelihood of Normal-Block Models
NB_control()
Control Parameters for Normal-Block Models
generate_normal_block_var_data()
Simulate Data from a Normal-Block-Var Model
generate_normal_block_mean_data()
Simulate Data from a Normal-Block-Mean Model

Model and data classes

R6 classes returned by normal_block(). NormalBlockData wraps the responses and design matrix; NormalBlock{Var,Mean}Clusters (optionally ZI-prefixed) are single fitted models, with a known or unknown clustering; NormalBlock{Var,Mean}Collection are collections of models explored over a range of q and/or sparsity penalties.

NormalBlockData
Data Container for Normal-Block Models
NormalBlockVarKnownClusters
Normal-Block-Var Model with Known Clustering
NormalBlockVarUnknownClusters
Normal-Block-Var Model with Unknown Clustering
NormalBlockMeanKnownClusters
Normal-Block-Mean Model with Known Clustering
NormalBlockMeanUnknownClusters
Normal-Block-Mean Model with Unknown Clustering
ZINormalBlockVarKnownClusters
Zero-Inflated Normal-Block-Var Model with Known Clustering
ZINormalBlockVarUnknownClusters
Zero-Inflated Normal-Block-Var Model with Unknown Clustering
ZINormalBlockMeanKnownClusters
Zero-Inflated Normal-Block-Mean Model with Known Clustering
ZINormalBlockMeanUnknownClusters
Zero-Inflated Normal-Block-Mean Model with Unknown Clustering
NormalBlockVarCollectionClusters
Collection of Normal-Block-Var Models over a Range of Cluster Counts
NormalBlockVarCollectionSparsity
Collection of Normal-Block-Var Models over a Sparsity Path
NormalBlockVarCollectionClustersSparsity
Collection of Normal-Block-Var Models over Cluster Counts and Sparsity Levels
NormalBlockMeanCollectionClusters
Collection of Normal-Block-Mean Models over a Range of Cluster Counts
NormalBlockMeanCollectionSparsity
Collection of Normal-Block-Mean Models over a Sparsity Path
NormalBlockMeanCollectionClustersSparsity
Collection of Normal-Block-Mean Models over Cluster Counts and Sparsity Levels

Data sets

brca_rppa
Breast Cancer Proteomics Data (TCGA, RPPA)
onema
French Stream Fish Community Data (ONEMA / OFB Electrofishing Surveys)
university
University Webpages Text Data (CMU "4 Universities" / WebKB)

S3 methods

Standard extractors and methods for a fitted model (any NormalBlockBase subclass) and for a collection of models (any NormalBlockCollection subclass)

coef(<NormalBlockBase>)
Extract Model Coefficients
fitted(<NormalBlockBase>)
Extract Fitted Values
predict(<NormalBlockBase>)
Predict Method for Normal-Block Models
sigma(<NormalBlockBase>)
Extract the Covariance Matrix
print(<NormalBlockBase>)
Print a Normal-Block Model
summary(<NormalBlockBase>)
Summarize a Normal-Block Model
print(<summary.NormalBlockBase>)
Print a Normal-Block Model Summary
plot(<NormalBlockBase>)
Plot a Normal-Block Model
logLik(<NormalBlockBase>)
Extract Log-Likelihood of a Normal-Block Model
BIC(<NormalBlockBase>)
Bayesian Information Criterion for a Normal-Block Model
plot(<NormalBlockCollection>)
Plot a Collection of Normal-Block Models
print(<NormalBlockCollection>)
Print a Collection of Normal-Block Models
summary(<NormalBlockCollection>)
Summarize a Collection of Normal-Block Models
print(<summary.NormalBlockCollection>)
Print a Collection Summary
logLik(<NormalBlockCollection>)
Extract Log-Likelihood of a Collection of Normal-Block Models
BIC(<NormalBlockCollection>)
Bayesian Information Criterion for a Collection of Normal-Block Models
print(<normal_block_sequential>)
Print a Sequential Mean-then-Variance Fit
print(<normal_block_cv>)
Print a Cross-Validated Log-Likelihood
plot(<normal_block_cv>)
Plot a Cross-Validated Log-Likelihood

Internal

Abstract base classes and low-level helpers, documented for developers and for the methods their subclasses inherit

NormalBlockBase
Root Base Class for Normal-Block Models
NormalBlockVarBase
Base Class for Normal-Block-Var Models
NormalBlockMeanBase
Base Class for Normal-Block-Mean Models
NormalBlockCollection
Base Class for a Collection of Normal-Block Models
NormalBlockCollectionClusters
Base Class for a Collection of Models over a Range of Cluster Counts
NormalBlockCollectionSparsity
Base Class for a Collection of Models over a Sparsity Path
NormalBlockCollectionClustersSparsity
Base Class for a Collection over Cluster Counts and Sparsity Levels
get_model()
Create a Normal-Block Model Object
isNB()
Check if an Object is a Normal-Block Model