spfcICOMP

R-CMD-check

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:

Release status

Version 0.1.0 is the initial CRAN release candidate. The exact source tarball has passed the local test suite and CRAN-style check. The release commit remains subject to the five-platform GitHub Actions matrix before submission.

Installation from GitHub

The development version can be installed from GitHub with either pak or remotes:

pak::pak("ilovemaths/spfcICOMP")
# or
remotes::install_github("ilovemaths/spfcICOMP")

Basic example

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

Benchmark data and thesis reproducibility

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:

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.

Methodological references

Licence

MIT.

mirror server hosted at Truenetwork, Russian Federation.