- Generate datetime string to use as filenames
fname = paste(format(Sys.time(), "%Y%m%d-%H%M%S"), ".EXT", sep="")
--- | |
title: "Rmd Demo: Chinese Enabled" | |
author: "Shel Kong" | |
date: "Wednesday, July 02, 2014" | |
hello: "world" | |
output: | |
html_document: | |
highlight: pygments | |
number_sections: yes | |
theme: flatly |
; Common Lisp code example | |
(defun foo (n) | |
(lambda (i) (incf n i))) |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
% LaTeX snippet: language and style definition of Stata for listings package. | |
% [listings](http://www.ctan.org/pkg/listings) | |
% [Stata](http://www.stata.com/) | |
% | |
% Usage: | |
% Copy the code into your preamble, or import it by `\include` . | |
% then in your doc: | |
% \lstinputlisting[style=numbers]{DO-SCRIPT} | |
% \lstinputlisting[style=numbers, style=stata-editor]{DO-SCRIPT} |
# 3.5 | |
setwd("D:/") | |
a = read.table("m-intc7308.txt", head = T) | |
# 调整成时间序列数据 | |
ts1 = ts(data = a[[2]], start = 1973, frequency = 12) | |
lts1 = log(1 + ts1) | |
# 转化成对数收益率 | |
acf(lts1) | |
# 观察 ARIMA 模型的阶数 (定阶) | |
pacf(lts1) |
************************************** | |
* Stata profile.do | |
************************************** | |
if "`c(os)'" == "Windows" { | |
sysdir set PLUS "`c(sysdir_stata)'ado/plus" | |
sysdir set PERSONAL "C:/Users/`c(username)'/stata/ado" | |
} | |
else { | |
sysdir set PLUS "~/stata/ado/puls" |
#NoTrayIcon | |
PythonDir = %A_ScriptDir%\..\python\App | |
MeldDir = %A_ScriptDir% | |
params := "" | |
firstParam := true | |
Loop, %0% | |
{ |