Learn R Programming

sgmodel (version 0.1.2)

print.summary_sgmod: print.summary_sgmod

Description

The function print.summary_sgmod prints a summary for a sgmodel object.

Usage

# S3 method for summary_sgmod
print(x, ...)

Value

It returns a list with the model parameters. It includes:

Utility function

The type of utility function. See the details of util for the available types

Capital share

The exponent on capital in the Cobb-Douglas production function.

Discount factor

The discount factor used in the model.

Depreciation

The depreciation rate of capital used in the model.

Rho

Autocorrelation of the TFP AR(1) process.

Sigma

Standard deviation of the white noise in the TFP process.

Number of TFP states

Number of states of the TFP process.

Arguments

x

An object of class sgmod.

...

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 <- 4
rho <- 0.2
sigma <- 0.02
model <- sgmodel(grid, utiltype, utilparam, A, depre, discount, prod, states, m, rho, sigma)
summary_sgmod(model)

Run the code above in your browser using DataLab