Great, thanks<br><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Nov 9, 2012 at 12:28 PM, Glynn Clements <span dir="ltr"><<a href="mailto:glynn@gclements.plus.com" target="_blank">glynn@gclements.plus.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><br>
Markus Metz wrote:<br>
<br>
> >> Just wondering, if it is implemented in r.regression.series, would it be<br>
> >> very difficult to port to r.series? Or do the two things function different<br>
> >> internally?<br>
> ><br>
> > It could probably be added to r.series quite quickly if someone was<br>
> > willing to provide definitions for "t-value" and "p-value".<br>
><br>
> The t-value of a simple linear regression can be calculate with<br>
><br>
> t = sqrt(Rsq) * sqrt((n - 2) / (1 - Rsq));<br>
><br>
> Rsq = R squared or coefficient of determination (r.series method=detcoeff)<br>
> n = sample size<br>
<br>
</div>In which case, it can be calculated with e.g.<br>
<br>
r.series ... output=tmp.rsq,tmp.n method=detcoeff,count<br>
r.mapcalc 'outmap = sqrt(tmp.rsq * (tmp.n - 2) / (1 - tmp.rsq))'<br>
<br>
I've added method=tvalue in r53742.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Glynn Clements <<a href="mailto:glynn@gclements.plus.com">glynn@gclements.plus.com</a>><br>
</font></span></blockquote></div><br></div>