Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Efficiency tips #9

Open
matthew-white opened this issue Mar 29, 2014 · 1 comment
Open

Efficiency tips #9

matthew-white opened this issue Mar 29, 2014 · 1 comment

Comments

@matthew-white
Copy link

How to write a program that is efficient and executes quickly

@matthew-white matthew-white added this to the Module on programs milestone Mar 29, 2014
@matthew-white
Copy link
Author

If at all possible, don't loop over all observations in Stata (e.g., using forvalues i = 1/=_N'), as this is very slow. Use by, merge`, or Mata instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants