diff --git a/quantecon/_inequality.py b/quantecon/_inequality.py index 40b9024e4..886b611d8 100644 --- a/quantecon/_inequality.py +++ b/quantecon/_inequality.py @@ -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 @@ -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)% diff --git a/quantecon/_kalman.py b/quantecon/_kalman.py index c6a94c4b9..ba4021ce1 100644 --- a/quantecon/_kalman.py +++ b/quantecon/_kalman.py @@ -4,7 +4,7 @@ References ---------- -https://lectures.quantecon.org/py/kalman.html +https://python.quantecon.org/kalman.html """ from textwrap import dedent @@ -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 """ @@ -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 @@ -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 diff --git a/quantecon/_lae.py b/quantecon/_lae.py index 83b59c87c..a324559b8 100644 --- a/quantecon/_lae.py +++ b/quantecon/_lae.py @@ -12,7 +12,7 @@ References ---------- -https://lectures.quantecon.org/py/stationary_densities.html +https://python.quantecon.org/ar1_processes.html """ from textwrap import dedent @@ -56,6 +56,7 @@ def __str__(self): m = """\ Look ahead estimator - number of observations : {n} + """ return dedent(m.format(n=self.X.size)) diff --git a/quantecon/bld.bat b/quantecon/bld.bat index 87b1481d7..9e02a9570 100644 --- a/quantecon/bld.bat +++ b/quantecon/bld.bat @@ -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. \ No newline at end of file diff --git a/quantecon/build.sh b/quantecon/build.sh index 4d7fc032b..c57e6fb7e 100644 --- a/quantecon/build.sh +++ b/quantecon/build.sh @@ -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. diff --git a/quantecon/meta.yaml b/quantecon/meta.yaml index d19352409..28aa7a015 100644 --- a/quantecon/meta.yaml +++ b/quantecon/meta.yaml @@ -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 \ No newline at end of file