spfcICOMP implements Shrinkage Principal Fitted Components (SPFC) for
high-dimensional sufficient dimension reduction, structural-dimension
selection, feature screening, regression, and classification.
The package currently provides:
Version 0.1.0 is published on CRAN and archived on Zenodo. The release passed 149 test expectations, the five-platform GitHub Actions matrix, the declared R 3.5.0 compatibility audit, and CRAN incoming pretests with no errors or warnings.
Install the released version from CRAN:
install.packages("spfcICOMP")
library(spfcICOMP)
The development version can be installed from GitHub with either pak or
remotes:
# pak::pak("ilovemaths/spfcICOMP")
install.packages("spfcICOMP", repos = c('https://ilovemaths.r-universe.dev', 'https://cloud.r-project.org'))
# or
remotes::install_github("ilovemaths/spfcICOMP")
library(spfcICOMP)
set.seed(123)
X <- matrix(rnorm(40 * 10), nrow = 40, ncol = 10)
y <- X[, 1] - 0.5 * X[, 2] + rnorm(40)
fit <- spfc_fit(
X = X,
y = y,
d = 1,
ytype = "continuous",
cov_method = "mec",
nslices = 5,
poly_degree = 2
)
fit
summary(fit)
head(fitted(fit))
Automatic structural-dimension selection is available through
spfc_select_dimension():
dsel <- spfc_select_dimension(
X = X,
y = y,
d_grid = 1:3,
cov_method = "mec",
ytype = "continuous"
)
dsel$selected
Third-party Riboflavin and Golub gene-expression datasets are not bundled in
the CRAN package. The research scripts under thesis_analysis/ obtain the
benchmarks from their established statistical-data packages when required:
hdi 0.1-10 source via an archive-safe loader;multtest.These optional research-data packages are not required for the normal
installation, tests, vignettes, or examples of spfcICOMP. See
thesis_analysis/README.md for the frozen empirical-analysis settings and run
order.
To obtain the package citation in R, run:
citation("spfcICOMP")
For the exact 0.1.0 software archive, use https://doi.org/10.5281/zenodo.22310095. The stable concept DOI for the software project is https://doi.org/10.5281/zenodo.22310094.
MIT.