Questions tagged [r-car]

car (an R package) means Companion to Applied Regression. Use with the [r] tag

86 questions
3
votes
1 answer

knitr bookdown::gitbook and webgl: rotation does not work properly

I have the following Rmd file: --- output: bookdown::gitbook --- ```{r include=FALSE} rgl::setupKnitr() ``` ```{r testing1,webgl=TRUE} with(attitude, car::scatter3d(x = rating, z = complaints, y = learning) ) ``` ```{r…
richarddmorey
  • 976
  • 6
  • 19
3
votes
2 answers

How to show a coordinate grid in car::scatter3d plot

Just run the follwing code. I want to display a coordinate grid, but nothing happens: df_runtime <- data.frame(x = c(0L, 20L), y = c(0L, 10L), z = c(0L, 50L), stringsAsFactors =…
Christoph
  • 6,841
  • 4
  • 37
  • 89
3
votes
0 answers

'car' dependency error: Installing caret in R 3.1.2

Cannot install caret package !! install.packages("caret") Installing package into ‘/home/timekeeper/R/x86_64-unknown-linux-gnu-library/3.1’ (as ‘lib’ is unspecified) Warning: dependency ‘car’ is not available trying URL…
timekeeper
  • 698
  • 15
  • 37
3
votes
0 answers

Marginal Model Plots - R, car package

Is there a way to select which smooths to appear in the car package? Just the model smooth for example, or vice-versa? require(car) c1 <- lm(infant.mortality ~ gdp, UN) mmps(c1)
phg
  • 536
  • 1
  • 7
  • 19
3
votes
1 answer

Partial residual plot based on model average coefficients in R

I'm using the R package MuMIn to do multimodel inference and the function model.avg to average the coefficients estimated by a set of models. To visually compare the data to the estimated relationships based on the averaged coefficients, I want to…
Marie Auger-Methe
  • 808
  • 1
  • 8
  • 20
3
votes
1 answer

Side by side plots using scatterplot from car package

Is there some reason you cannot lay two scatterplot (from car package) figures side by side? library(car) str(UN) par(mfrow=c(1,2)) scatterplot(infant.mortality~gdp,data=UN, xlab="GDP per capita", ylab="Infant Morality Rate…
David
  • 981
  • 1
  • 15
  • 27
2
votes
0 answers

User specified variance-covariance matrix in car::Anova not working

I am trying to use the car::Anova function to carry out joint Wald chi-squared tests for interaction terms involving categorical variables. I would like to compare results when using bootstrapped variance-covariance matrix for the model…
a_m_mac
  • 21
  • 1
2
votes
0 answers

Where is the intercept term in type II Anova function from the car package?

I have constructed a simple linear model and performed both a Type II & III analysis of variance using the Anova() function from the car package. In the output, the Type III Anova includes an intercept, whereas no intercept is included in the Type…
jlab
  • 252
  • 2
  • 18
2
votes
1 answer

Recode variable with car - unexpectedly variable (.x value) treated as NA

My aim is to recode my variable into another variable with an inverted value: f1_1_recAktuell <- recode(Dat_MonatAktuell$f1_1, "1=10; 2=9; 3=8; 4=7; 5=6; 6=5; 7=4; 8=3; 9=2; 10=1") This code has served me know for more than a year, yet out of a…
Rieke
  • 99
  • 5
2
votes
2 answers

Error installation R-packages on Linux Mint 18

It is somehow impossible for me to install new R-packages on my Linux Mint 18 system. I need to install ggplot2 and car. After the input install.packages("ggplot2") R is working for a very long time and after this, I get the output Warning in…
JoBu
  • 21
  • 3
2
votes
1 answer

Estimating Lambda for Yeo and Johnson transform

I have a time series of rainfall values in a csv file.I plotted the histogram of the data. The histogram is skewed to the left. I wanted to transform the values so that it will have a normal distribution. I used the Yeo-Johnson transform available…
Lyndz
  • 347
  • 1
  • 13
  • 30
2
votes
1 answer

How to put axis limits on car/RGL 3D plots? scatter3d specifically

I am having some issues using the scatter3d function, specifically that it seems to be impossible to dictate to the function what the limits of the axis should be. Here's my basic plotting function with a few datapoints from the set I'm working…
2
votes
3 answers

Efficiently recoding multiple variables from character to numeric values in R

I am using R (version 3.2.3) to recode multiple variables (in the same dataframe) from character values ("High", "Medium", "Low" and "No Concerns") to numeric values (4,3,2 and 1). I know there are several ways to recode a variable and in my example…
2
votes
0 answers

How to set up a one-way repeated measures MANOVA in R with no between-subject factors

Main Question I'm looking for help setting up a one-way repeated measures MANOVA in R for a data-set that has no between-subject factors. Background While there are plenty of good guides out there for setting up RM MANOVAs with between-subject…
TheRobotPants
  • 21
  • 1
  • 2
2
votes
2 answers

Continuous PowerTransform/BoxCox Transformation in R

I have a dataset that I need to transfer into normal distribution. First, Generate a reproducible dataset. df <- runif(500, 0, 100) Second, define a function. This function will continue transforming d.f. until P > 0.05. The transformed d.f. will…
HQ L
  • 103
  • 1
  • 11