Skip to content
Code and algorithms for "A Model of Product Awareness and Industry Life Cycles"
Jupyter Notebook Julia Other
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
binder
docs
src
test
.codecov.yml
.gitignore
.travis.yml
LICENSE.md
Manifest.toml
Project.toml
README.md
demand-function-with-multiple-cohorts-two-type.ipynb
demand-function-with-multiple-cohorts.ipynb
exogenous_comparative_statics.ipynb
solving-large-linear-odes.ipynb
transition-multiple-cohorts-example-staggered-with-forgetting-experiments.ipynb

README.md

Overview

This repository has the code for A Model of Product Awareness and Industry Life Cycles

The derivation document has the complete set of equations implemented for the model, where all equation numbers in the code refer to this document.

Online Examples (no installation)

Using the Binder technology, the following links will execute the package notebooks in your browser

Installation for Local Use

  1. Follow the instructions to install Julia and Jupyter

  2. Open the Julia REPL (see the documentation above) and then install the package (by entering package mode) with

    ] add https://github.com/jlperla/Perla1.jl.git
  3. There are several ways you can run the notebooks after installation

    Using the built-in Jupyter is straightforward. In the Julia terminal

    using Perla1, IJulia
    notebook(detached=true, dir=dirname(dirname(pathof(Perla1))))

    Alternatively, to use a separate Jupyter installation you may have installed with Anaconda,

    using Perla1
    cd(dirname(dirname(pathof(Perla1))))
    ; jupyter lab

    where the last step runs your jupyter lab in the shell.

    Note In either case, the first time the using it will be very slow

  4. The code for individual examples and experiences are in the .ipynb files

NOTE: When using the notebooks for the first time, it will be very slow as the package and its dependencies are all compiled.

You can’t perform that action at this time.