Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tjur R^2 wrongly calculated? #764

Closed
schloenbachia opened this issue May 25, 2020 · 2 comments · Fixed by jasp-stats/jasp-desktop#4098
Closed

Tjur R^2 wrongly calculated? #764

schloenbachia opened this issue May 25, 2020 · 2 comments · Fixed by jasp-stats/jasp-desktop#4098
Assignees

Comments

@schloenbachia
Copy link

  • JASP version: 0.12.2
  • OS name and version: Windows 10
  • Analysis: during logistic regression Tjur's R^2 is shown in the model summary
  • Bug description: value seemed unrealistic, very low. I calculated with R and got a much more reasonable value
  • Expected behaviour: see below

Steps to reproduce:

If you import the attached data into JASP and perform a logistic regression the Tjur R^2 is evaluated as 0.081, compared to a value of 0.5318 which I figured in R. The higher value is much more realistic, given 1. the scatterplot and 2. the other pseudo measures.

In case attachment didn't work: Here's the data (some made up treatment data for logistic regression):

"","Dosis","Wirkung"
"1",0.59,1
"2",0.01,0
"3",0.29,0
"4",0.28,0
"5",0.81,1
"6",0.26,1
"7",0.72,1
"8",0.91,1
"9",0.95,1
"10",0.07,0
"11",0.75,1
"12",0.29,0
"13",0.1,0
"14",0.95,1
"15",0.42,1
"16",0.46,0
"17",0.97,1
"18",0.58,0
"19",0.96,1
"20",0.76,1
"21",0.71,1
"22",1,1
"23",0.51,0
"24",0.49,1
"25",0.65,1
"26",0.83,1
"27",0.48,0
"28",0.84,1
"29",0.51,0
"30",0.53,0

@Kucharssim
Copy link
Member

Dear @schloenbachia,

thank you for the report, this is indeed a bug, the Tjur R^2 for your data is indeed 0.532. This will be fixed.

@schloenbachia
Copy link
Author

Great, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants