I am a big fan R markdown, I find it even easier than weaving LaTeX for quick project documentation (less than 15 pages). However, I also sometimes have to support other statistics packages ( SPSS, Stata+ SAS) and wondered about equivalent solutions for them.
R markdown
SPSS
Stata
SAS
To some extent, this may return to using some kind of source Nowebcode + markdown file, which will be compiled on the command line. I assume other packages from R are another option.
Noweb
I reviewed this example of John Mushelli: http://rpubs.com/muschellij2/3888 , and it looks like he has embedded the Stata code in the R-markdown file.
What are your thoughts on this topic?
I know SASweaveand StatWeave(the latter, apparently, is broken ???), but think that a markdown would be much more advantageous in our case.
SASweave
StatWeave
John Mushelli pointed me to this Stata program:
https://github.com/amarder/stata-tutorial/blob/master/knitr.do
It analyzes a file .domdcontaining markdown code and Stata, and creates a file .mdwith Stata executable code. The name of the file to be analyzed is at the end of the file knitr.do.
.domd
.md
knitr.do
More specific:
Download the file knitr.dofrom https://github.com/amarder/stata-tutorial/blob/master/knitr.do
clustered-standard-errors.domd https://github.com/amarder/stata-tutorial/blob/master/clustered-standard-errors.domd
clustered-standard-errors.domd
- .
knitr.do, (, D:\Desktop\knit_example\clustered-standard-errors.domd
knitr.do, (.md) ( .md1).
.md1
, knitr.do , ():
knit "whatever-file.domd"
.
, .domd [ (2) - ], Markdown Stata, knitr.do, Markdown Stata.
:
Stata SMCL , M . , SMCL , , . Stata , , Stata.
, SMCL HTML, . , -, Stata, - , log SMCL, HTML. , , , , Stata.
log
log2html, Stata ssc inst log2html. , Stata.
log2html
ssc inst log2html
Stata HTML ( , , ).
, , , .html SAS, , (ODS).
ods html file='pathofdirectory\filename.html' <additional options>; proc print... (SAS code that generates output) proc means... proc freq... proc gchart... proc gplot... ... ods html close;
SPSS ( SAS, ), - , . , , SPSS , HTML PDF Word. , , , , ( , Python), .
, , SPSS R, html-. . , . , , ( , , ).
SPSS SPSS Python, Python, SPSS. , , . 100 SPSS, SQL-, ? , , nitty gritty, , DataPrep.sps, , Table1.sps Figure1.sps .., , ?
DataPrep.sps
Table1.sps
Figure1.sps