setMinToBase: Moves the min value of a varible in a decomposition to the...

Description Usage Arguments Value Author(s) Examples

Description

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

Usage

1
setMinToBase(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
setMinToBase(decomp, baseName = 'allOnes', varsToBeShifted = c('trend', 'econmic'))

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