Coder Social home page Coder Social logo

dballaelliott / esplot Goto Github PK

View Code? Open in Web Editor NEW
12.0 12.0 10.0 3.58 MB

archived : use csdid instead

Home Page: https://dballaelliott.github.io/esplot/

License: MIT License

Stata 38.20% TeX 0.10% HTML 61.70%
diff-in-diff dynamic-effects event-study event-study-analysis event-study-plots stata

esplot's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

esplot's Issues

Syntax error (-twoway options-)

Hi Dylan, thanks for compiling a nice package!

I've found an error when I try to specify a title/note of a plot.

For example, the following code produces an error

esplot outcome, event(dum_edate) title("Event Study")
type mismatch r(109);

It works when I remove spaces in the string.
esplot outcome, event(dum_edate) title("Event_Study")

This behavior persists across any twoway options (like -note("xxx")-, -xtitle("yyy")-) that includes spaces in strings.

file log_program.ado not found

I tried to use esplot for my data:

  1. Installation was done via Stata:
    net install esplot, from("https://raw.githubusercontent.com/dballaelliott/esplot/pkg/") replace

(When trying to use the esplot -command, I encountered the "file log_program.ado not found"

  1. I downloaded the files direct from https://github.com/dballaelliott/esplot and installed them to ado-folder ...

I encountered the "file log_program.ado not found" again.

I don't know whether the problem is in esplot -package or in my Stata.

Has anyone encountered this problem? Any solutions available?

Current Build Depends on Variable Abbreviation

The current build of esplot relies on variable abbreviation, this is enabled by default and can be manually enabled with set varabbrev on.

While removing the dependence is relatively straightforward (i.e. can be solved by ensuring that all variable names are fully spelled out in every occurrence), it's on my long term to-do list and I won't realistically get to it soon. Since it's a simple fix to enable variable abbreviation, it's not strictly speaking a bug, but rather a poor design choice on my part.

I'm simply flagging this as an issue for the sake of documentation should future users have this issue. Of course, community members are welcome to implement this relatively straightforward fix and submit a pull request.

Estimates from Day-1 doesn't show in plot

Hey, I've found another peculiar issue in the resulting plot. The command doesn't show the estimate from Day-1. For example, if I run the following code from your example_csv, the resulting plot omits the estimate from Day-1.

esplot paygrade, by(male) event(to_male_mgr, save) window(-20 30) estimate_reference

Graph

Build Stata 13 version?

Howdy,

I was going to try to use your program, but it is not compatible with Stata 13. Is it possible to build it to be backwards compatible?

Thank you,
Luke

[BUG REPORT]: Strange behavior with display confidence intervals when the number of clusters is small!

Describe the bug
It looks like there are some irregularities with how lincom deals with clustered standard errors where the number of clusters are very few such that the student T distribution is "far" from the normal distribution. In particular, it looks like the confidence intervals are too tight.

To-do:

  • grab the confidence intervals directly from the regression output where possible to eliminate the number of redundant computation steps.

Screenshots
N/A

Uploading a .log file will make it much quicker for me to patch the bug!
N/A

[BUG REPORT]: your issue

I used your example file and entered the command:
esplot paygrade, by(male) event(to_male_mgr) window(-20 30) estimate_reference

I got the following message:
(note: named style 143 188 187 % 80 not found in class color, default attributes used)
(note: named style 143 188 187 % 80 not found in class color, default attributes used)
(note: named style 208 135 112 % 80 not found in class color, default attributes used)
(note: named style 208 135 112 % 80 not found in class color, default attributes used)

I think this refers to the colors that are supposed to be used for the confidence intervals. The confidence intervals in my plot come out the same color and difficult to distinguish from one another (see screenshot). I am using Stata 14, so it's possible there's an incompatibility? Let me know if that's the issue or if there's something else going on.

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.