Stata
Products Purchase Support Company
Search
   >> Home >> Resources & support >> FAQs >> Programming Stata

Programming Stata

FAQ:   Programming Stata
Search the FAQs: spacer.gif spacer.gif
Last updated: 19 June 2007
Stata release: 10

Questions are listed below in the following categories:
  1. General programming FAQs
  2. Dialog FAQs
  3. Mata FAQs
  4. FAQS concerning Stata 9 (previous release)
  5. FAQs concerning releases before Stata 9

1. General programming FAQs

Is there any way to get around the 70-option limit in Stata’s syntax command?

How do I process parallel lists?

How do I signal that there are alternative types of arguments to program options?

What is the difference between a release marker and a version number in a ado-file?

How can I use Stata to solve a system of nonlinear equations?

How can I automatically execute certain commands every time I start Stata?

I have an if command in my program that only seems to evaluate the first observation, what's going on?

Why does my do-file or ado-file produce different results every time I run it?

How can I pass arguments to my do-file?

Why do I get errors with my local macros?

How do I debug my program?

How do I add an observation to a dataset when coding an ado-file?

I coded `a'^2 and got the wrong sign. Why?

How can I save matrices?

Where is the official ado directory?

Where is my personal ado directory?

Why does a program defined by an ado-file sometimes not work when given a string comparison?

2. Dialog FAQs

A. How do I get started writing Stata dialogs?

Dialog programming (part 1)—Getting started
Dialog programming (part 2)—Adding features
Dialog programming (part 3)—Using tabs
Dialog programming (part 4)—Using options

B. How do I share user-written dialogs and Stata menus?

Sharing dialogs (part 1)—Basic terminology and overview
Sharing dialogs (part 2)—Dialog-box programs
Sharing dialogs (part 3)—Stata menus
Sharing dialogs (part 4)—Submenus and dialogs

C. Advanced dialog topics

What can you tell me about using the .idlg files that are written by StataCorp and used in their dialogs?

How can I take care of prerequisites in dialog boxes?

Can I use existing Stata .idlg files for my own graphics command dialog?

3. Mata

4. FAQs concerning Stata 9 (previous release)

What can you tell me about the Windows 98 operating system and dialogs?

5. FAQs concerning releases before Stata 9

How do I assign multiple backslash characters to macros in Stata?

Why do I get puzzling results with the for command and local or global macros?

Why do some nested for commands produce an error?

Why is post giving a syntax error?

How can I remove collinear variables from a varlist?

I just downloaded and installed an ado-file from an early STB (before STB-7), and I am having trouble running it. What's wrong?

Where does Stata look for ado-files?

Where should I keep my ado-files?

FAQs
What's new?
Statistics
Data management
Graphics
Programming Stata
Mata
Resources
Internet capabilities
Stata for Windows
Stata for Unix
Stata for Macintosh
Technical support
Resources & support
FAQs
Technical support
NetCourses
Short courses
Users Group meetings
Statalist
Links
Software updates
Software archives
Customer service
Manuals & supplements
Stata Journal
STB
Stata News
Stata Automation
Plugins

Site overview
Products
Resources & support
Company
Site index

© Copyright 1996–2008 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index