Learn R Programming

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

car (version 1.0-12)

Companion to Applied Regression

Description

This package accompanies J. Fox, An R and S-PLUS Companion to Applied Regression, Sage, 2002. The package contains mostly functions for applied regression, linear models, and generalized linear models, with an emphasis on regression diagnostics, particularly graphical diagnostic methods. There are also some utility functions. With some exceptions, I have tried not to duplicate capabilities in the basic distribution of R, nor in widely used packages. Some of the functions in car will use functions in the MASS package, if it is present; the subsets function graphs objects produced by the regsubsets function in the leaps package. Where relevant, the functions in car are consistent with na.action = na.omit or na.exclude.

Copy Link

Version

Install

install.packages('car')

Monthly Downloads

471,077

Version

1.0-12

License

GPL version 2 or newer

Maintainer

John Fox

Last Published

September 27th, 2024

Functions in car (1.0-12)

av.plots

Added-Variable Plots
Cook's Distances

Cook's Distances for Linear and Generalized Linear Models
logit

Logit Transformation
linear.hypothesis

Test Linear Hypothesis
box.cox

Box-Cox Family of Transformations
Ellipses

Ellipses, Data Ellipses, and Confidence Ellipses
levene.test

Levene's Test
which.names

Position of Row Names
influence.plot

Regression Influence Plot
box.cox.var

Constructed Variable for Box-Cox Transformation
panel.car

Panel Function Coplots
durbin.watson

Durbin-Watson Test for Autocorrelated Errors
Contrasts

Functions to Construct Contrasts
leverage.plots

Regression Leverage Plots
cr.plots

Component+Residual (Partial Residual) Plots
scatterplot

Scatterplots with Boxplots
ncv.test

Score Test for Non-Constant Error Variance
n.bins

Number of Bins for Histogram
Var

Variance-Covariance Matrices (deprecated)
Transformation Axes

Axes for Transformed Variables
Ask

Change Argument to a Function Interactively
scatterplot.matrix

Scatterplot Matrices
reg.line

Plot Regression Line
spread.level.plot

Spread-Level Plots
hccm

Heteroscedasticity-Corrected Covariance Matrices
vif

Variance Inflation Factors
box.cox.powers

Multivariate Unconditional Box-Cox Transformations
subsets

Plot Output from regsubsets Function in leaps package
box.tidwell

Box-Tidwell Transformations
ceres.plots

Ceres Plots
Anova

Anova Tables for Linear and Generalized Linear Models
car-internal

Internal car functions
outlier.test

Bonferroni Outlier Test
qq.plot

Quantile-Comparison Plots
recode

Recode a Variable
DavisThin

Davis's Data on Drive for Thinness
Adler

Experimenter Expectations
Leinhardt

Data on Infant-Mortality
SLID

Survey of Labour and Income Dynamics
Robey

Fertility and Contraception
Florida

Florida County Voting
Hartnagel

Canadian Crime-Rates Time Series
Duncan

Duncan's Occupational Prestige Data
Angell

Moral Integration of American Cities
Sahlins

Agricultural Production in Mazulu Village
Prestige

Prestige of Canadian Occupations
Anscombe

U. S. State Public-School Expenditures
Quartet

Four Regression Datasets
Friendly

Format Effects on Recall
Chirot

The 1907 Romanian Peasant Rebellion
Davis

Self-Reports of Height and Weight
Blackmoor

Exercise Histories of Eating-Disordered and Control Subjects
Ginzberg

Data on Depression
UN

GDP and Infant Mortality
Mroz

U.S. Women's Labor-Force Participation
Bfox

Canadian Women's Labour-Force Participation
Vocab

Vocabulary and Education
Ornstein

Interlocking Directorates Among Major Canadian Firms
Freedman

Crowding and Crime in U. S. Metropolitan Areas
Guyer

Anonymity and Cooperation
Mandel

Contrived Collinear Data
Can.pop

Canadian Population Data
US.pop

Population of the United States
Burt

Fraudulent Data on IQs of Twins Raised Apart
Womenlf

Canadian Women's Labour-Force Participation
Cowles

Cowles and Davis's Data on Volunteering
Greene

Refugee Appeals
Baumann

Methods of Teaching Reading Comprehension
Moore

Status, Authoritarianism, and Conformity
Chile

Voting Intentions in the 1988 Chilean Plebiscite
Ericksen

The 1980 U.S. Census Undercount
Migration

Canadian Interprovincial Migration Data
States

Education and Related Statistics for the U.S. States