Learn R Programming

sgmodel (version 0.1.2)

print_sgmod: print_sgmod

Description

The function print_sgmod prints results of the sgmodel function.

Usage

print_sgmod(x, ...)

Value

The function prints the call of the function, the Savings, Consumption and Capital grid vectors from sgmodel.

Arguments

x

A sgmodel object.

...

Additional arguments.

Examples

Run this code
grid <- 200
utiltype <- "CRRA"
utilparam <- 4
A <- 1
depre <- 0.03
discount <- 0.95
prod <- 0.3
states <- 3
m <- 5
rho <- 0.2
sigma <- 0.02
model <- sgmodel(grid, utiltype, utilparam, A, depre, discount, prod, states, m, rho, sigma)
print_sgmod(model)

Run the code above in your browser using DataLab