Questions tagged [r-car]

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

86 questions
1
vote
0 answers

Update to version 3.3.0 gives problems with car and sjPlot

today I upgraded to R 3.3.0... oh boy.. wish I stayed at the previous version. The last few hours I have been trying to solve some issues to install car and sjPlot, but problems remain. When installing sjPlot everything goes fine, but when setting…
user6121484
  • 143
  • 2
  • 15
1
vote
1 answer

repeated measures anova: length of 'dimnames' [1] not equal to array extent

I conducted the repeated measures anova, that's my code, it's simple operation and i always did it quickly. Link to mydata in .csv format library(car) vivo4 <- read.csv("vivo1.csv",sep=";",dec=",") ageLevels <- c(1,…
Daniel
  • 11
  • 3
1
vote
1 answer

How to recode character variable in R with 'unexpected symbol' error

I want to recode my data from character to numeric. Here is my failed attempt: library(car) # needed for recode survey1$V16a = recode(survey1$V16, "'Very important'=1; 'Fairly important'=2; 'Not very important'=3; 'Not important at all'=4; 'Can't…
M Sat
  • 11
  • 1
  • 4
1
vote
1 answer

How to remake aov() to car package Anova() to get Mauchly's test for sphericity, Greenhouse-Geisser and eta-squared?

I want to convert a code written for aov() to Anova() function in car-package. anovadata3 <- within(anovadata3, { subject <- factor(subject) time <- factor(time) gender <- factor(gender) group <- factor(group) groupgender <-…
Ptru
  • 55
  • 10
1
vote
0 answers

boxTidwell - error about positive values

I'm trying to do a boxTidwell function with the following form: boxTidwell(y~x1+x2, data=dataframe) I'm getting the following error: Error in boxTidwell.default(y, X1, X2, max.iter = max.iter, tol = tol, : the variables to be transformed must…
Wade Byron Profe
  • 155
  • 2
  • 3
  • 19
1
vote
0 answers

Drawing a regression surface with an interaction in a 3D figure in R

Using car::scatter3d(), I am trying to create a 3D figure with a regression surface indicating an interaction between a categorical and a continuous variable. Partly following the code here, I obtained a figure below. The figure is obviously wrong…
Akira Murakami
  • 463
  • 1
  • 4
  • 14
1
vote
1 answer

Change Axis Label - R scatterplot

I am using the CAR library scatterplot function trying to do something similar to R: Replace X-axis with own values. However the result is badly formatted. Does anyone know how to replace the x axis values when using scatterplot? My code is…
JHowIX
  • 1,683
  • 1
  • 20
  • 38
1
vote
2 answers

Logit-Transformation backwards

I've transformed some values from my dataset with the logit transformation from the car-package. The variable "var" represent these values and consists of percentage values. However, if I transform them back via inv.logit from the boot-package,…
GioDC
  • 25
  • 1
  • 4
1
vote
1 answer

Levene's test using the squared residuals

How can Levene's test be performed using the squared residuals rather than the absolute? I have tried levene.test in the lawstat package, and leveneTest in the car package, which both use the absolute residuals. The purpose is to reproduce SAS…
nacnudus
  • 6,328
  • 5
  • 33
  • 47
0
votes
0 answers

Car Package in R: powerTransform() - Error non-finite finite-difference value [1]

Issue: I have a data frame (called Yeo) containing six parameters with continuous values (columns 5-11)(see parameters below) and I conducted a Shapiro-Wilk test to determine whether or not the univariate samples came from a normal distribution.…
Alice Hobbs
  • 1,021
  • 1
  • 15
  • 31
0
votes
1 answer

How to conduct joint significance test in seemingly unrelated regression

I'm trying to conduct a joint test of significance in a seemingly unrelated regression setup with robust standard errors. I have three outcomes Y1, Y2, and Y3 and I want to conduct a joint hypothesis test against the null that the average effect of…
0
votes
1 answer

How to add pciutils package in yocto AGL?

I have built Yocto AGL(6.0.0) image for RCar-salvator-xs board and flashed its hyperflash memory. Now, I want to perform PCIe related investigation, for that I want to use lspci command. But, After ligging in as a root in flashed AGL image and…
0
votes
1 answer

Create a function to manually calculate VIF values in R

I need a little help, I'm a newbie in R. I am using the plspm package to generate a PLS-SEM (PLS-PM) model. The package does not provide a VIF function to assess collinearity of the indicators (variables) of the Latent Variables (constructs) I want…
0
votes
0 answers

R - Error: package or namespace load failed for ‘car’; LoadLibrary failure

I want to use function vif (to testing multicollinearity) from package car. Package "car" was successfully unpacked, but after loading the library(car), I get error: Error: package or namespace load failed for ‘car’ in inDL(x, as.logical(local),…
Mark
  • 1
  • 1
  • 3
0
votes
1 answer

Error in installing car package in R

While installing "car" package in Rstudio in Ubuntu, I faced an error saying that dependencies "nloptr","lme4" and one more, are not installed. So I started installing "nloptr" but I faced this error- configure: Need to download and build NLopt …
Aman Gupta
  • 15
  • 4