# R language - Type III Anova failure on "clmm" ordinal regression model

Stack Overflow Asked by Lan on August 6, 2020

I am doing a statistical analysis by using Type-III Anova on an ordinal regression model with "clmm" function. My initial code is shown below:

require (ordinal)

require (RVAideMemoire)

require (car)

Risk <- factor (DWQ\$Risk_Perception, ordered = T)

RP <- clmm(Risk ~ Location + Consequence + Distraction_Type + Location * Consequence + Location * Distraction_Type + (1|Subject), data = DWQ, link = "probit")

summary(RP)

Anova.clmm (RP, type = 3)


In this regression model, "Risk" is ordinal data from 1 to 5. The three independent variables, Location(5 levels), Distraction_type(2 levels), Consequences(3 levels), are written in non-numeric format. The "clmm" function does support for type-III Anova analysis. However, in this case, the algorithm forces me to use Type II Anova, and the result is also strange (shown below):

Anova.clmm (RP, type = 3)

Analysis of Deviance Table (Type II tests)

Response: Risk

                           LR Chisq Df Pr(>Chisq)
Location                      0.00  4  1.0000000
Consequence                   0.00  2  0.9999998
Distraction_Type              0.00  1  0.9995538
Location:Consequence        469.80  8  < 2.2e-16 ***
Location:Distraction_Type    18.56  4  0.0009596 ***


The value of the Chi-sq test is zero, and p values are not correct. If I change the Anova test to type-II, it seems that everything goes right (shown below):

Anova.clmm (RP, type = 2)

Analysis of Deviance Table (Type II tests)

Response: Risk

                           LR Chisq Df Pr(>Chisq)

Location                   3026.47  4  < 2.2e-16 ***

Consequence                  38.20  2  5.063e-09 ***

Distraction_Type           1494.63  1  < 2.2e-16 ***

Location:Consequence        469.80  8  < 2.2e-16 ***

Location:Distraction_Type    18.56  4  0.0009596 ***


What might be causing this problem?

## Related Questions

### Adding up digits of an input number with recursion in Python

5  Asked on February 11, 2021 by indian_trash

### Java writing unlimited text lines to a UI

0  Asked on February 11, 2021 by barry-griffey

### R simple dplyr solution to filter

3  Asked on February 11, 2021 by triss

### Go back browser button action

2  Asked on February 11, 2021 by ljopata

### ValueError: Input 0 of layer sequential is incompatible with the layer: : expected min_ndim=4, found ndim=2. Full shape received: [None, 1]

0  Asked on February 10, 2021 by swati

### What is the difference between model.to(device) and model=model.to(device)?

2  Asked on February 10, 2021 by obsidian

### How to pass array to funtion to use as range based for loop

3  Asked on February 10, 2021 by aniket-ujgare

### passing data values from inner function to inner function with js/jquery

2  Asked on February 10, 2021 by user14955679

### react ref and query selector all

2  Asked on February 10, 2021 by peter-flanagan

### How to resolve “The item you were attempting to purchase could not be found”

4  Asked on February 10, 2021 by diego

### How to avoid getting broken words while webcrawling

2  Asked on February 10, 2021 by data_mind

### Viewmodel doesn’t update data from Android Room, but successfully insert in it

2  Asked on February 10, 2021 by gremlinshx

### Bit Banging a second UART Serial connection for my Raspberry Pi 3 B+ in Python?

0  Asked on February 10, 2021 by zachary-kennedy

### Direct code execution through the JS browser console

0  Asked on February 10, 2021 by matheus-nascimento

### How to correctly write word-break in css?

3  Asked on February 10, 2021 by aiko-schurmann

### Finding a user data based on email

1  Asked on February 10, 2021 by aamer-salame

### What does it mean that void* has the same representation and memory alignment as char*?

2  Asked on February 10, 2021 by morimn

### How to create DOM component with start and end tag in React?

3  Asked on February 9, 2021 by doliphin

### Can I use text when using functions? Or only numbers?

4  Asked on February 9, 2021 by osk6r

### Get the string before replace

0  Asked on February 9, 2021 by tanker