Help with creating residual plot - Printable Version +- HP Forums (https://archived.hpcalc.org/museumforum) +-- Forum: HP Museum Forums (https://archived.hpcalc.org/museumforum/forum-1.html) +--- Forum: Old HP Forum Archives (https://archived.hpcalc.org/museumforum/forum-2.html) +--- Thread: Help with creating residual plot (/thread-232600.html) |
Help with creating residual plot - Phillip B. - 10-09-2012 Hello!
Hope you all can help, Re: Help with creating residual plot - Andrew Feist - 10-10-2012 I've got a 48gII, not a 50, but my understanding is that it's similar enough to be getting on with. The question then becomes: how are you creating your L1, your L2, and your Y1? A bit of playing around shows that if I have something like '.505+1.475*X' stored into Y1, if I then execute Y1 on a list L1 (in either RPN or alg mode) I get a result list whose first element is .505 and the other elements are 1.475 times the elements of L1. If I write Y1 instead using "ADD" instead of + (in RPN, << 1.475 * .505 ADD>>; probably something similar in alg) then it works as expected. Also, if I rewrite the equation to '1.475*X-(-.505)' it works as expected.
It looks like + is the only operator that doesn't act on each member of a list, which seems a little annoying.
Re: Help with creating residual plot - Gilles Carpentier - 10-10-2012 Hi I don't undersstand what are L1 and L2 here... Perhaps one way is a small program considering that: - The stat matrix is \GSDAT (SigmaDAT) - The predicted value given with the PREDV command And add a new column in the stat matrix with mesured vaue minus expected value Are you in RPL mode ?
Example : « \GSDAT DUP ->COL DROP SWAP « PREDV » MAP - 3 COL+ »
Edited: 10 Oct 2012, 2:39 p.m.
|