View source: R/optimal.path.lam.R
This function returns the optimal path of consumption, saving, and sharing rule in each period and each marital states. It utilizes parallel computation. In the first period we have four controls: husband's consumption, wife's consumption, saving, and the sharing rule next period provided staying married. The second period has two controls: husband's and wife's consumptions. The last line of the code is to exit MPI when using SMOW package on cluster
1 | optimal.path.lam(Precise = FALSE, local = TRUE)
|
Precise |
Use the optimization packages (nloptr) to derive first period optima. If it is off, which is the default, we use feasible.region to have a rough approximation of the optima. |
local |
Specifies the parallelization should happen on local machine or Acropolis cluster. Default is the local machine |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.