Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion quantecon/_inequality.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ def shorrocks_index(A):
----------
.. [1] Wealth distribution and social mobility in the US:
A quantitative approach (Benhabib, Bisin, Luo, 2017).
https://www.econ.nyu.edu/user/bisina/RevisionAugust.pdf
https://www.aeaweb.org/articles?id=10.1257/aer.20151684

"""

A = np.asarray(A) # Convert to array if not already
Expand Down Expand Up @@ -144,6 +145,7 @@ def rank_size(data, c=1.0):
Location in the population when sorted from smallest to largest
size_data : array_like(float, ndim=1)
Size data for top (c x 100)% of the observations

"""
w = - np.sort(- data) # Reverse sort
w = w[:int(len(w) * c)] # extract top (c * 100)%
Expand Down
7 changes: 4 additions & 3 deletions quantecon/_kalman.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
References
----------

https://lectures.quantecon.org/py/kalman.html
https://python.quantecon.org/kalman.html

"""
from textwrap import dedent
Expand Down Expand Up @@ -53,11 +53,10 @@ class Kalman:
K_infinity : array_like or scalar(float)
The stationary Kalman gain.


References
----------

https://lectures.quantecon.org/py/kalman.html
https://python.quantecon.org/kalman.html

"""

Expand Down Expand Up @@ -154,6 +153,7 @@ def whitener_lss(self):
whitened_lss : LinearStateSpace
This is the linear state space system that represents
the whitened system

"""
K = self.K_infinity

Expand Down Expand Up @@ -289,6 +289,7 @@ def stationary_coefficients(self, j, coeff_type='ma'):
coeff_type : string, either 'ma' or 'var' (default='ma')
The type of coefficent sequence to compute. Either 'ma' for
moving average or 'var' for VAR.

"""
# == simplify notation == #
A, G = self.ss.A, self.ss.G
Expand Down
3 changes: 2 additions & 1 deletion quantecon/_lae.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
References
----------

https://lectures.quantecon.org/py/stationary_densities.html
https://python.quantecon.org/ar1_processes.html

"""
from textwrap import dedent
Expand Down Expand Up @@ -56,6 +56,7 @@ def __str__(self):
m = """\
Look ahead estimator
- number of observations : {n}

"""
return dedent(m.format(n=self.X.size))

Expand Down
6 changes: 3 additions & 3 deletions quantecon/bld.bat
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ if errorlevel 1 exit 1

:: Add more build steps here, if they are necessary.

:: See
:: http://docs.continuum.io/conda/build.html
:: for a list of environment variables that are set during the build process.
:: See
:: https://docs.conda.io/projects/conda-build/en/latest/resources/define-metadata.html
:: for a list of environment variables that are set during the build process.
4 changes: 0 additions & 4 deletions quantecon/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,3 @@
$PYTHON setup.py install

# Add more build steps here, if they are necessary.

# See
# http://docs.continuum.io/conda/build.html
# for a list of environment variables that are set during the build process.
8 changes: 4 additions & 4 deletions quantecon/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ test:
about:
home: https://github.com/jstac/quant-econ
license: BSD
summary: 'Code for quant-econ.net'

summary: 'Code for quantecon.org'
# See
# http://docs.continuum.io/conda/build.html for
# more information about meta.yaml
# https://docs.conda.io/projects/conda-build/en/latest/resources/define-metadata.html for
# more information about meta.yaml