Package: rockchalk 1.8.157

rockchalk: Regression Estimation and Presentation

A collection of functions for interpretation and presentation of regression analysis. These functions are used to produce the statistics lectures in <https://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.'.

Authors:Paul E. Johnson [aut, cre], Gabor Grothendieck [ctb], Dimitri Papadopoulos OrfanosGabor [ctb]

rockchalk_1.8.157.tar.gz
rockchalk_1.8.157.zip(r-4.5)rockchalk_1.8.157.zip(r-4.4)rockchalk_1.8.157.zip(r-4.3)
rockchalk_1.8.157.tgz(r-4.4-any)rockchalk_1.8.157.tgz(r-4.3-any)
rockchalk_1.8.157.tar.gz(r-4.5-noble)rockchalk_1.8.157.tar.gz(r-4.4-noble)
rockchalk_1.8.157.tgz(r-4.4-emscripten)rockchalk_1.8.157.tgz(r-4.3-emscripten)
rockchalk.pdf |rockchalk.html
rockchalk/json (API)
NEWS

# Install 'rockchalk' in R:
install.packages('rockchalk', repos = c('https://pauljohn32.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Datasets:
  • cheating - Cheating and Looting in Japanese Electoral Politics
  • religioncrime - Religious beliefs and crime rates

On CRAN:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

7.13 score 17 packages 586 scripts 11k downloads 1 mentions 58 exports 19 dependencies

Last updated 2 years agofrom:b5ee84d331. Checks:OK: 3 NOTE: 4. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 25 2024
R-4.5-winNOTEOct 25 2024
R-4.5-linuxNOTEOct 25 2024
R-4.4-winNOTEOct 25 2024
R-4.4-macNOTEOct 25 2024
R-4.3-winOKOct 25 2024
R-4.3-macOKOct 25 2024

Exports:addLinescenterNumericscentralValuescombineLevelscutByQuantilecutBySDcutByTablecutFancydescriptiveTabledir.create.uniquedrawnormfocalValsformatSummarizedFactorsformatSummarizedNumericsgenCorrelatedDatagenCorrelatedData2genCorrelatedData3genXgetDeltaRsquaregetFocalgetPartialCorgmckurtosislazyCorlazyCovlmAuxiliarymagRangemakeSymmetricmcDiagnosemcGraph1mcGraph2mcGraph3meanCentermodel.datamvrnormnewdataoutregoutreg2HTMLpadW0pctableperspEmptyplotCurvesplotPlaneplotSeqplotSlopespredictOMaticrbindFillremoveNULLresidualCenterskewnessstandardizesummarizesummarizeFactorssummarizeNumericstestSlopesvech2Corrvech2matwaldt

Dependencies:bootcarDataforeignkutilslatticelme4MASSMatrixminqanlmenloptropenxlsxplyrRcppRcppEigenRUnitstringixtablezip

outreg

Rendered fromoutreg.Rnwusingutils::Sweaveon Oct 25 2024.

Last update: 2022-02-14
Started: 2012-03-16

Rchaeology

Rendered fromRchaeology.Rnwusingutils::Sweaveon Oct 25 2024.

Last update: 2022-02-14
Started: 2012-06-12

Rstyle

Rendered fromRstyle.Rnwusingutils::Sweaveon Oct 25 2024.

Last update: 2022-08-06
Started: 2013-03-22

Using rockchalk

Rendered fromrockchalk.Rnwusingutils::Sweaveon Oct 25 2024.

Last update: 2022-02-14
Started: 2012-04-10

Readme and manuals

Help Manual

Help pageTopics
rockchalk: regression functionsrockchalk-package rockchalk
Superimpose regression lines on a plotted planeaddLines
Find numeric columns, center them, re-name them, and join them with the original data.centerNumerics
Central Tendency estimates for variablescentralValues
Cheating and Looting in Japanese Electoral Politicscheating
A way of checking if a string is a valid file name.checkIntFormat
Check a matrix for positive definitnesscheckPosDef
recode a factor by "combining" levelscombineLevels
Calculates the "center" quantiles, always including the median, when n is odd.cutByQuantile
Returns center values of x, the mean, mean-std.dev, mean+std.devcutBySD
Select most frequently occurring values from numeric or categorical variables.cutByTable
Create an ordinal variable by grouping numeric data input.cutFancy
Summary stats table-maker for regression usersdescriptiveTable
Create a uniquely named directory. Appends number & optionally date to directory name.dir.create.unique
draw a normal distribution with beautiful illustrationsdrawnorm
Create a focal value vector.focalVals
Prints out the contents of an object created by summarizeFactors in the style of base::summaryformatSummarizedFactors
Reformat numeric summarize output as one column per variable, similar to R summaryformatSummarizedNumerics
Generates a data frame for regression analysisgenCorrelatedData
Generates a data frame for regression analysis.genCorrelatedData2
Generate correlated data for simulations (third edition)genCorrelatedData3
Generate correlated data (predictors) for one unitgenX
retrieves estimates of the coefficient of determination from a list of regressionsgetAuxRsq
Calculates the delta R-squares, also known as squared semi-partial correlation coefficients.getDeltaRsquare
Select focal values from an observed variable.getFocal getFocal.character getFocal.default getFocal.factor
Calculates partial correlation coefficients after retrieving data matrix froma fitted regression modelgetPartialCor
Converts the R-square to the variance inflation factorgetVIF
Group Mean Center: Generate group summaries and individual deviations within groupsgmc
Calculate excess kurtosiskurtosis
Create correlation matrices.lazyCor
Create covariance matrix from correlation and standard deviation informationlazyCov
Estimate leave-one-variable-out regressionslmAuxiliary
magRange Magnify the range of a variable.magRange
Create Symmetric Matrices, possibly covariance or correlation matrices, or check a matrix for symmetry and serviceability.makeSymmetric
makeVec for checking or creating vectorsmakeVec
Multi-collinearity diagnosticsmcDiagnose
Illustrate multicollinearity in regression, part 1.mcGraph1 mcGraph2 mcGraph3
meanCentermeanCenter meanCenter.default
Create a "raw" (UNTRANSFORMED) data frame equivalent to the input data that would be required to fit the given model.model.data
Create a data frame suitable for estimating a modelmodel.data.default
Minor revision of mvrnorm (from 'MASS') to facilitate replicationmvrnorm
Create a newdata frame for usage in predict methodsnewdata newdata.default
Creates a publication quality result table for regression models. Works with models fitted with lm, glm, as well as lme4.outreg
Convert LaTeX output from outreg to HTML markupoutreg2HTML
Pad with 0's.padW0
Creates a cross tabulation with counts and percentagespctable pctable.character pctable.default pctable.formula
perspEmptyperspEmpty
Plot testSlopes objectsplot.testSlopes
Assists creation of predicted value curves for regression models.plotCurves
Regression plots with predicted value lines, confidence intervals, color coded interactionsplotFancy
Draw display for discrete predictor in plotSlopesplotFancyCategories
Draw a 3-D regression plot for two predictors from any linear or nonlinear lm or glm objectplotPlane plotPlane.default
Create sequences for plottingplotSeq
Generic function for plotting regressions and interaction effectsplotSlopes plotSlopes.lm
Calculate a predicted value matrix (fit, lwr, upr) for a regression, either lm or glm, on either link or response scale.predictCI
Create predicted values after choosing values of predictors. Can demonstrate marginal effects of the predictor variables.predictOMatic
Display pctable objectsprint.pctable
print method for output from summarizeprint.summarize
print method for summary.pctable objectsprint.summary.pctable
Stack together data framesrbindFill
Religious beliefs and crime ratesreligioncrime
Remove NULL values variables from a listremoveNULL
Calculates a "residual-centered" interaction regression.predict.rcreg residualCenter residualCenter.default
Draw standard error bar for discrete variablesse.bars
Calculate skewnessskewness
Estimate standardized regression coefficients for all variablesstandardize standardize.lm
Sorts numeric from discrete variables and returns separate summaries for those types of variables.summarize
Extracts non-numeric variables, calculates summary information, including entropy as a diversity indicator.summarizeFactors
Extracts numeric variables and presents an summary in a workable format.summarizeNumerics
Tabulates observed values and calculates entropysummary.factor
Extract presentation from a pctable objectsummary.pctable
Hypothesis tests for Simple Slopes ObjectstestSlopes
Convert the vech (column of strictly lower trianglar values from a matrix) into a correlation matrix.vech2Corr
Convert a half-vector (vech) into a matrix.vech2mat
T-test for the difference in 2 regression parameterswaldt