Markdown in statistics packages other than R

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.

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.

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.

+4
source share
4 answers

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.

More specific:

, knitr.do , ():

knit "whatever-file.domd"

.

, .domd [ (2) - ], Markdown Stata, knitr.do, Markdown Stata.

:

  • Stata. , .
  • ". domd" .
  • Stata, .
  • , "" Stata.
+4

Stata SMCL , M . , SMCL , , . Stata , , Stata.

, SMCL HTML, . , -, Stata, - , log SMCL, HTML. , , , , Stata.

log2html, Stata ssc inst log2html. , Stata.

Stata HTML ( , , ).

+6

, , , .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;
+2

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 .., , ?

+1

All Articles