- plyr
- describe{Hmisc} Generate latex tables.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Reference: | |
# http://stackoverflow.com/questions/4862178/remove-rows-with-nas-in-data-frame | |
# example from ?na.omit, changed. | |
# use complete.cases to get a bool vector of cases without missing data. | |
DF <- data.frame(x = c(1, 2, 3), y = c(0, 10, NA), z = c(NA, 10, 6)) | |
DF[complete.cases(DF), ] | |
# this can be used to choose specific columns of interests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#NoTrayIcon | |
PythonDir = %A_ScriptDir%\..\python\App | |
MeldDir = %A_ScriptDir% | |
params := "" | |
firstParam := true | |
Loop, %0% | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
************************************** | |
* 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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
% 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} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Common Lisp code example | |
(defun foo (n) | |
(lambda (i) (incf n i))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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 |
OlderNewer