Friday, January 28, 2011
How can I graph the results of the margins command?
A useful post from UCLA ATS Computing explaining how to plot the results from the "margins" command. This one explains how to explain interaction results. More generally, the "Stata Frequently Asked Questions" section is also helpful.
Wednesday, January 26, 2011
LibreOffice
Post-estimation results manipulation: Stata vs. R
Stata's new "margins" command is as powerful as "Zelig" package for R for the purpose of conducting post-estimation manipulation of the results (e.g. producing predicted probabilities, confidence intervals, etc.). While "margins" uses delta method, "Zelig" uses predictive simulation. The best thing is that the results produced by one package can be checked against the other to ensure the consistency.
Saturday, January 22, 2011
GlmmADMB
The package "glmmADMB" is a good demonstration of the power and flexibility of ADMB: with two well structured C++ template files (1427 and 434 lines of code), the package is as almost as powerful as full scale commercial software such as HLM.
Friday, January 21, 2011
Some useful tips using shell commands
Here are a list of useful tips using shell commands (in Chinese).
Tuesday, January 18, 2011
ADMB 10
I just found out that ADMB 10 is out! The new release makes it much easier to compile and install from source (was possible in the previous release but took some tweak).
The R package to interface between R and ADMB, R2admb, developed by Ben Bolker , seems mature enough for serious use.
The R package to interface between R and ADMB, R2admb, developed by Ben Bolker , seems mature enough for serious use.
Sunday, January 09, 2011
Booktabs with longtable
I finally figured out how to use "booktabs" with "longtable". The "esttab" can be used to produce preliminary output, but the output needs to be manually tuned to get the desired look. Here are come tips., and here is a helpful example. Below is the preamble:
{
\begin{center}
\def\sym#1{\ifmmode^{#1}\else\(^{#1}\)\fi}
\begin{longtable}{l*{4}{c}}
\caption{Something}\\
\toprule
&\multicolumn{1}{c}{Model 1} &\multicolumn{1}{c}{Model 2} &\multicolumn{1}{c}{Model 3} &\multicolumn{1}{c}{Model 4} \\
\endfirsthead
\caption[]{(Continued)} \\
\toprule
&\multicolumn{1}{c}{Model 1} &\multicolumn{1}{c}{Model 2} &\multicolumn{1}{c}{Model 3} &\multicolumn{1}{c}{Model 4} \\
\midrule
\endhead
\midrule \multicolumn{5}{r}{\emph{Continued on next page}}
\endfoot
\endlastfoot
\midrule
{
\begin{center}
\def\sym#1{\ifmmode^{#1}\else\(^{#1}\)\fi}
\begin{longtable}{l*{4}{c}}
\caption{Something}\\
\toprule
&\multicolumn{1}{c}{Model 1} &\multicolumn{1}{c}{Model 2} &\multicolumn{1}{c}{Model 3} &\multicolumn{1}{c}{Model 4} \\
\endfirsthead
\caption[]{(Continued)} \\
\toprule
&\multicolumn{1}{c}{Model 1} &\multicolumn{1}{c}{Model 2} &\multicolumn{1}{c}{Model 3} &\multicolumn{1}{c}{Model 4} \\
\midrule
\endhead
\midrule \multicolumn{5}{r}{\emph{Continued on next page}}
\endfoot
\endlastfoot
\midrule
...
\end{center}
\end{longtable}
}
Friday, January 07, 2011
Cairo dock
I installed Cairo dock on one of my Ubuntu machine. I was not sure what I was getting at first, but the experience was surprisingly pleasant. Now I understand why many people like similar things on Mac. I decide to keep it at least for a while.
Thursday, January 06, 2011
Subscribe to:
Posts (Atom)