Code For Expectation of a Function of a Random Variable

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

Code For Expectation of a Function of a Random Variable

Postby Schaller » Mon Aug 20, 2012 6:25 pm

I am new to Dynare, and am wondering if there is a simple way to code the expectation of function of a random variable when the underlying distribution is non-Gaussian. For example, I would like to evaluate expressions such as

integral [x**(1/(1-rho))] dF(x),

where F is the cdf of the Pareto distribution. I would like to use expressions like this in the model statements of a DSGE model.

I am also interested in evaluating functions of a random variable subject to a cutoff, such as

integral{x<x^} [x**(1/(1-rho))] dF(x).
Schaller
 
Posts: 3
Joined: Fri Aug 17, 2012 8:01 pm

Return to Dynare help

Who is online

Users browsing this forum: No registered users and 6 guests