Other packages > Find by keyword >

swaprinc  

Swap Principal Components into Regression Models
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]
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
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
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
Get rewarded with contribution points by helping add
Reviews / comments / questions /suggestions ↴↴↴

Today's Hot Picks in Authors and Packages

mistral  
Methods in Structural Reliability
Various reliability analysis methods for rare event inference (computing failure probability and qua ...
Download / Learn more Package Citations See dependency  
steepness  
Testing Steepness of Dominance Hierarchies
The steepness package computes steepness as a property of dominance hierarchies. Steepness is define ...
Download / Learn more Package Citations See dependency  
rdbnomics  
Download DBnomics Data
R access to hundreds of millions data series from DBnomics API (). ...
Download / Learn more Package Citations See dependency  
critpath  
Setting the Critical Path in Project Management
Solving the problem of project management using CPM (Critical Path Method), PERT (Program Evaluation ...
Download / Learn more Package Citations See dependency  
quickcode  
Quick and Essential 'R' Tricks for Better Scripts
The NOT functions, 'R' tricks and a compilation of some simple quick plus often used 'R' codes to im ...
Download / Learn more Package Citations See dependency  
ftaproxim  
Fault Tree Analysis Based on Proxel Simulation
Calculation and plotting of instantaneous unavailabilities of basic events along with the top event ...
Download / Learn more Package Citations See dependency  

22,114

R Packages

188,080

Dependencies

55,244

Author Associations

22,115

Publication Badges

© Copyright 2022 - present. All right reserved, rpkg.net. Contact Us / Suggestions / Concerns