Below is a mixed model, where female is used to predict mathach, the model includes a random intercept, where the level 2 units are defined by the variable id. use…
Read More
Search Results for: what stat should i use
Monte Carlo Power Simulation of a Multilevel Model | Stata FAQ
NOTE: Code for this page was tested in Stata 12. Several researchers wish to conduct a longitudinal multilevel study that tests a control condition versus a treatment condition. In order…
Read More
How can I do moderated mediation with a categorical moderator in Stata? | Stata FAQ
This page is just an extension of How can I do moderated mediation in Stata? to include a categorical moderator variable. We will call that page modmed. If you are…
Read More
How can I do moderated mediation with a categorical moderator using sem? | Stata FAQ
This page is just an extension of How can I do moderated mediation in Stata? to include a categorical moderator variables. We will call that page modmed. If you are…
Read More
How can I merge multiple files in Stata? | Stata FAQ
NOTE: This page describes usage of an older version of the merge command (prior to Stata 11), which allowed multiple files to be merged in the same merge command. The current version of merge…
Read More
How can I perform the likelihood ratio and Wald test in Stata? | Stata FAQ
Purpose: This page shows you how to conduct a likelihood ratio test and Wald test in Stata. For a more conceptual understanding, including an explanation of the score test, refer to …
Read More
How can I use multiply imputed data where original data is not included? | Stata FAQ
Note that Stata’s mi commands were implemented in version 11, the code below is not applicable to earlier versions. One common storage method for multiply imputed (MI) datasets is to…
Read More
How can I load, write, or view a dBASE file, Excel file or Access file using odbc? | Stata FAQ
Note: This page is written using Stata 11 and Windows XP. Stata command odbc allows Stata to load, write, or view data from ODBC sources. ODBC, an acronym for Open…
Read More
How do I copy Stata output and Stata graphs into Word? | Stata FAQ
It is rather easy to copy Stata output and Stata graphs into Microsoft Word. This page shows how you can copy your Stata output and graphs into Microsoft Word. The…
Read More
How do I write my own bootstrap program? | Stata FAQ
Stata has the convenient feature of having a bootstrap prefix command which can be seamlessly incorporated with estimation commands (e.g., logistic regression or OLS regression) and non-estimation commands (e.g., summarize)….
Read More
