Mathematica 9 is now available
Student Support Forum
Student Support Forum: 'LinearModelFit' topicStudent Support Forum > General > Archives > "LinearModelFit"

Next Comment >Help | Reply To Topic
Author Comment/Response
03/07/12 5:07pm

Hi all --
I have the following issue with the LinearModelFit function: I'd like to force the fitted graph through the origin (as is possible for the function Fit. I want to use the functionalities of LinearModelFit though, such as error estimates and weighted data). I thought,

res = LinearModelFit[xm, {z}, z, Weights -> weights],

with xm being my 2D data list, would do the trick. Alas, it doesn't and I keep getting a constant term in the formula for my fitted line. Does anybody know a workaround here?

URL: ,

Subject (listing for 'LinearModelFit')
Author Date Posted
LinearModelFit joe 03/07/12 5:07pm
Re: LinearModelFit jf 03/08/12 10:47am
Re: LinearModelFit joe 03/08/12 1:12pm
Next Comment >Help | Reply To Topic