-
Login or Register
- Log in with
Here you can find advice on posting to Statalist and answers to questions about how the forum software works. Use the links or search box below to find your way around.
by Nicholas J. Cox, Durham University
revised 25 September 2024
This document gives advice. The main aim is to help people post clear questions that can be answered easily and that could be interesting or useful to others.
Covering all the large and small points that arise commonly, yet also remaining concise, is a tough call. We have set off on one side another document https://www.statalist.org/forums/help#adviceextras covering
Bumping, closing threads, and starting new threads
Using private messages
Why do we ask for full real names
Homework
so please also look there if any of those headings looks applicable to your queries.
If you think that, you are more likely to get no reply or trigger puzzled queries because you posted an unclear or inappropriate question.
Please do read the entire FAQ. It is packed with advice from many years' experience. It is fine to skim and skip parts that do not seem relevant to you right now.
Statalist is for the Stata community. Anything Stata-related is appropriate.
Statalist was started in August 1994 as a discussion list and relaunched in March 2014 as a forum.
You can read about all the features of the forum software in the Forum Software FAQ.
Statalist has three forums.
Before posting, search the forum for similar questions and consider other ways of finding information:
What counts as elementary? might be the reply to that.
There is an underlying expectation that you have tried to read the Stata documentation or basic literature at your level. So, Statalist is not for questions on how to do regression in Stata, the difference between means and medians, or even what instrumental variables are. If you are in doubt about where to draw the line, look at previous questions.
Statalist is a technical forum for people with technical questions and a desire to get the right answers. So, you can and should be direct and honest if you see something that appears wrong or confused. But correct the error politely; never flame the person.
Rudeness, bad language, and unkind personal remarks are always out of order. Similarly, as you have a good question, just ask it. We don't need or want detailed explanations of how much you need help, how urgent it is for you, or how grateful you will be for attention.
You are asked to post on Statalist using your full real name, including given name(s) and a family name, such as "Ronald Fisher" or "Gertrude M. Cox". Giving full names is one of the ways in which we show respect for others and is a long tradition on Statalist. It is also much easier to get to know people when real names are used.
If you overlook this on first registration, it is easy to fix. Click on “Contact us” located at the bottom right-hand corner of every page.
Few members read every post, so your topic needs to help members decide if they might be able to help you.
Make the topic line concise but informative. “Question” or “Please help” will not help us or help you. “Problem with instrumental variables regression” lets people decide quickly whether to look at your post.
People posting on Statalist may also post the same question on other listservers or in web forums. There is absolutely no rule against doing that.
But if you do post elsewhere, we ask that you provide cross-references in URL form to searchable archives. That way, people interested in your question can quickly check what has been said elsewhere and avoid posting similar comments. Being open about cross-posting saves everyone time.
If your question was answered well elsewhere, please post a cross-reference to that answer on Statalist.
You might find various websites that discuss general issues in getting help from technical lists and forums instructive and even amusing. Mike Ash discusses “Getting answers” at http://www.mikeash.com/getting_answers.html, with key headings:
Eric Raymond and Rick Moen discuss “How to ask questions the smart way” at http://www.catb.org/~esr/faqs/smart-questions.html.
Asking about your real problem, not something else, may seem too obvious to mention, but do check http://xyproblem.info/.
Do write carefully; be precise and include all relevant detail.
For instance,
Please pay attention to grammar, spelling, punctuation, and tidy, readable presentation generally. Statalist is naturally sympathetic whenever it is clear that English is not your first language (which is another reason to use your real name).
The current version of Stata is 18. Please specify if you are using an earlier version; otherwise, the answer to your question may refer to commands or features unavailable to you. Moreover, as bug fixes and new features are issued frequently by StataCorp, make sure that you update your Stata before posting a query, as your problem may already have been solved.
Help us to help you by producing self-contained questions with reproducible examples that explain your data, your code, and your problem. This helps yet others too, as they will find it easier to learn from your questions and the answers to them.
Say exactly what you typed and exactly what Stata typed (or did) in response. N.B. exactly!
If you are using community-contributed (also known as user-written) commands, explain that and say where they came from: the Stata Journal, SSC, or other archives. This helps (often crucially) in explaining your precise problem, and it alerts readers to commands that may be interesting or useful to them.
Here are some examples:
I am using xtreg in Stata 16.1.
I am using estout from SSC in Stata 16.1.
Never say just that something "doesn't work" or "didn't work", but explain precisely in what sense you didn't get what you wanted.
We can understand your dataset only to the extent that you explain it clearly.
The best way to explain it is to show an example. The community-contributed command dataex makes it easy to give simple example datasets in postings. It was written to support Statalist and its use is strongly recommended. Usually a copy of 20 or so observations from your dataset is enough to show your problem. See help dataex for details.
dataex is part of your Stata installation in any version of Stata from 16 up.
If you are using Stata 14 or 15, you may need to update your Stata to install a copy on your system.
If you are using an earlier version of Stata (9.2 to 13), you must install dataex from SSC before you can use it. Type ssc install dataex in your Stata.
The merits of dataex are that we see your data as you do in your Stata. We see whether variables are numeric or string, whether you have value labels defined and what is a consequence of a particular display format. This is especially important if you have date variables. We can copy and paste easily into our own Stata to work with your data.
If your dataset is confidential, then provide a fake example instead.
The second best way to explain your situation is to use one of Stata's own datasets and adapt it to your problem. Examples are the auto data and the Grunfeld data (a simple panel dataset). That may be more work for you and you may not find an analog of your problem with such a dataset.
The worst way to explain your situation is to describe your data vaguely without a concrete example. Note that it doesn't help us much even to be given your variable names. Often that leaves unclear both your data structure and whether variables are numeric or string or their exact contents. If you explain only vaguely, quick answers to your question, or even any answers at all, are less likely.
Stata code (i.e. the exact commands issued) and the results of code are very much easier to read if presented as such.
When you are editing an answer you should see a # button in the toolbar above the text area. Click on # to insert [CODE] and [/CODE] mark-up. Write your code and results between, paying particular attention to linebreaks and indentation.
If you do not see that button, then click on the “Toggle Advanced Editor” button (an underlined A) in the area above to show the toolbar.
If you do not have access to the Advanced Editor in your interface, you can just insert those mark-ups manually before, or indeed after, you insert your code. Many people fast at typing do that any way.
Examples of your data (or of realistic similar datasets) are also much easier to read if presented as CODE. dataex, explained just above, automatically generates text including CODE delimiters, which can be copied and pasted into Statalist posts.
What is valuable with presenting code, results, or data as CODE is that other members can easily copy and paste what you post to play with in their Stata installation.
Stata graphs should be posted as .png file attachments (start with the Clipboard icon). Please don't use other file formats, even .gph.
See next section 12.5 for why other images (e.g. screenshots) are usually much less helpful than you imagine.
There are several "please don't" requests here, but good reasons for them all.
Please do not post .gph files, as they can't be read without flipping back and forth between Stata and the forum software, thus making your posts much more difficult to follow.
In particular, please do not post screenshots. Many members will not be able to read them at all; they usually can't be read easily; and they do not allow copy and paste of data or code, which is highly desirable to allow experienced members to make precise suggestions for your questions.
You are asked not to post attachments that are in Word or Excel file formats (.doc, .docx, .xls, .xlsx), because
Stata's own do-files may seem to be exceptions, as they are pure text. However, we also discourage posting do-files as attachments:
Finally, we ask that in general you don't post .dta or .zip files either. This is because
Please give precise literature references. The literature familiar to you will be not be familiar to all members of Statalist. Do not refer to publications with just author and date, as in Sue, Grabbit, and Runne (1989).
References should be in a form that you would expect in an academic publication or technical document. Good practice is to give a web link accessible to all or alternatively full author name(s), date, paper title, journal title, and volume and page numbers in the case of a journal article.
Stata runs on Windows, Mac, and Unix platforms. Specify the platform you are using if your question is or may be specific to that platform. For example, "I am using Stata 15 on Windows 10".
Please do not request private replies unless you are posting about employment or consultancy opportunities. Statalist is based on replying to the forum, not personally to the poster, with the ideal that postings are of interest to many.
Trying to wrap up a thread you started is helpful, especially if you report what solved your problem. You can then thank those who tried to help. Conversely, ignoring answers is less sociable, even if those answers did not solve your problem. "Thanks in advance" does not absolve you from either expectation.
Please note that a Like on a post is not publicly visible as coming from you and, while friendly, also does not absolve you from either expectation.
Starting a thread does not convey ownership of that thread. Re-opening a thread by yourself or others is always allowed, and encouraged when any one has something relevant to add, say by reporting another solution, an update of a program, or a very similar question. Lapse of time is often not important: for example, it's fine to announce an update of a program in the same thread a few years after the original post. A new post always bumps a thread temporarily to the top of the list, so that additions can be noticed and read in context.
You cannot delete a post, but the forum allows for a one hour edit window. This allows fixes of many kinds, such as typo corrections, extra detail, or improved wording. Please don't mangle your own posts, even if you solved your problem yourself or realised that the question was silly. Explain the solution, even if it was trivial. Often someone else will have the same problem.
Questions can get no replies for many different reasons. Here are some that are common.
The correct spelling is “Stata”, please, not “STATA”. Several of the most active experts on the list can get a little irritated if you get that wrong, although you are free to regard them as pedantic. More importantly, if you write “STATA” you are making it obvious that you didn't read this guide carefully and to the end.
The Stata logo displayed when you start up the program is not evidence here. Companies often have quaint logos as trademarks. The logo is more like STaTa in any case.
P.S. An often asked question is: What is the correct way to pronounce 'Stata'? and that can be answered here too. (Previous versions of this have been cited in Wikipedia and in some blogs as authoritative, so this must be correct.) Some people pronounce 'Stata' with a long a as in day (Stay-ta); some pronounce it with a short a as in flat (Sta-ta); and some pronounce it with a long a as in ah (Stah-ta). The correct English pronunciation must remain a mystery, except that personnel of StataCorp use the first of these. Some other languages have stricter rules on pronunciation that will determine this issue for speakers of those languages. (Mata rhymes with Stata, naturally.)