On Wed, Jul 15, 2009 at 3:10 PM, James T. Potemra <span dir="ltr"><<a href="mailto:jimp@hawaii.edu">jimp@hawaii.edu</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I'm running grads-2.0.a5.oga.5 on a 64-bit linux machine and want to do<br>
a linear<br>
fit to a time-series. There appears to be a UDF called "linreg" that is<br>
included<br>
in Mike Fiorino's UDF library, but the man page at<br>
<a href="http://opengrads.org/doc/udxt/libmf/" target="_blank">http://opengrads.org/doc/udxt/libmf/</a><br>
does not list this function.<br>
<br>
Conversely, there is a man page for "<font class="Apple-style-span" color="#CC0000"><b>tregr2"</b></font> at<br>
<a href="http://opengrads.org/doc/udxt/libbjt/" target="_blank">http://opengrads.org/doc/udxt/libbjt/</a><br>
as part of Ben-Jei Tsuang's UDF library, but that does not appear in the<br>
UDC list<br>
(see list below).<br>
</blockquote><div><br></div><div>Yes, it is there...</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
ga-> q udf<br>
<br>
User<br>
Defined<br>
FUNCTION Short Description Function@Library<br>
---------- ----------------------------------- --------------------------<br>tfit Point linear regression f_bjt@^libbjt.gex<br>
fit Global linear regression f_bjt@^libbjt.gex<br>
tcorr2 Time correlation f_bjt@^libbjt.gex<br><font class="Apple-style-span" color="#CC0000"><b>
tregr2 Point linear regression f_bjt@^libbjt.gex</b></font><br>
tmave2 Time averaging w/masking f_bjt@^libbjt.gex<br></blockquote></div><div><br></div><div><br></div><div>See also the cookbooks, Mike Bosilovich has some recipes covering linear regressions.</div><div><br>
</div><div>If you are into python, pygrads includes pylab which makes these sort of calculations very simple. If you install python's interface to R you can do real statistics...</div><div><br></div><div>There is also a grads interface for matlab which eliminates to read to write exchange files. (I just realized that I haven't released this yet... Any interest?)</div>
<div><br></div><div> Arlindo</div><div><br></div><div><br></div><div> Arlindo</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><br>-- <br>Arlindo da Silva<br><a href="mailto:dasilva@alum.mit.edu">dasilva@alum.mit.edu</a><br>