Learn R Programming

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

car (version 1.0-8)

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

531,516

Version

1.0-8

License

GPL version 2 or newer

Maintainer

John Fox

Last Published

September 27th, 2024

Functions in car (1.0-8)

av.plots

Added-Variable Plots
box.cox

Box-Cox Family of Transformations
recode

Recode a Variable
spread.level.plot

Spread-Level Plots
Ask

Change Argument to a Function Interactively
Cook's Distances

Cook's Distances for Linear and Generalized Linear Models
ncv.test

Score Test for Non-Constant Error Variance
durbin.watson

Durbin-Watson Test for Autocorrelated Errors
ceres.plots

Ceres Plots
Contrasts

Functions to Construct Contrasts
Ellipses

Ellipses, Data Ellipses, and Confidence Ellipses
panel.car

Panel Function Coplots
scatterplot

Scatterplots with Boxplots
reg.line

Plot Regression Line
cr.plots

Component+Residual (Partial Residual) Plots
logit

Logit Transformation
leverage.plots

Regression Leverage Plots
Anova

Anova Tables for Linear and Generalized Linear Models
scatterplot.matrix

Scatterplot Matrices
subsets

Plot Output from regsubsets Function in leaps package
qq.plot

Quantile-Comparison Plots
Var

Variance-Covariance Matrices (deprecated)
Transformation Axes

Axes for Transformed Variables
box.cox.powers

Multivariate Unconditional Box-Cox Transformations
box.tidwell

Box-Tidwell Transformations
box.cox.var

Constructed Variable for Box-Cox Transformation
vif

Variance Inflation Factors
linear.hypothesis

Test Linear Hypothesis
hccm

Heteroscedasticity-Corrected Covariance Matrices
outlier.test

Bonferroni Outlier Test
n.bins

Number of Bins for Histogram
car-internal

Internal car functions
which.names

Position of Row Names
Cowles

Cowles and Davis's Data on Volunteering
Burt

Fraudulent Data on IQs of Twins Raised Apart
Chirot

The 1907 Romanian Peasant Rebellion
Blackmoor

Exercise Histories of Eating-Disordered and Control Subjects
US.pop

Population of the United States
Florida

Florida County Voting
Angell

Moral Integration of American Cities
Greene

Refugee Appeals
Ericksen

The 1980 U.S. Census Undercount
Freedman

Crowding and Crime in U. S. Metropolitan Areas
States

Education and Related Statistics for the U.S. States
Robey

Fertility and Contraception
Chile

Voting Intentions in the 1988 Chilean Plebiscite
Womenlf

Canadian Women's Labour-Force Participation
UN

GDP and Infant Mortality
Ginzberg

Data on Depression
Sahlins

Agricultural Production in Mazulu Village
Prestige

Prestige of Canadian Occupations
Can.pop

Canadian Population Data
Quartet

Four Regression Datasets
Hartnagel

Canadian Crime-Rates Time Series
Ornstein

Interlocking Directorates Among Major Canadian Firms
Duncan

Duncan's Occupational Prestige Data
Leinhardt

Data on Infant-Mortality
Anscombe

U. S. State Public-School Expenditures
Baumann

Methods of Teaching Reading Comprehension
Friendly

Format Effects on Recall
Vocab

Vocabulary and Education
Davis

Self-Reports of Height and Weight
Bfox

Canadian Women's Labour-Force Participation
Mroz

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

Davis's Data on Drive for Thinness
Guyer

Anonymity and Cooperation
Migration

Canadian Interprovincial Migration Data
Mandel

Contrived Collinear Data
SLID

Survey of Labour and Income Dynamics
Adler

Experimenter Expectations
Moore

Status, Authoritarianism, and Conformity