Monthly Archives: November 2011

Code Optimization: One R Problem, Ten Solutions – Now Eleven!

November 1, 2011
By
Code Optimization: One R Problem, Ten Solutions – Now Eleven!

Earlier this year I came across a rather interesting page about optimisation in R from rwiki. The goal was to find the most efficient code to produce strings which follow the pattern below given a single integer input n: From this we can see that the general pattern for n is: It is rather heart

Read more »

Bootstrapping a Single Statistic (k=1) The following example…

November 1, 2011
By
Bootstrapping a Single Statistic (k=1)

The following example…

Bootstrapping a Single Statistic (k=1) The following example generates the bootstrapped 95% confidence interval for R-squared in the linear regression of miles per gallon (mpg) on car weight (wt) and displacement (disp). The data source is mtcars. The...

Read more »

Web Scraping Google Scholar & Show Result as Word Cloud Using R

November 1, 2011
By
Web Scraping Google Scholar & Show Result as Word Cloud Using R

OUTDATED! Please see the update HERE!...When reading Scott Chemberlain's last post about web-scraping I felt it was time to pick up and complete an idea that I was brooding over for some time now:When a scientist aims out for a new project the firs...

Read more »

Minimizing Downside Risk

November 1, 2011
By
Minimizing Downside Risk

In the Maximum Loss and Mean-Absolute Deviation risk measures, and Expected shortfall (CVaR) and Conditional Drawdown at Risk (CDaR) posts I started the discussion about alternative risk measures we can use to construct efficient frontier. Another alternative risk measure I want to discuss is Downside Risk. In the traditional mean-variance optimization both returns above and

Read more »

How Might Data Journalists Show Their Working? Sweave

November 1, 2011
By
How Might Data Journalists Show Their Working? Sweave

If part of the role of data journalism is to make transparent the justification behind claims that are, or aren’t, backed up by data, there’s good reason to suppose that the journalists should be able to back up their own data-based claims with evidence about how they made use of the data. Posting links to

Read more »

Line Plots (Econometric in R) Input: ##…

November 1, 2011
By
Line Plots (Econometric in R)

Input:

##…

Line Plots (Econometric in R) Input: ## ---------------------------- ## ## Plotting Points *and* Lines ## ## ---------------------------- ## pow = c(0.95, 0.6, 0.3, 0.15, 0.1, 0.05, 0.1, 0.15, 0.3, 0.6, 0.95) pow2 = c(0.99, 0.75, 0.4, 0.2, 0.15, 0.0...

Read more »

Etiquette on the mailing list, to RTFM or not to RTFM

November 1, 2011
By

Sometimes people ask very basic questions on the R-help mailing list, which could have easily been answered by reading some R manual or doing a quick Google search. Responses on the mailing range from people answering the question to “Please… See more ›

Read more »

Project Euler-Problem 38

November 1, 2011
By

Take the number 192 and multiply it by each of 1, 2, and 3: 192 × 1 = 192 Read More: 450 Words Totally

Read more »