risco_cambio: Risco cambial

Description Usage Arguments Value Examples

Description

computes total spending for a given sensibility in exhange rate

Usage

1
2
risco_cambio(sens_tx_c, tx_c_base = 3.77, cambio_real = F,
  exp_camb = 0.5, exp_usd = 1, start_year, amp_erro, igual_excel = F)

Arguments

sens_tx_c

A number. How much above or below we expect the exchange rate to be. 1.1 means 10 percent higher than historical trend.

tx_c_base

base exchange rate

cambio_real

Logical. If TRUE, will use real exchange rate up to 2017, then 3.77 as prediction for the following years. If not, will use tx_c_base and replicate.

exp_camb

percent of expostion to foreign currency

exp_usd

exposition to dollar

start_year

number. Year the series will start.

amp_erro

number Amplitude of error term. In practice, it is the number we will multiply the normal error. If 1 it will generate normal errors.

igual_excel

Logical. If TRUE, function will generate same data for base exchange rate as in the excel file

Value

amount that could be paid due to variation in exchange rate

Examples

1
 risco_cambio(sens_tx_c = 1.1, start_year = 2007, amp_erro = 2)

mgaldino/line4PPPsim documentation built on May 6, 2019, 7:03 p.m.