stfl_extract_regional_trends: Extract the regional trend estimates

Description Usage Arguments Value Examples

View source: R/stfl_extract_regional_trends.R

Description

Extract the regional trend estimates

Usage

1
2
3
4
5
6
stfl_extract_regional_trends(
  fit,
  coefficient = c("slope", "intercept"),
  method = c("LM", "MK", "LMrob"),
  transpose = FALSE
)

Arguments

fit

Results from stfl_trend_regional() fit.

coefficient

Which coefficients to extract

method

Which fitting method estimates to be extracted

transpose

When transpose=TRUE, statistics are converted from long to wide format.

Value

Returns a data.frame with the extracted estimates, standard errors, p.values (and adjusted for serial autocorrelation)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
# needs the HYDAT package installed
station.id <- c("08NM053","08NM116")
mydata <- stfl_get_annual_stat(station.id, Statistic=c("MEAN"))
mydata$REGION <- "AnyOldRegion"
mystation.weights <- data.frame(STATION_NUMBER=station.id, WEIGHT=c(2,1))
fit <- stfl_trend_regional(mydata, mystation.weights, log.Y=TRUE)
stfl_extract_regional_trends(fit)

## End(Not run)
#'

bcgov/StreamFlowTrend documentation built on Dec. 19, 2021, 7:38 a.m.