Learn R Programming

⚠️There's a newer version (1.8.157) of this package.Take me there.

rockchalk (version 1.6.2)

Regression Estimation and Presentation

Description

A collection of functions for ease of presentation and interpretation of regression analysis. These functions are developed in response to student requests that have arisen in our regression course. For regression diagnostics, see mcDiagnose, getDeltaRsquare, meanCenter or residualCenter. See the outreg function for a way to generate LaTeX tables of regression models. For nice, easy to use pictures, see plotSlopes, plotCurves, plotPlane for graphs. There are some functions for re-organization of data, especially useful might be combineLevels for re-coding factors. The vignette "rockchalk" offers a fairly broad survey. The package title "rockchalk" refers to the expression, "Rock Chalk Jayhawk, Go K.U.".

Copy Link

Version

Install

install.packages('rockchalk')

Monthly Downloads

14,388

Version

1.6.2

License

GPL (>= 3.0)

Maintainer

Paul Johnson

Last Published

June 19th, 2012

Functions in rockchalk (1.6.2)

religioncrime

Religious beliefs and crime rates
getVIF

Converts the R-square to the variance inflation factor
print.factorSummaries

Prints out the contents of an object created by summarizeFactors in the style of base::summary
testSlopes

Hypothesis tests for Simple Slopes Objects
plotCurves

Assists creation of predicted value curves for regression models.
model.data

Creates a "raw" (UNTRANSFORMED) data frame equivalent to the input data that would be required to fit the given model.
predictOMatic

predictOMatic creates predicted values for a fitted regression model.
residualCenter

Calculates a "residual-centered" interaction regression.
plotPlane

Draw a 3-D regression plot for two predictors from any linear or nonlinear lm or glm object
outreg

outreg
perspEmpty

perspEmpty
summarize

Sorts numeric from factor variables and returns separate summaries for those types of variables.
summarizeNumerics

Extracts numeric variables and presents an alphabetized summary in a workable format.
lmAuxiliary

Estimate leave-one-variable-out regressions
standardize

Estimate standardized regression coefficients for all variables
summary.factor

Tabulates observed values and calculates entropy
mcGraph2

mcGraph2 draws a 3-D representation of a scatterplot with shadows in the x1-x2 plane.
cutByQuantile

Calculates the "center" quantiles, always including the median.
mcDiagnose

Multi-collinearity diagnostics
magRange

magRange Magnify the range of a variable.
plotSlopes

Assists creation of predicted value lines for values of a moderator variable.
meanCenter

meanCenter
getAuxRsq

retrieves estimates of the coefficient of determination from a list of regressions
plotSeq

Create sequences for plotting
rockchalk-package

Miscellaneous regression functions
combineLevels

recode a factor by "combining" levels
mcGraph1

Illustrate the effect of multicollinearity in regression.
centerNumerics

Find numeric columns, center them, re-name them, and join them with the original data.
newdata

Creates the newdata frame required in predict.
centralValues

Central Tendency estimates for variables
summarizeFactors

Extracts non-numeric variables, calculates summary information, including entropy as a diversity indicator.
cutBySD

Returns center values of x, the mean, mean-std.dev, mean+std.dev
getDeltaRsquare

Calculates the delta R-squares, also known as squared semi-partial correlation coefficients.
cutByTable

Select most frequently occurring values from numeric or categorical variables.
genCorrelatedData

Generates a data frame (x1,x2,y) with user-specified correlation between x1 and x2
mcGraph3

mcGraph3 draws a 3-dimensional scatter and a regression plane
addLines

Superimpose regression lines on a plotted plane