Monthly Archives: July 2011

Using Lib FANN in R via Rcpp

Test Environment: OS: Windows XP, R: R 2.12.2(G:\Program Files\R\R-2.12.2\), Rcpp: 0.9.4, Rtools: 212 (G:\Rtools), FANN: 2.1.0 Lib FANN(Fast Artificial Neural Network Library) is a free open source neural network library written in C. In this tutorial I will show you … Continue reading

Posted in programming, r | Leave a comment

The Rcpp package test notes

Test Environment: OS: Windows XP, R: R 2.12.2(G:\Program Files\R\R-2.12.2\), Rcpp: 0.9.4 1. Download and install the Rtools(for windows): http://www.murdoch-sutherland.com/Rtools/ I installed the Rtools into “G:\Rtools“. 2. Set Enviroment Path for windows: Desktop -> right-click My Computer -> click Properties -> … Continue reading

Posted in programming, r | 1 Comment

R Tricks – Macros and Conditional Execution in R

1 Use Macros in R Problem You want to use C-like macros, such as “#define” in R. Solution Use “defmacro” in {gtools} pacakge. http://cran.r-project.org/web/packages/gtools/index.html https://stat.ethz.ch/pipermail/r-help/2007-April/130015.html 2 Conditional Execution Problem You want to use C-like macros, such as “#include” and C-like … Continue reading

Posted in programming, r | Leave a comment

Hypothesis Testing Basics

: null hypothesis v.s. : alternative hypothesis Two kinds of errors 1. reject the truth: , ; size/significance level , the smaller(), the better 2. accept the false: , ; power , , the larger(), the better The power function … Continue reading

Posted in statistics, test | Leave a comment