setMaxToBase: Moves the max value of a varible in a decomposition to the...

Description Usage Arguments Value Author(s) Examples

Description

This function Sets the max value of a varible in a decomposition to the intercept and removes it from the varible

Usage

1
setMaxToBase(decomp, baseName, varsToBeShifted, removeZeros = FALSE)

Arguments

decomp

The decomposition which should be fixed

baseName

The intercept column in the decomp as a string

varsToBeShifted

The colmuns to be shifted

removeZeros

Logic, If TRUE the function will ignore zeros for the columns that are shifted

Value

A fixed decomposition

Author(s)

Johan Gudmundsson, jgu@blackwoodseven.com

Examples

1
setMaxToBase(decomp, baseName = 'allOnes', varsToBeShifted = c('trend', 'econmic'))

johan-gudmundsson/JGTools documentation built on May 19, 2019, 3:02 p.m.