rockchalk: Regression Estimation and Presentation

Share:

A collection of functions for interpretation and presentation of regression analysis. These functions are used to produce the statistics lectures in http://pj.freefaculty.org/guides. Includes regression diagnostics, regression tables, and plots of interactions and "moderator" variables. The emphasis is on "mean-centered" and "residual-centered" predictors. The vignette 'rockchalk' offers a fairly comprehensive overview. The vignette 'Rstyle' has advice about coding in R. The package title 'rockchalk' refers to our school motto, 'Rock Chalk Jayhawk, Go K.U.'.

Author
Paul E. Johnson <pauljohn@ku.edu>
Date of publication
2016-02-25 00:44:31
Maintainer
Paul E. Johnson <pauljohn@ku.edu>
License
GPL (>= 3.0)
Version
1.8.101

View on CRAN

Man pages

addLines
Superimpose regression lines on a plotted plane
centerNumerics
Find numeric columns, center them, re-name them, and join...
centralValues
Central Tendency estimates for variables
cheating
Cheating and Looting in Japanese Electoral Politics
checkIntFormat
A way of checking if a string is a valid file name.
checkPosDef
Check a matrix for positive definitness
combineLevels
recode a factor by "combining" levels
cutByQuantile
Calculates the "center" quantiles, always including the...
cutBySD
Returns center values of x, the mean, mean-std.dev,...
cutByTable
Select most frequently occurring values from numeric or...
dir.create.unique
Create a uniquely named directory. Appends number &...
focalVals
Create a focal value vector.
formatVC
formatter for merMod objects copied from lme4
genCorrelatedData
Generates a data frame for regression analysis
genCorrelatedData2
Generates a data frame for regression analysis.
getAuxRsq
retrieves estimates of the coefficient of determination from...
getDeltaRsquare
Calculates the delta R-squares, also known as squared...
getFocal
Select focal values from an observed variable.
getPartialCor
Calculates partial correlation coefficients after retrieving...
getVIF
Converts the R-square to the variance inflation factor
kurtosis
Calculate excess kurtosis
lazyCor
Create correlation matrices.
lazyCov
Create covariance matrix from correlation and standard...
lmAuxiliary
Estimate leave-one-variable-out regressions
magRange
magRange Magnify the range of a variable.
makeSymmetric
Create Symmetric Matrices, possibly covariance or correlation...
makeVec
makeVec for checking or creating vectors
mcDiagnose
Multi-collinearity diagnostics
mcGraph
Illustrate multicollinearity in regression, part 1.
meanCenter
meanCenter
model.data
Create a "raw" (UNTRANSFORMED) data frame equivalent to the...
model.data.default
Create a data frame suitable for estimating a model
mvrnorm
Minor revision of mvrnorm (from 'MASS') to facilitate...
newdata
Create a newdata frame for usage in predict methods
outreg
Creates a publication quality result table for regression...
outreg0
Creates a publication quality result table for regression...
outreg2HTML
Convert LaTeX output from outreg to HTML markup
padW0
Pad with 0's.
pctable
Creates a cross tabulation with counts and percentages
perspEmpty
perspEmpty
plotCurves
Assists creation of predicted value curves for regression...
plotFancy
Regression plots with predicted value lines, confidence...
plotPlane
Draw a 3-D regression plot for two predictors from any linear...
plotSeq
Create sequences for plotting
plotSlopes
Generic function for plotting regressions and interaction...
plot.testSlopes
Plot testSlopes objects
predictCI
Calculate a predicted value matrix (fit, lwr, upr) for a...
predictOMatic
Create predicted values after choosing values of predictors....
print.factorSummaries
Prints out the contents of an object created by...
print.pctable
Display pctable objects
print.summary.pctable
print method for summary.pctable objects
religioncrime
Religious beliefs and crime rates
residualCenter
Calculates a "residual-centered" interaction regression.
rockchalk-package
rockchalk: regression functions
skewness
Calculate skewness
standardize
Estimate standardized regression coefficients for all...
summarize
Sorts numeric from factor variables and returns separate...
summarizeFactors
Extracts non-numeric variables, calculates summary...
summarizeNumerics
Extracts numeric variables and presents an alphabetized...
summary.factor
Tabulates observed values and calculates entropy
summary.pctable
Extract presentation from a pctable object
testSlopes
Hypothesis tests for Simple Slopes Objects
vech2Corr
Convert the vech (column of strictly lower trianglar values...
vech2mat
Convert a half-vector (vech) into a matrix.

Files in this package

rockchalk
rockchalk/inst
rockchalk/inst/examples
rockchalk/inst/examples/summarize-ex.R
rockchalk/inst/examples/plot-Normal-3-plotmath.R
rockchalk/inst/examples/plot-Normal-1.R
rockchalk/inst/examples/standardize-ex.R
rockchalk/inst/examples/meanCenter-ex.R
rockchalk/inst/examples/mcDiagnose-ex.R
rockchalk/inst/examples/plot-barplot-2.R
rockchalk/inst/examples/plotCurves-ex.R
rockchalk/inst/examples/plotSlopes-ex.R
rockchalk/inst/examples/predict.rcreg-ex.R
rockchalk/inst/examples/plot-math_functions-1.R
rockchalk/inst/examples/residualCenter-ex.R
rockchalk/inst/examples/model.data-ex.R
rockchalk/inst/examples/plot-barplot-1.R
rockchalk/inst/examples/testSlopes-ex.R
rockchalk/inst/examples/centeredRegression.R
rockchalk/inst/examples/noWords-002.R
rockchalk/inst/examples/plot-Normal-2-clt.R
rockchalk/inst/examples/plotPlane-ex.R
rockchalk/inst/examples/noWords-003.R
rockchalk/inst/examples/noWords-001.R
rockchalk/inst/examples/predictOMatic-ex.R
rockchalk/inst/examples/stackListItems-01.R
rockchalk/inst/examples/addLines-ex.R
rockchalk/inst/NEWS
rockchalk/inst/ChangeLog
rockchalk/inst/doc
rockchalk/inst/doc/Rstyle.R
rockchalk/inst/doc/rockchalk.R
rockchalk/inst/doc/rockchalk.Rnw
rockchalk/inst/doc/Rstyle.pdf
rockchalk/inst/doc/Rstyle.Rnw
rockchalk/inst/doc/Rchaeology.pdf
rockchalk/inst/doc/Rchaeology.R
rockchalk/inst/doc/Rchaeology.Rnw
rockchalk/inst/doc/rockchalk.pdf
rockchalk/NAMESPACE
rockchalk/data
rockchalk/data/cheating.RData
rockchalk/data/religioncrime.RData
rockchalk/R
rockchalk/R/utils.R
rockchalk/R/perspEmpty.R
rockchalk/R/residualCenter.R
rockchalk/R/centralValues.R
rockchalk/R/plotSlopes.R
rockchalk/R/testSlopes.R
rockchalk/R/predictOMatic.R
rockchalk/R/magRange.R
rockchalk/R/genCorrelatedData.R
rockchalk/R/plotPlane.R
rockchalk/R/recodeFactors.R
rockchalk/R/summarize.R
rockchalk/R/mcDiagnose.R
rockchalk/R/mcGraph.R
rockchalk/R/outreg.R
rockchalk/R/pctable.R
rockchalk/R/rockchalk-package.R
rockchalk/R/plotCurves.R
rockchalk/R/meanCenter.R
rockchalk/vignettes
rockchalk/vignettes/rockchalk.lyx
rockchalk/vignettes/VignetteExportUpload.sh
rockchalk/vignettes/rockchalk.Rnw
rockchalk/vignettes/Sweavel.sty
rockchalk/vignettes/Rstyle.lyx
rockchalk/vignettes/Rchaeology.lyx
rockchalk/vignettes/Rstyle.Rnw
rockchalk/vignettes/rockchalk.bib
rockchalk/vignettes/Rchaeology.Rnw
rockchalk/MD5
rockchalk/build
rockchalk/build/vignette.rds
rockchalk/DESCRIPTION
rockchalk/man
rockchalk/man/print.factorSummaries.Rd
rockchalk/man/plotSlopes.Rd
rockchalk/man/outreg0.Rd
rockchalk/man/summarize.Rd
rockchalk/man/rockchalk-package.Rd
rockchalk/man/lazyCor.Rd
rockchalk/man/getPartialCor.Rd
rockchalk/man/checkPosDef.Rd
rockchalk/man/plotPlane.Rd
rockchalk/man/model.data.default.Rd
rockchalk/man/centerNumerics.Rd
rockchalk/man/meanCenter.Rd
rockchalk/man/addLines.Rd
rockchalk/man/religioncrime.Rd
rockchalk/man/cutBySD.Rd
rockchalk/man/cutByTable.Rd
rockchalk/man/skewness.Rd
rockchalk/man/plotFancy.Rd
rockchalk/man/plotCurves.Rd
rockchalk/man/checkIntFormat.Rd
rockchalk/man/newdata.Rd
rockchalk/man/combineLevels.Rd
rockchalk/man/residualCenter.Rd
rockchalk/man/plot.testSlopes.Rd
rockchalk/man/pctable.Rd
rockchalk/man/mvrnorm.Rd
rockchalk/man/dir.create.unique.Rd
rockchalk/man/kurtosis.Rd
rockchalk/man/genCorrelatedData.Rd
rockchalk/man/getVIF.Rd
rockchalk/man/perspEmpty.Rd
rockchalk/man/cheating.Rd
rockchalk/man/print.summary.pctable.Rd
rockchalk/man/lazyCov.Rd
rockchalk/man/getDeltaRsquare.Rd
rockchalk/man/predictOMatic.Rd
rockchalk/man/outreg2HTML.Rd
rockchalk/man/predictCI.Rd
rockchalk/man/vech2mat.Rd
rockchalk/man/testSlopes.Rd
rockchalk/man/model.data.Rd
rockchalk/man/print.pctable.Rd
rockchalk/man/focalVals.Rd
rockchalk/man/plotSeq.Rd
rockchalk/man/summary.pctable.Rd
rockchalk/man/mcGraph.Rd
rockchalk/man/padW0.Rd
rockchalk/man/summary.factor.Rd
rockchalk/man/formatVC.Rd
rockchalk/man/cutByQuantile.Rd
rockchalk/man/centralValues.Rd
rockchalk/man/summarizeFactors.Rd
rockchalk/man/summarizeNumerics.Rd
rockchalk/man/genCorrelatedData2.Rd
rockchalk/man/magRange.Rd
rockchalk/man/vech2Corr.Rd
rockchalk/man/outreg.Rd
rockchalk/man/makeVec.Rd
rockchalk/man/getFocal.Rd
rockchalk/man/lmAuxiliary.Rd
rockchalk/man/standardize.Rd
rockchalk/man/makeSymmetric.Rd
rockchalk/man/mcDiagnose.Rd
rockchalk/man/getAuxRsq.Rd