You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you very much for this excellent resource. For my own use I have added the functionality to also plot standard error of the mean, and custom errorbars for pointplot:
starting line 1477 of categorical.py in the _PointPlotter.estimate_statistic function (shown after sd):
if ci == "sd":
estimate = estimator(stat_data)
sd = np.std(stat_data)
confint.append((estimate - sd, estimate + sd))
elif ci == "sem":
estimate = estimator(stat_data)
sem = np.std(stat_data) / np.sqrt(len(stat_data))
confint.append((estimate - sem, estimate + sem))
elif ci[0] == 'custom':
estimate = estimator(stat_data)
ci_ = ci[1][i]
confint.append((estimate - ci_, estimate + ci_))
At the moment it is a bit ugly, and requires ci to be bassed as a two inputs (one 'custom', the other an array of errorbars). so might lead to issues in its current form. However am happy to work on it if its something youd consider having as part of the package.
Best,
Joe
The text was updated successfully, but these errors were encountered:
Thank you very much for this excellent resource. For my own use I have added the functionality to also plot standard error of the mean, and custom errorbars for pointplot:
starting line 1477 of categorical.py in the _PointPlotter.estimate_statistic function (shown after sd):
At the moment it is a bit ugly, and requires ci to be bassed as a two inputs (one 'custom', the other an array of errorbars). so might lead to issues in its current form. However am happy to work on it if its something youd consider having as part of the package.
Best,
Joe
The text was updated successfully, but these errors were encountered: