{
  "_id": "6afb423c69eab6fdff2d5b9d",
  "Package": "msPCA",
  "Type": "Package",
  "Title": "Sparse Principal Component Analysis with Multiple Principal\nComponents",
  "Version": "0.5.1",
  "Date": "2026-08-25",
  "Authors@R": "c(\nperson(\"Ryan\", \"Cory-Wright\", , \"r.cory-wright@imperial.ac.uk\", role = c(\"aut\", \"cph\"),\ncomment = c(ORCID = \"0000-0002-4485-0619\")),\nperson(\"Jean\", \"Pauphilet\", , \"jpauphilet@london.edu\", role = c(\"aut\", \"cre\", \"cph\"),\ncomment = c(ORCID = \"0000-0001-6352-0984\"))\n)",
  "Description": "Implements an algorithm for computing multiple sparse\nprincipal components of a dataset. The method is based on\nCory-Wright and Pauphilet \"Sparse PCA with Multiple Components\"\n(2026) <doi:10.1287/opre.2023.0598>. The algorithm uses an\niterative deflation heuristic with a truncated power method\napplied at each iteration to compute sparse principal\ncomponents with controlled sparsity.",
  "License": "MIT + file LICENSE",
  "URL": "https://jeanpauphilet.github.io/msPCA/",
  "BugReports": "https://github.com/jeanpauphilet/msPCA/issues",
  "Config/testthat/edition": "3",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "LazyDataCompression": "xz",
  "VignetteBuilder": "knitr",
  "Config/roxygen2/version": "8.1.0",
  "Roxygen": "list(markdown = TRUE, roclets = c(\"namespace\", \"rd\",\n\"srr::srr_stats_roclet\"))",
  "Repository": "https://ropensci-staging.r-universe.dev",
  "Date/Publication": "2026-11-16 11:57:16 UTC",
  "RemoteUrl": "https://github.com/jeanpauphilet/msPCA",
  "RemoteRef": "HEAD",
  "RemoteSha": "2e571aeba9f5f93c3d59a01293fdba20d3f6ece1",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-11-16 17:00:40 UTC",
    "User": "root"
  },
  "Author": "Ryan Cory-Wright [aut, cph] (ORCID:\n<https://orcid.org/0000-0002-4485-0619>),\nJean Pauphilet [aut, cre, cph] (ORCID:\n<https://orcid.org/0000-0001-6352-0984>)",
  "Maintainer": "Jean Pauphilet <jpauphilet@london.edu>",
  "_user": "ropensci-staging",
  "_type": "src",
  "_file": "msPCA_0.5.1.tar.gz",
  "_fileid": "https://r2.ropensci.org/59e5b240a0f0309747a5c5ac0b41f4d124f37539bb6ce273667611780f1d5add",
  "_filesize": 1532962,
  "_sha256": "59e5b240a0f0309747a5c5ac0b41f4d124f37539bb6ce273667611780f1d5add",
  "_expires": "2027-02-24T17:49:44.000Z",
  "_created": "2026-11-16T17:00:40.000Z",
  "_published": "2026-11-16T17:49:48.434Z",
  "_upstream": "https://github.com/jeanpauphilet/msPCA",
  "_status": "success",
  "_maintainer": {
    "name": "Jean Pauphilet",
    "email": "jpauphilet@london.edu",
    "login": "jeanpauphilet",
    "description": "",
    "uuid": 9570405,
    "orcid": "0000-0001-6352-0984"
  },
  "_jobs": [
    {
      "job": 133462671835,
      "time": 109,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "14248678698"
    },
    {
      "job": 133462671179,
      "time": 139,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "14249955301"
    },
    {
      "job": 133462671283,
      "time": 113,
      "config": "linux-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14248688726"
    },
    {
      "job": 133462671340,
      "time": 142,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14249820625"
    },
    {
      "job": 133462671545,
      "time": 129,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "14255170532"
    },
    {
      "job": 133462671265,
      "time": 378,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "14249052905"
    },
    {
      "job": 133462671189,
      "time": 136,
      "config": "macos-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14250166345"
    },
    {
      "job": 133462671249,
      "time": 303,
      "config": "macos-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14252214714"
    },
    {
      "job": 133460377586,
      "time": 173,
      "config": "pkgdown",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "14247928622"
    },
    {
      "job": 133460377608,
      "time": 210,
      "config": "source",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14249266485"
    },
    {
      "job": 133462671262,
      "time": 116,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "14248853604"
    },
    {
      "job": 133462671574,
      "time": 247,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "14248977832"
    },
    {
      "job": 133462671246,
      "time": 249,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "14248179423"
    },
    {
      "job": 133462671231,
      "time": 203,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "14249576494"
    },
    {
      "job": 133462671717,
      "time": 272,
      "config": "windows-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14248404424"
    },
    {
      "job": 133462671380,
      "time": 207,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14248594115"
    }
  ],
  "_buildurl": "https://github.com/r-universe/ropensci-staging/actions/runs/43913134414",
  "_commit": {
    "id": "2e571aeba9f5f93c3d59a01293fdba20d3f6ece1",
    "author": "jeanpauphilet <jean.pauphilet@gmail.com>",
    "committer": "jeanpauphilet <jean.pauphilet@gmail.com>",
    "message": "minor ml03 fixes\n",
    "time": 1794830236
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "RcppEigen",
      "role": "LinkingTo"
    },
    {
      "package": "Rcpp",
      "version": ">= 1.0.11",
      "role": "Imports"
    },
    {
      "package": "covr",
      "role": "Suggests"
    },
    {
      "package": "datasets",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "jeanpauphilet",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-48",
      "n": 7
    },
    {
      "week": "2025-49",
      "n": 6
    },
    {
      "week": "2025-50",
      "n": 6
    },
    {
      "week": "2026-03",
      "n": 2
    },
    {
      "week": "2026-20",
      "n": 12
    },
    {
      "week": "2026-21",
      "n": 14
    },
    {
      "week": "2026-24",
      "n": 7
    },
    {
      "week": "2026-25",
      "n": 9
    },
    {
      "week": "2026-26",
      "n": 5
    },
    {
      "week": "2026-27",
      "n": 2
    },
    {
      "week": "2026-33",
      "n": 18
    },
    {
      "week": "2026-34",
      "n": 19
    },
    {
      "week": "2026-35",
      "n": 5
    },
    {
      "week": "2026-46",
      "n": 6
    },
    {
      "week": "2026-47",
      "n": 4
    }
  ],
  "_tags": [
    {
      "name": "v0.1.0",
      "date": "2025-12-02"
    },
    {
      "name": "v0.2.0",
      "date": "2026-01-12"
    },
    {
      "name": "v0.4.0",
      "date": "2026-05-22"
    },
    {
      "name": "v0.4.1",
      "date": "2026-06-12"
    },
    {
      "name": "v0.5.0",
      "date": "2026-06-25"
    },
    {
      "name": "v0.5.1",
      "date": "2026-08-25"
    }
  ],
  "_topics": [
    "dimensionality-reduction",
    "principal-component-analysis",
    "sparse-pca",
    "cpp"
  ],
  "_stars": 1,
  "_contributors": [
    {
      "user": "jeanpauphilet",
      "count": 191,
      "uuid": 9570405
    },
    {
      "user": "chenkaima",
      "count": 30,
      "uuid": 66942624
    }
  ],
  "_userbio": {
    "uuid": 318245800,
    "type": "organization",
    "name": "ropensci-staging",
    "followers": 0
  },
  "_downloads": {
    "count": 416,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/msPCA"
  },
  "_devurl": "https://github.com/jeanpauphilet/mspca",
  "_pkgdown": "https://jeanpauphilet.github.io/msPCA/",
  "_abi": {
    "exports": [],
    "imports": [
      {
        "key": "Rcpp::Rcpp_precious_preserve()",
        "hash": "33a97ea62b293da6"
      },
      {
        "key": "Rcpp::Rcpp_precious_remove()",
        "hash": "63d26947ba7e1377"
      },
      {
        "key": "Rcpp::dataptr()",
        "hash": "54e69ad2e6668c83"
      },
      {
        "key": "Rcpp::demangle()",
        "hash": "b0cfd6754c5ebc4e"
      },
      {
        "key": "Rcpp::enterRNGScope()",
        "hash": "a04a299137cef947"
      },
      {
        "key": "Rcpp::exitRNGScope()",
        "hash": "a04a299137cef947"
      },
      {
        "key": "Rcpp::rcpp_get_stack_trace()",
        "hash": "c684a9bbe15cdc52"
      },
      {
        "key": "Rcpp::rcpp_set_stack_trace()",
        "hash": "33a97ea62b293da6"
      }
    ]
  },
  "_metadata": {
    "review": {
      "id": 826,
      "organization": "rOpenSci Software Review",
      "url": "https://github.com/ropensci/software-review/issues/826"
    }
  },
  "_rbuild": "4.6.2",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/msPCA.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE"
  ],
  "_homeurl": "https://github.com/jeanpauphilet/mspca",
  "_realowner": "jeanpauphilet",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2025-12-11"
    },
    {
      "version": "0.2.0",
      "date": "2026-01-12"
    },
    {
      "version": "0.3.0",
      "date": "2026-05-15"
    },
    {
      "version": "0.4.0",
      "date": "2026-05-22"
    },
    {
      "version": "0.4.1",
      "date": "2026-06-12"
    },
    {
      "version": "0.5.0",
      "date": "2026-06-25"
    },
    {
      "version": "0.5.1",
      "date": "2026-08-25"
    }
  ],
  "_exports": [
    "feasibility_violation_off",
    "fraction_variance_explained",
    "fraction_variance_explained_perPC",
    "mspca",
    "tpm",
    "variance_explained_perPC"
  ],
  "_datasets": [
    {
      "name": "snp500",
      "title": "Market-deflated correlation matrix of S&P 500 daily returns",
      "object": "snp500",
      "class": [
        "matrix",
        "array"
      ],
      "fields": [],
      "rows": 423,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "feasibility_violation_off",
      "title": "Feasibility Violation",
      "topics": [
        "feasibility_violation_off"
      ]
    },
    {
      "page": "fraction_variance_explained",
      "title": "Fraction of Variance Explained",
      "topics": [
        "fraction_variance_explained"
      ]
    },
    {
      "page": "fraction_variance_explained_perPC",
      "title": "Fraction of Variance Explained Per PC",
      "topics": [
        "fraction_variance_explained_perPC"
      ]
    },
    {
      "page": "mspca",
      "title": "Multiple Sparse PCA",
      "topics": [
        "mspca"
      ]
    },
    {
      "page": "print.mspca",
      "title": "Print an mspca Object",
      "topics": [
        "print.mspca"
      ]
    },
    {
      "page": "snp500",
      "title": "Market-deflated correlation matrix of S&P 500 daily returns",
      "topics": [
        "snp500"
      ]
    },
    {
      "page": "summary.mspca",
      "title": "Summarize an mspca Object",
      "topics": [
        "summary.mspca"
      ]
    },
    {
      "page": "tpm",
      "title": "Truncated Power Method",
      "topics": [
        "tpm"
      ]
    },
    {
      "page": "variance_explained_perPC",
      "title": "Variance Explained Per PC",
      "topics": [
        "variance_explained_perPC"
      ]
    }
  ],
  "_readme": "https://github.com/jeanpauphilet/msPCA/raw/HEAD/README.md",
  "_rundeps": [
    "Rcpp",
    "RcppEigen"
  ],
  "_sysdeps": [
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "16-20260322-1ubuntu1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_vignettes": [
    {
      "source": "algorithm-and-implementation.Rmd",
      "filename": "algorithm-and-implementation.html",
      "title": "Algorithm and implementation notes",
      "engine": "knitr::rmarkdown",
      "headings": [
        "The problem",
        "Evaluation metrics",
        "Lagrangian alternating maximization",
        "Implementation details",
        "Computational complexity",
        "Guidance on parameter choices",
        "Choosing the sparsity budgets ks",
        "Choosing the constraint type",
        "Iteration and restart budgets",
        "References"
      ],
      "created": "2026-08-12 10:13:17",
      "modified": "2026-11-16 10:21:37",
      "commits": 9
    },
    {
      "source": "case-study-snp500.Rmd",
      "filename": "case-study-snp500.html",
      "title": "Case study: sparse factors in S&P 500 returns",
      "engine": "knitr::rmarkdown",
      "headings": [
        "The data",
        "Sparse factor extraction",
        "Comparing the two constraint types",
        "Interpreting the sparse components",
        "Under orthogonality constraints",
        "Under zero-correlation constraints",
        "Takeaway",
        "References"
      ],
      "created": "2026-08-12 10:13:17",
      "modified": "2026-08-18 14:35:31",
      "commits": 5
    },
    {
      "source": "msPCA.Rmd",
      "filename": "msPCA.html",
      "title": "Worked example: msPCA on mtcars",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Overview",
        "Install and load",
        "Fit two sparse PCs",
        "Working from the raw data matrix",
        "Orthogonality versus zero correlation",
        "Diagnostics",
        "Comparison with dense PCA",
        "Where to go next"
      ],
      "created": "2026-06-12 15:38:00",
      "modified": "2026-08-18 10:00:27",
      "commits": 9
    }
  ],
  "_score": 5.352182518111363,
  "_indexed": false,
  "_nocasepkg": "mspca",
  "_universes": [
    "ropensci-staging"
  ],
  "_indexurl": "https://jeanpauphilet.r-universe.dev/msPCA",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.5.1",
      "date": "2026-11-16T17:03:36.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "2e571aeba9f5f93c3d59a01293fdba20d3f6ece1",
      "fileid": "https://r2.ropensci.org/73714178301e7be4fd9792aaa3258dfc497e750fbf214e2ea060ce13b328f59a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropensci-staging/actions/runs/43913134414"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.5.1",
      "date": "2026-11-16T17:04:23.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "2e571aeba9f5f93c3d59a01293fdba20d3f6ece1",
      "fileid": "https://r2.ropensci.org/dc6e2e54f384f7d05a194eedeaa7b28f7690e5bf6c1b2ba4e426c4c5c5c733a7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropensci-staging/actions/runs/43913134414"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "0.5.1",
      "date": "2026-11-16T17:03:40.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "2e571aeba9f5f93c3d59a01293fdba20d3f6ece1",
      "fileid": "https://r2.ropensci.org/6eb355fc07dbdaa50c085bcbbf2b5d334fa8c0ea11fbde327e2523e5af57cff8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropensci-staging/actions/runs/43913134414"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "0.5.1",
      "date": "2026-11-16T17:03:48.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "2e571aeba9f5f93c3d59a01293fdba20d3f6ece1",
      "fileid": "https://r2.ropensci.org/88b877624a024c659ecdeaf3df2fae5304822f73c13dffb7607b0109ed493853",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropensci-staging/actions/runs/43913134414"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.5.1",
      "date": "2026-11-16T17:47:27.000Z",
      "arch": "aarch64",
      "commit": "2e571aeba9f5f93c3d59a01293fdba20d3f6ece1",
      "fileid": "https://r2.ropensci.org/5dd1e643c6e061a7cca434a379fcf21693d5a4c9782027689ef13495524b2fee",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropensci-staging/actions/runs/43913134414"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.5.1",
      "date": "2026-11-16T17:05:51.000Z",
      "arch": "x86_64",
      "commit": "2e571aeba9f5f93c3d59a01293fdba20d3f6ece1",
      "fileid": "https://r2.ropensci.org/8a864ba00085c8d57b38d09fca34dbc3bbbbfbc2d87e0fd594b183bc948e114d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropensci-staging/actions/runs/43913134414"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "0.5.1",
      "date": "2026-11-16T17:16:57.000Z",
      "arch": "aarch64",
      "commit": "2e571aeba9f5f93c3d59a01293fdba20d3f6ece1",
      "fileid": "https://r2.ropensci.org/6c929d19b5d5e7d254a42c1e102035e849fa584fb483c266fb41e2c7ec0f3ddb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropensci-staging/actions/runs/43913134414"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "0.5.1",
      "date": "2026-11-16T17:41:15.000Z",
      "arch": "x86_64",
      "commit": "2e571aeba9f5f93c3d59a01293fdba20d3f6ece1",
      "fileid": "https://r2.ropensci.org/72c8b37408aa3cf7b6e365242a5cc9c107406ac44d62b4609988fcbdf4e17617",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropensci-staging/actions/runs/43913134414"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.5.1",
      "date": "2026-11-16T17:03:49.000Z",
      "arch": "emscripten",
      "commit": "2e571aeba9f5f93c3d59a01293fdba20d3f6ece1",
      "fileid": "https://r2.ropensci.org/3f6e072b5679e4161975679af0de742859d36932352c93119b4a331103430164",
      "status": "success",
      "buildurl": "https://github.com/r-universe/ropensci-staging/actions/runs/43913134414"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.5.1",
      "date": "2026-11-16T17:05:48.000Z",
      "arch": "aarch64",
      "commit": "2e571aeba9f5f93c3d59a01293fdba20d3f6ece1",
      "fileid": "https://r2.ropensci.org/ced9f38fe43fa4d3dd7be0a586b98894ba93f72269a5dc092e8c8d6f0ca24113",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropensci-staging/actions/runs/43913134414"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.5.1",
      "date": "2026-11-16T17:04:56.000Z",
      "arch": "x86_64",
      "commit": "2e571aeba9f5f93c3d59a01293fdba20d3f6ece1",
      "fileid": "https://r2.ropensci.org/d6f73e9e4b5dc4e94b8b9dcbc8ca14b85cb19f2019d7efa03e0fce5cbd71bd24",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropensci-staging/actions/runs/43913134414"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.5.1",
      "date": "2026-11-16T17:04:14.000Z",
      "arch": "x86_64",
      "commit": "2e571aeba9f5f93c3d59a01293fdba20d3f6ece1",
      "fileid": "https://r2.ropensci.org/61bbde17d14453b4736d9b9631676394ea7377f1f7667a1f664070fb5c081712",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropensci-staging/actions/runs/43913134414"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "0.5.1",
      "date": "2026-11-16T17:06:10.000Z",
      "arch": "aarch64",
      "commit": "2e571aeba9f5f93c3d59a01293fdba20d3f6ece1",
      "fileid": "https://r2.ropensci.org/ce1ad197b68587cf9d11be1da6c38ae2ace6a7f45bcb534d387ce5718af4f063",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropensci-staging/actions/runs/43913134414"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "0.5.1",
      "date": "2026-11-16T17:04:59.000Z",
      "arch": "x86_64",
      "commit": "2e571aeba9f5f93c3d59a01293fdba20d3f6ece1",
      "fileid": "https://r2.ropensci.org/341e6f77e3775e81183d4884d206f2ed50ed7c18d274e56653eb55f5bb28b8e7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropensci-staging/actions/runs/43913134414"
    }
  ]
}