NetLogo 7.0.0-beta2:

matrix:forecast-linear-growth

matrix:forecast-linear-growth data-list

Reports a four-element list of the form:

[ forecast constant slope R2 ]

The forecast is the predicted next value that would follow in the sequence given by the data-list input, based on a linear trend-line. Normally data-list will contain observations on some variable, Y, from time t = 0 to time t = (n-1) where n is the number of observations. The forecast is the predicted value of Y at t = n. The constant and slope are the parameters of the trend-line

Y = *constant* + *slope* * t.

The R2 value measures the goodness of fit of the trend-line to the data, with an R2 = 1 being a perfect fit and an R2 of 0 indicating no discernible trend. Linear growth assumes that the variable Y grows by a constant absolute amount each period.

Take me to the full Matrix Extension Dictionary