cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Register to attend Discovery Summit 2025 Online: Early Users Edition, Sept. 24-25.
  • New JMP features coming to desktops everywhere this September. Sign up to learn more at jmp.com/launch.
%3CLINGO-SUB%20id%3D%22lingo-sub-780656%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EPregunta%20sobre%20R2%20para%20regresi%C3%B3n%20lineal%20ponderada%20en%20JMP%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-780656%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EUtilic%C3%A9%20JMP%20para%20realizar%20un%20an%C3%A1lisis%20de%20regresi%C3%B3n%20lineal%20ponderada.%20Sin%20embargo%2C%20el%20valor%20RSquare%20de%20la%20regresi%C3%B3n%20resultante%20de%20JMP%20(alrededor%20de%200%2C76)%20no%20coincide%20con%20mi%20propio%20c%C3%A1lculo%20utilizando%20la%20f%C3%B3rmula%20general%20de%20R2%20%3D%201%20-%20SS_residual%2FSS_total%20(alrededor%20de%200%2C78).%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3ELos%20par%C3%A1metros%20de%20regresi%C3%B3n%20que%20genera%20JMP%20coinciden%20con%20mis%20propios%20c%C3%A1lculos%2C%20por%20lo%20que%20supongo%20que%20la%20regresi%C3%B3n%20se%20realiz%C3%B3%20correctamente.%20Me%20preguntaba%20si%20el%20resultado%20de%20R2%20de%20JMP%20es%20incorrecto%20o%20si%20JMP%20est%C3%A1%20utilizando%20una%20f%C3%B3rmula%20diferente%20a%20la%20f%C3%B3rmula%20general%20para%20calcular%20R2.%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FCoefficient_of_determination%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fen.wikipedia.org%2Fwiki%2FCoficiente_de_determinaci%C3%B3n%3C%2FA%3E%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3ESe%20adjuntan%20los%20datos%20de%20entrada%20que%20utilic%C3%A9%20para%20este%20an%C3%A1lisis.%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-780656%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EAn%C3%A1lisis%20y%20modelado%20de%20datos%20b%C3%A1sicos%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-780791%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Pregunta%20sobre%20R2%20para%20regresi%C3%B3n%20lineal%20ponderada%20en%20JMP%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-780791%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHola%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F59105%22%20target%3D%22_blank%22%3E%40hongyu1%3C%2FA%3E%20%2C%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CP%3EPuede%20consultar%20la%20f%C3%B3rmula%20utilizada%20por%20JMP%20para%20el%20c%C3%A1lculo%20de%20R%C2%B2%20en%20esta%20secci%C3%B3n%3A%20%3CA%20href%3D%22https%3A%2F%2Fwww.jmp.com%2Fsupport%2Fhelp%2Fen%2F17.2%2F%23page%2Fjmp%2Fsummary-of-fit.shtml%3Fos%3Dwin%26amp%3Bsource%3Dapplication%23ww846953%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EResumen%20del%20ajuste%3C%2FA%3E%3C%2FP%3E%0A%3CP%3ESin%20embargo%2C%20el%20uso%20de%20esta%20f%C3%B3rmula%20o%20la%20que%20usted%20mencion%C3%B3%20conduce%20a%20resultados%20id%C3%A9nticos%2C%20ya%20que%20SS(total)%20%3D%20SS(modelo)%20%2B%20SS(error).%3C%2FP%3E%0A%3CP%3ESi%20uso%20su%20f%C3%B3rmula%20con%20la%20informaci%C3%B3n%20proporcionada%20por%20JMP%2C%20encuentro%20el%20mismo%20valor%20R%C2%B2%3A%3C%2FP%3E%0A%3CP%3E1%20-%20(SS(error)%20%2F%20SS(total))%20%3D%201%20-%20(1174%2C3486%20%2F%204971%2C1282)%20%3D%201%20-%200%2C23623382%20%3D%200%2C763766%20(como%20lo%20muestra%20JMP%20en%20su%20captura%20de%20pantalla).%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CP%3E%C2%BFTal%20vez%20la%20diferencia%20pueda%20deberse%20a%20un%20redondeo%20en%20el%20c%C3%A1lculo%3F%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CP%3EEspero%20que%20esta%20respuesta%20te%20ayude.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
hongyu1
Level I

Question about R2 for weighted linear regression in JMP

I used JMP to conduct a weighted linear regression analysis. However, RSquare value of the regression output by JMP (around 0.76) doesn't match my own calculation using the general formula of R2 = 1 - SS_residual/SS_total (around 0.78).

 

The regression parameters output by JMP match my own calculation, so I suppose the regression was conducted correctly. I was wondering if R2 output by JMP is incorrect, or JMP is using a different formula other than the general formula to calculate R2. 

 

https://en.wikipedia.org/wiki/Coefficient_of_determination

 

Attached is the input data I used for this analysis.

 

1 REPLY 1
Victor_G
Super User

Re: Question about R2 for weighted linear regression in JMP

Hi @hongyu1,

 

You can check the formula used by JMP for the calculation of R² in this section : Summary of Fit

However, using this formula or the one you mentioned leads to identical results, as SS(total) = SS(model) + SS(error).

If I use your formula with the informations provided by JMP, I find the same R² value : 

1 - (SS(error) / SS(total)) = 1 - (1174,3486 / 4971,1282) = 1 - 0,23623382 = 0,763766 (as displayed by JMP on your screenshot).

 

Maybe the difference could be caused by a rounding in the calculation ?

 

Hope this answer will help you,

Victor GUILLER

"It is not unusual for a well-designed experiment to analyze itself" (Box, Hunter and Hunter)

Recommended Articles