annualize: Annualize results with less than 12 months of observations.

Description Usage Arguments Value Examples

View source: R/annualizer.R

Description

annualize performs naive annualization of results with less than 12 months worth of observations, essentialy multiplying each result by 12/nmonths for results < 12 months.

Usage

1
annualize(x, nmonths)

Arguments

x

A vector of results to annualize.

nmonths

Either a single number that represents the number of months used for observations, or a vector of length(x) that represents the number of months each result was observed for.

Value

vector of length length(x) with results annualized.

Examples

1
2
3
x <- rep(10,20)
 n <- seq(1,20)
 annualize(x, n)

multiphrenic/IncentiveAnalysis documentation built on May 23, 2019, 8:22 a.m.