Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Regress would not take Weights option?' topicStudent Support Forum > General > Archives > "Regress would not take Weights option?"

Help | Reply To Topic
Author Comment/Response
john
08/28/09 2:42pm

I need to regress on a x-y data set with weights to each y. I use the following command

ggp = Regress[kk, {1, x, x^2}, x, Weights -> w,
RegressionReport -> {SinglePredictionCITable}];

However, the returns are the same as I use the following

ggp = Regress[kk, {1, x, x^2}, x,
RegressionReport -> {SinglePredictionCITable}];

or the following,

w=w*0
ggp = Regress[kk, {1, x, x^2}, x, Weights -> w,
RegressionReport -> {SinglePredictionCITable}]; where weight is explicitly set to be zero by multiplying it with 0.

This seems to give me clear indication that Regress didn't take Weights into the calculation, or is it because of some mistakes the way I play with Regress that Weights option is automatically ignored? Thanks for your help,

For your information, I use mathematica 5.2, linux version

URL: ,
Help | Reply To Topic