vap.data.frame: Annual percent change For use with do function from dplyr. df...

View source: R/vap.R

vap.data.frameR Documentation

Annual percent change For use with do function from dplyr. df Some problems with Inf values in y were observed.

Description

Annual percent change For use with do function from dplyr. df Some problems with Inf values in y were observed.

Usage

## S3 method for class 'data.frame'
vap(df, x, y, tests = F)

Arguments

tests

logical: if TRUE computes p-value for lineal model tests. See Details.

df:

data.frame with data.

x:

year

y:

rate

Details

Lineal model tests: SW = residual normality by Shapiro Wilks. BP: Performs the Breusch-Pagan test against heteroskedasticity. HC: Harvey-Collier test for linearity. DW: Computes bootstrapped p-values for residual autocorrelations and generalized Durbin-Watson statistics.

Value

data.frame. vap: annual percent change. lwr: lower IC 95%. upr: upper IC 95%.


diegogarcilazo/myutilities documentation built on Jan. 4, 2024, 2:11 p.m.