I estimate an ordinal logistic regression model and use 'oparallel' to get the p-value from a Brant test:
webuse fullauto,clear
ologit rep77 foreign
oparallel, brant
This returns a chi2-value of 926 and a p-value of 0.000.
Now, recoding the dependent variable as:
recode rep77 (1=5) (2=4) (4=2) (5=1), gen(rep77_2)
and running
ologit rep77_2 foreign
oparallel, brant
returns a chi2-value of -3396 and a p-value of 1.000.
This surely has a perfectly reasonable explanation, but i wonder if someone would care to explain to me exactly what is going on here?
Related Posts with Brant test for parallel regression lines dependent on coding of dependent variable
Generating CAPM BetaI want to use below code to generate monthly CAPM beta which is equal to beta coefficient of mkt obt…
What is the problem in my code on graphing?gr tw (scatter pgratioregional year, by(region)) (lfit pgratioregional year, by(region)) /// xlabel(…
color of box plotsHi, I created two box plots for the birth weight of infants based on two interventions during pregna…
Rolling window granger causality or time varying granger causalityHi everyone, I wanted to know if someone would know how to implement a rolling window granger causa…
Categorical variable per key (no unique keys)Hi guys, currently I am struggling with below table: Array The second column contains a combination…
Subscribe to:
Post Comments (Atom)
0 Response to Brant test for parallel regression lines dependent on coding of dependent variable
Post a Comment