normalise: The normalise module

View source: R/normalise.R

normaliseR Documentation

The normalise module

Description

The normalise module takes a probability value from a distribution fit norm_quantile() to convert based on the normal quantile function

Usage

normalise(data, ...)

norm_quantile(var)

Arguments

data

an index table object

...

the expression to be evaluated

var

used in norm_quantile(); the variable to be converted

Value

an index table object

Examples

library(dplyr)
library(lmomco)
tenterfield |>
  mutate(month = lubridate::month(ym)) |>
  init(id = id, time = ym, group = month) |>
  temporal_aggregate(.agg = temporal_rolling_window(prcp, scale = 12)) |>
  distribution_fit(.fit = dist_gamma(.agg, method = "lmoms")) |>
  normalise(index = norm_quantile(.fit))

tidyindex documentation built on Nov. 16, 2023, 5:08 p.m.