cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Discussions

Solve problems, and share tips and tricks with other JMP users.
%3CLINGO-SUB%20id%3D%22lingo-sub-486173%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EDurante%20l'esecuzione%20di%20Logistic%20Regressions%20senza%20intercettazioni%2C%20qualcuno%20ha%20osservato%20RSquares%20generali%20molto%20elevati%2C%20circa%2025-30%20punti%20in%20pi%C3%B9%20rispetto%20ai%20modelli%20con%20intercettazioni%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-486173%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EIn%20un%20paio%20di%20progetti%20diversi%20con%20una%20variabile%20di%20risultato%200%2F1%20da%20prevedere%2C%20ho%20notato%20che%20l'esecuzione%20della%20regressione%20logistica%20(generalizzata%2C%20con%20varianza%20binomiale)%20selezionando%20la%20casella%20Nessuna%20intercettazione%20aumenta%20sostanzialmente%20il%20quadrato%20R%20generalizzato%2C%20di%20circa%2025%20o%2030%20punti%20percentuali.Il%20mio%20ultimo%20modello%20%C3%A8%20per%20un%20evento%20raro%20che%20si%20osserva%20a%20circa%20l'1%2C2%25%20nella%20popolazione%20del%20periodo%20di%20esperienza.I%20modelli%20predittivi%20con%20un'intercettazione%20producono%20quadrati%20R%20generalizzati%20da%20circa%20.60%20a%20.67%2C%20mentre%20i%20modelli%20senza%20l'intercettazione%20sono%20da%20circa%20.95%20a%20.98.Ho%20alcune%20variabili%20chiave%20che%20sono%20altamente%20predittive%2C%20quindi%20all'inizio%20ho%20pensato%20che%20i%20Gen%20R%20Squares%20sopra%20il%2090%25%20sembravano%20ragionevoli.Ma%20la%20matrice%20di%20confusione%20mostra%20pi%C3%B9%20errori%20di%20quanto%20vorrei%2C%20anche%20abbassando%20la%20soglia%20al%202%25-5%25.Mi%20piace%20l'idea%20che%20No%20Intercept%20implichi%20un%20rapporto%20cieco%20log-odds%20per%20il%20termine%20costante%20poich%C3%A9%20Intercept%3D0%2C%20come%20lanciare%20una%20moneta%2C%20Probability%20%3D0%2C50.%20Ma%20forse%20questi%20modelli%20sono%20troppo%20facili%20da%20battere%2C%20gonfiando%20il%20quadrato%20R%20generalizzato%20che%20dipende%20dai%20rapporti%20di%20verosimiglianza%20di%20(L0%20%3D%20modello%20solo%20intercetta)%20a%20(modelli%20adattati%20LM%20con%20predittori%20X).Soprattutto%20se%20so%20in%20anticipo%20(a%20priori)%20che%20l'evento%20esito%20%C3%A8%20raro.Quindi%2C%20mentre%20sarebbe%20bello%20scrivere%20un%20brief%20che%20ha%20generalizzato%20R%20Square%20circa%20il%2095%25%20-98%25%2C%20penso%20che%20potrebbe%20essere%20pi%C3%B9%20prudente%20e%20pratico%20se%20uso%20un%20modello%20con%20un'intercetta%20che%20arriva%20a%20Gen%20R%20Square%20al%2060%25%20.Per%20favore%2C%20rispondi%20se%20hai%20qualche%20consiglio%20da%20darmi.Grazie!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-486173%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CLINGO-LABEL%3EAnalitica%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EAltro%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-486304%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20Durante%20l'esecuzione%20di%20Logistic%20Regressions%20senza%20intercettazioni%2C%20qualcuno%20ha%20osservato%20RSquares%20generali%20molto%20elevati%2C%20circa%2025-30%20punti%20in%20pi%C3%B9%20rispetto%20ai%20modelli%20con%20intercettazioni%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-486304%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EHo%20confrontato%20i%20modelli%20con%20e%20senza%20intercettazione%20in%20alcuni%20esempi%20e%20ho%20sempre%20osservato%20la%20tendenza%20opposta%3A%20le%20metriche%20R%20quadrati%20erano%20migliori%20quando%20il%20modello%20includeva%20un%20termine%20di%20intercettazione.%20Se%20riesci%20a%20riprodurre%20i%20risultati%20che%20hai%20segnalato%2C%20ti%20suggerisco%20di%20contattare%20l'assistenza%20tecnica%20JMP%20(%3CA%20href%3D%22mailto%3Asupport%40jmp.com%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3E%20support%40jmp.com%3C%2FA%3E%20)%20per%20ottenere%20una%20risoluzione.%20Si%20prega%20di%20rispondere%20a%20questa%20discussione%20per%20raccogliere%20le%20loro%20scoperte%20a%20beneficio%20della%20Comunit%C3%A0.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-487182%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20Durante%20l'esecuzione%20di%20Logistic%20Regressions%20senza%20intercettazioni%2C%20qualcuno%20ha%20osservato%20RSquares%20generali%20molto%20elevati%2C%20circa%2025-30%20punti%20in%20pi%C3%B9%20rispetto%20ai%20modelli%20con%20intercettazioni%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-487182%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ES%C3%AC%2C%20sto%20inviando%20il%20mio%20file%20JMP%20di%20esempio%20al%20supporto%20JMP%20oggi.Il%20modello%20senza%20un'intercetta%20ha%20Generalizzato%20RSquare%20al%2098%25%20e%20i%20modelli%20con%20un'intercetta%20ha%20Generalizzato%20RSquare%20al%2055%25.Terr%C3%B2%20aggiornata%20la%20community.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-488462%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ER%3A%20Quando%20si%20eseguono%20regressioni%20logistiche%20senza%20intercettazioni%2C%20qualcuno%20ha%20osservato%20RSquadrati%20generali%20molto%20elevati%2C%20circa%2025-30%20punti%20in%20pi%C3%B9%20rispetto%20ai%20modelli%20con%20intercettazioni%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-488462%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3ESono%20contento%20che%20tu%20abbia%20ricevuto%20una%20risposta%20utile.%20In%20bocca%20al%20lupo%20per%20tutto%20il%20tuo%20lavoro%20di%20modella!%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
Liz_S
Level II

When running Logistic Regressions with no intercepts, has anyone observed very high General RSquares, about 25-30 points higher than models with intercepts?

On a couple different projects with a 0/1 outcome variable to predict, I have noticed that running the logistic regression (generalized, with binomial variance) checking the No Intercept box boosts the Generalized R Square substantially, about 25 or 30 percentage points.  My latest model is for a rare event that is observed at about 1.2% in the experience period population.  Predictive models with an intercept yield Generalized R Squares at about .60 to .67, while models without the intercept are at about .95 to .98.  I do have some key variables that are highly predictive, so at first I thought the Gen R Squares above 90% seemed reasonable.  But the confusion matrix shows more errors than I would like, even lowering the threshold to 2%-5%.  I do like the idea that No Intercept implies a blind log-odds ratio for the constant term since Intercept=0, like flipping a coin, Probability =0.50. But perhaps these models are too easy to beat, inflating the Generalized R Square that depends on the likelihood ratios of (L0=intercept only model) to (LM fitted models with X predictors).  Particularly if I know before hand (a priori) that the outcome event is rare.  So, while it would be great to write a brief that has Generalized R Square about 95%-98%, I think it might be more prudent and practical if I use a model with an intercept that comes in at Gen R Square at 60%.  Please respond back if you have any advise for me.  Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Liz_S
Level II

Re: When running Logistic Regressions with no intercepts, has anyone observed very high General RSquares, about 25-30 points higher than models with intercepts?

Hello, this morning I received a detailed response from JMP Support with numerous suggestions that will help me be more efficient in JMP when modeling, as well as to try some techniques I have never used yet.  The response (from Patrick Giuliano) referenced this article and advice: "The importance of "many approaches" leads to a common and defendable solution. From Lavine, M., Frequentist, Bayes, or Other? (Summarized in Editorial THE AMERICAN STATISTICIAN, 2019, VOL. 73, NO. 51, 1-19): 1. Look for and present results from many models that fit the data well. 2. Evaluate models, not just procedures."

Essentially, I learned that the very high Generalized R Squares (~98%) for the no-intercept models probably indicate a lack of stability; that it was too strong of an assumption to force the linear models through the origin.  Perhaps I also should revisit some of the modeling issues created by the multicollinearity in the predictors.  It was a helpful reply!  I appreciate being able to reach out to JMP Support with my de-identified data and my scripts.  Thanks much!

 

View solution in original post

4 REPLIES 4

Re: When running Logistic Regressions with no intercepts, has anyone observed very high General RSquares, about 25-30 points higher than models with intercepts?

I compared the models with and without an intercept in a few examples and always observed the opposite trend: the R square metrics were better when the model included an intercept term. If you can reproduce the results that you reported then I suggest contacting JMP Technical Support (support@jmp.com) to get resolution. Please reply to this discussion to capture their findings for the benefit of the Community.

Liz_S
Level II

Re: When running Logistic Regressions with no intercepts, has anyone observed very high General RSquares, about 25-30 points higher than models with intercepts?

Yes, I am sending in my example JMP file to JMP support today.  The model without an intercept has Generalized RSquare at 98% and the models with an intercept has Generalized RSquare at 55%.  I'll keep the community posted.

Liz_S
Level II

Re: When running Logistic Regressions with no intercepts, has anyone observed very high General RSquares, about 25-30 points higher than models with intercepts?

Hello, this morning I received a detailed response from JMP Support with numerous suggestions that will help me be more efficient in JMP when modeling, as well as to try some techniques I have never used yet.  The response (from Patrick Giuliano) referenced this article and advice: "The importance of "many approaches" leads to a common and defendable solution. From Lavine, M., Frequentist, Bayes, or Other? (Summarized in Editorial THE AMERICAN STATISTICIAN, 2019, VOL. 73, NO. 51, 1-19): 1. Look for and present results from many models that fit the data well. 2. Evaluate models, not just procedures."

Essentially, I learned that the very high Generalized R Squares (~98%) for the no-intercept models probably indicate a lack of stability; that it was too strong of an assumption to force the linear models through the origin.  Perhaps I also should revisit some of the modeling issues created by the multicollinearity in the predictors.  It was a helpful reply!  I appreciate being able to reach out to JMP Support with my de-identified data and my scripts.  Thanks much!

 

Re: When running Logistic Regressions with no intercepts, has anyone observed very high General RSquares, about 25-30 points higher than models with intercepts?

I'm glad that you got a helpful answer. Best of luck in all your modeling!

Recommended Articles