car (an R package) means Companion to Applied Regression. Use with the [r] tag
Questions tagged [r-car]
86 questions
0
votes
1 answer
How can I perform tests for equality of variance of data points in a row when I have multiple (400k+) rows
I have data points for two groups arranged in the same row, and multiple rows of data (400k+). I would like to compare the variance of two groups for each of these 400K+ rows. The data would be something like the following…

Eric Smith
- 13
- 1
0
votes
1 answer
marginalModelPlots error "need finite 'xlim' values"
I'm trying to run some diagnostics on a binary logistic regression model. Specifically, the marginal model plots. Unfortunately, I keep getting the "need finite 'xlim' values" error. The code below reproduces the issue. My model includes both…

Daniel D.
- 134
- 1
- 4
- 7
0
votes
1 answer
I can't install the CAR package on Mac OS X 10.8.5
I have Version 0.99.467 – © 2009-2015 for R Studio and cannot install the CAR package on my Mac OS X 10.8.5.
I have tried the install.packages("car") in the console, as well as manually importing the zip files from the CRAN website: car_2.0-26.tgz /…

Kirsty N
- 19
- 5
0
votes
1 answer
Getting the parameters of a data ellipse produced by the car package in R
I am using the dataEllipse function from the car package in R to get an elliptic confidence region for my data. For example:
datapoints_x = c(1,3,5,7,8,6,5,4,9)
datapoints_y = c(3,6,8,9,5,8,7,4,8)
ellipse = dataEllipse(cbind(datapoints_x,…

Nicolas
- 85
- 2
- 6
0
votes
0 answers
Marginal Model Plots - R, car package - part 2
Is there a way to change the x and y axis for mmps?
require(car)
c1 <- lm(infant.mortality ~ gdp, UN)
mmps(c1, xlab="?", ylab="????????????????")
Error in mmp.lm(model, horiz, xlab = lab, groups = groups, key = key, :
formal argument "xlab"…

phg
- 536
- 1
- 7
- 19
0
votes
2 answers
Function `Boot` from `R` package `car` can not find .carEnv
While using the Boot function from the car package I get the error message
Error in get(".y.boot", envir = .carEnv) : object '.carEnv' not found
I suspect I have inadvertently changed/set something in my OS and have no idea what it might be. …

user1884192
- 251
- 1
- 9
0
votes
0 answers
Scatterplot:car extracting fits
Is there a way to extract functions that are used when you plot with scatterplot6 from car?
Example:
require(car)
scatterplot(x~y)
What it produces by default is a scatterplot with four lines, one for linear regression, 2 for residuals, and one…

magasr
- 493
- 5
- 21
0
votes
1 answer
How to control legend box size and its elements (e.g text size) in the scatterplots function of the "car" package?
Can some suggest me how to control the legend box in the scatterplots function of the car package? For my dataset the legend box I get using the commands below is proportionately larger compared to the plots.
library(car)
scatterplot(x+y ~ year|id,…

Amirul Islam
- 407
- 1
- 6
- 15
0
votes
1 answer
How to obtain R's scatterplot car formula and coefficients?
Is there a way to gain the equations and coefficients when using the R's car package of both the smoothing and regression (line) model?
scatterplot(prestige ~ income, data=Prestige)
scatterplot(prestige ~ income, data=Prestige, smoother=gamLine) …

phg
- 536
- 1
- 7
- 19
-1
votes
1 answer
F-score and standardized Beta for heteroscedasticity-corrected covariance matrix (hccm) in R
I have multiple regression models which failed Breusch-Pagan tests, and so I've recalculated the variance using a heteroscedasticity-corrected covariance matrix, like this: coeftest(lm.model,vcov=hccm(lm.model)). coeftest() is from the lmtest…

Calen
- 305
- 4
- 17
-2
votes
1 answer
Fuel consumption class java
import java.util.Scanner;
public class LKM {
public static void main(String[] args){
Scanner keyboard=new Scanner(System.in);
String startKm=keyboard.nextLine();
String endKm=keyboard.nextLine();
String…

Teodorescu Bogdan
- 3
- 1
- 4