R package citation, R package reverse dependencies, R package scholars, install an r package from GitHub hy is package acceptance pending why is package undeliverable amazon why is package on hold dhl tour packages why in r package r and r package full form why is r free why r is bad which r package to install which r package has which r package which r package version which r package readxl which r package ggplot which r package fread which r package license where is package.json where is package-lock.json where is package.swift where is package explorer in eclipse where is package where is package manager unity where is package installer android where is package manager console in visual studio who r package which r package to install which r package version who is package who is package deal who is package design r and r package full form r and r package meaning what r package has what package r what is package in java what is package what is package-lock.json what is package in python what is package.json what is package installer do r package can't install r packages r can't find package r can't load package can't load xlsx package r can't install psych package r can't install sf package r Write if else in NONMEM pk pd
swaprinc
View on CRAN: Click
here
Download and install swaprinc package within the R console
Install from CRAN:
install.packages("swaprinc")
Install from Github:
library("remotes")
install_github("cran/swaprinc") Install by package version:
library("remotes")
install_version("swaprinc", "1.0.1") Attach the package and use:
library("swaprinc")
Maintained by
Mackson Ncube
[Scholar Profile | Author Map]
[Scholar Profile | Author Map]
All associated links for this package
First Published: 2023-04-17
Latest Update: 2023-04-17
Description:
Obtaining accurate and stable estimates of regression coefficients can be challenging when the suggested statistical model has issues related to multicollinearity, convergence, or overfitting. One solution is to use principal component analysis (PCA) results in the regression, as discussed in Chan and Park (2005) <doi:10.1080/01446190500039812>. The swaprinc() package streamlines comparisons between a raw regression model with the full set of raw independent variables and a principal component regression model where principal components are estimated on a subset of the independent variables, then swapped into the regression model in place of those variables. The swaprinc() function compares one raw regression model to one principal component regression model, while the compswap() function compares one raw regression model to many principal component regression models. Package functions include parameters to center, scale, and undo centering and scaling, as described by Harvey and Hansen (2022) <https://cran.r-project.org/package=LearnPCA/vignettes/Vig_03_Step_By_Step_PCA.pdf>. Additionally, the package supports using Gifi methods to extract principal components from categorical variables, as outlined by Rossiter (2021) <https://www.css.cornell.edu/faculty/dgr2/_static/files/R_html/NonlinearPCA.html#2_Package>.
How to cite:
Mackson Ncube (2023). swaprinc: Swap Principal Components into Regression Models. R package version 1.0.1, https://cran.r-project.org/web/packages/swaprinc. Accessed 11 Jun. 2026.
Previous versions and publish date:
No previous versions
Other packages that cited swaprinc R package
View swaprinc citation profile
Other R packages that swaprinc depends,
imports, suggests or enhances
Complete documentation for swaprinc
Functions, R codes and Examples using
the swaprinc R package
Some associated functions: compswap . pipe . swaprinc . swaprinc_loud .
Some associated R codes: compswap.R . swaprinc.R . utils-pipe.R . Full swaprinc package functions and examples
Downloads during the last 30 days
Today's Hot Picks in Authors and Packages
Voss
Generating realizations of a fractal Brownian function on uniform 1D & 2D grid with classic and ...
Download / Learn more Package Citations See dependency
Download / Learn more Package Citations See dependency
Maintainer: Pavel V. Moskalev (view profile)
clusrank
Non-parametric tests (Wilcoxon rank sum test and Wilcoxon signed rank test)
for clustered data docu ...
Download / Learn more Package Citations See dependency
Download / Learn more Package Citations See dependency
Maintainer: Wenjie Wang (view profile)
stevedata
This is a collection of various kinds of data with broad uses for teaching. My students, and academ ...
Download / Learn more Package Citations See dependency
Download / Learn more Package Citations See dependency
Maintainer: Steve Miller (view profile)
leontief
An implementation of the Input-Output model developed by
Wassily Leontief that represents the inter ...
Download / Learn more Package Citations See dependency
Download / Learn more Package Citations See dependency
Maintainer: Mauricio Vargas Sepulveda (view profile)
hsphase
Identification of recombination events, haplotype reconstruction, sire imputation and pedigree recon ...
Download / Learn more Package Citations See dependency
Download / Learn more Package Citations See dependency
Maintainer: Mohammad Ferdosi (view profile)
r2resize
Automatic resizing toolbar for containers, images and tables. Various resizable or expandable contai ...
Download / Learn more Package Citations See dependency
Download / Learn more Package Citations See dependency
Maintainer: Obinna Obianom (view profile)
27,372
R Packages
233,548
Dependencies
72,820
Author Associations
27,205
Publication Badges
