Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import scipy.stats as st | |
import copy | |
import numpy as np | |
import pysal as ps | |
def _estimate_kdes(y,z): | |
""" | |
estimate a kernel desnity for each group in z (classes) from y (data) | |
""" | |
z_unique = np.unique(z).tolist() |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def joyplot(data, ax=None, | |
flatten = .1, #rescale the height of each distribution to avoid overlap. If large, will flatten out each of the KDEs | |
linecolor='k', | |
shadecolor='w', | |
alpha=1, | |
shade=True, | |
line_kws = None, | |
kde_kws=None, | |
fig_kws=None, | |
shade_kws=None): |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select | |
t1.geom_uid as geom_uid, | |
t2.geom_uid as neighbor_uid | |
from | |
geo6311 as t1, | |
geo6311 as t2 | |
where | |
st_touches(t1.the_geom, t2.the_geom); | |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import scipy.stats as st | |
import warnings | |
def retrodesign(theta, se, alpha=.05 , df=1, n_sims = 10000): | |
""" | |
Implements the "retrodesign" function from Gelman \& Carlin (2014). | |
This computes the power, Sign error rate, and exaggeration ratio. |