Proc Reg [Software]
Dear D.Labes,
Thank you for your reply.
For the below data, I got the R2 values as follows
In Analyst Software
For Linear equation,
1) Using weighting index=1/x, R2 = 0.9956
2) Using weighting index=1/x2, R2 = 0.9875
3) For Quadratic equation using weighting index=1/x, R2= 0.9984
In SAS Analyst Using Simple Regression
For Linear equation,
1) Using weighting index =1/x, R2= 0.5069
2) Using weighting index =1/x2, R2 = 0.2734
3) For quadratic equation using weighting index 1/x, R2 = 0.7925
example for linear equation using weighting index 1/x2 SAS code is
Note: B=1/x2
Now my questions are,
1) Why my SAS R2 values are different compared to the Analyst R2 values?
2) Is there any mistake in my calculation?
Thanks in advance
--
Edit: Reformatted using BBCodes. Please don't use tabs in your posts; the result in different browsers is unpredicable. [Helmut]
Thank you for your reply.
For the below data, I got the R2 values as follows
X | Y
50.020 | 0.012
75.030 | 0.026
100.040 | 0.035
150.059 | 0.061
175.069 | 0.073
200.079 | 0.086
300.119 | 0.134
500.198 | 0.222
750.296 | 0.364
1000.395 | 0.477
1100.435 | 0.618
1200.474 | 0.624
In Analyst Software
For Linear equation,
1) Using weighting index=1/x, R2 = 0.9956
2) Using weighting index=1/x2, R2 = 0.9875
3) For Quadratic equation using weighting index=1/x, R2= 0.9984
In SAS Analyst Using Simple Regression
For Linear equation,
1) Using weighting index =1/x, R2= 0.5069
2) Using weighting index =1/x2, R2 = 0.2734
3) For quadratic equation using weighting index 1/x, R2 = 0.7925
example for linear equation using weighting index 1/x2 SAS code is
*** Simple Regression ***;
options pageno=1;
proc reg data=Work.Sas;
model Y = B;
run;
quit;
Note: B=1/x2
Now my questions are,
1) Why my SAS R2 values are different compared to the Analyst R2 values?
2) Is there any mistake in my calculation?
Thanks in advance
--
Edit: Reformatted using BBCodes. Please don't use tabs in your posts; the result in different browsers is unpredicable. [Helmut]
—
Regards,
Pavan
Regards,
Pavan
Complete thread:
- Quadratic Regression / SAS NPavan 2009-01-27 07:53
- Proc Reg - The power to know d_labes 2009-01-27 08:26
- Proc RegNPavan 2009-01-28 11:41
- To know the power or ... is the question d_labes 2009-01-28 13:53
- Linear and Quadratic Regression NPavan 2009-01-29 11:42
- Model selection Helmut 2009-01-29 13:54
- Model selection NPavan 2009-01-30 12:14
- Model selection Helmut 2009-01-29 13:54
- Linear and Quadratic Regression NPavan 2009-01-29 11:42
- To know the power or ... is the question d_labes 2009-01-28 13:53
- Proc RegNPavan 2009-01-28 11:41
- Proc Reg - The power to know d_labes 2009-01-27 08:26