[GRASS-user] Calculate p value for regression slope in r.series

王德辉 dehuiw at gig.ac.cn
Thu Nov 8 05:21:13 PST 2012


r.regression.series is a module to calculate linear regression parameters between two time series. I only want to calculate parameters in one time series, how to use this model in one time serie condition?

thanks!

dehui


-----原始邮件-----
发件人: "Paulo van Breugel" <p.vanbreugel at gmail.com>
发送时间: 2012年11月8日 星期四
收件人: "Moritz Lennert" <mlennert at club.worldonline.be>
抄送: "GRASS users email list" <grass-user at lists.osgeo.org>
主题: Re: [GRASS-user] Calculate p value for regression slope in r.series

Good suggestion, and coincidentally I was just looking at it. Am I correct to assume that to mimic the calculation of slope etc in r.series, I would need to create a second time series of 'dummy' maps with values 0 for first time period, 1 for second time period, etc.? I did this in R and it gave the same slope and offset as r.series.

Just wondering, if it is implemented in r.regression.series, would it be very difficult to port to r.series? Or do the two things function different internally?

Cheers,

Paulo





On Thu, Nov 8, 2012 at 10:55 AM, Moritz Lennert <mlennert at club.worldonline.be> wrote:
On 06/11/12 09:55, Paulo van Breugel wrote:
Hi,

I am using r.series to calculate linear regression slope, offset and
coefficient of determination. But any idea how I can get the standard
deviation t-value and p-value of the slope?

Try MarkusN's r.regression.series in the addons for grass7. It allows the calculation of t and f values. IIRC, p-value can be calculated from t-value.

Moritz







-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20121108/267fb605/attachment.html>


More information about the grass-user mailing list