Learn R Programming

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

rockchalk (version 1.6.3)

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.3

License

GPL (>= 3.0)

Maintainer

Paul Johnson

Last Published

March 22nd, 2013

Functions in rockchalk (1.6.3)

getAuxRsq

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

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

predictOMatic creates predicted values for a fitted regression model.
summary.factor

Tabulates observed values and calculates entropy
plotPlane

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

recode a factor by "combining" levels
genCorrelatedData

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

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

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

Assists creation of predicted value curves for regression models.
outreg

outreg
magRange

magRange Magnify the range of a variable.
mcGraph1

Illustrate the effect of multicollinearity in regression.
getVIF

Converts the R-square to the variance inflation factor
addLines

Superimpose regression lines on a plotted plane
lmAuxiliary

Estimate leave-one-variable-out regressions
getDeltaRsquare

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

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

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

Estimate standardized regression coefficients for all variables
religioncrime

Religious beliefs and crime rates
model.data

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

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

meanCenter
newdata

Creates the newdata frame required in predict.
plotSlopes

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

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

perspEmpty
summarizeNumerics

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

Central Tendency estimates for variables
mcDiagnose

Multi-collinearity diagnostics
testSlopes

Hypothesis tests for Simple Slopes Objects
cutByQuantile

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

Create sequences for plotting
summarizeFactors

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

Miscellaneous regression functions
residualCenter

Calculates a "residual-centered" interaction regression.