Monthly Archives: July 2012

Trend and Spatial Pattern of Poverty in the Philippines

July 9, 2012
By
Trend and Spatial Pattern of Poverty in the Philippines

In a teaching demo that I have conducted, I discussed on how R can be used to analyze trends and spatial pattern of poverty incidence in the Philippines. Playing on the data I got from the National Statistical Coordination Board below is what I got.&...

Read more »

leaf area measuring — R package “EBImage”

July 9, 2012
By
leaf area measuring — R package “EBImage”

Besides microscopic images in our routine, common photos are frequently taken to measure quantitative plant features, such as leaf area, root length, branch numbers, etc. Scientific software is available for manual processing. For example, to measure the root length, one need to use the … Continue reading →

Read more »

Network Visualization of Key Driver Analysis

July 8, 2012
By
Network Visualization of Key Driver Analysis

Whatever happened to those evaluations that your airline asked you to complete after taking a flight? They ask you for a number of ratings about buying your ticket, attributes of the plane, the service you received, and if you were satisfied, if you wo...

Read more »

Bubble Plots (ggplot2)

July 8, 2012
By
Bubble Plots (ggplot2)

1 Introduction Rarely have I seen a three dimension graph including time, value, and volatility. It is essenti

Read more »

New package RcppCNPy with release 0.1.0 (and 0.0.1 earlier last week)

A few days ago I had blogged about getting NumPy data in R by using a simple converter script. That works fine, but it is a little annoying to have to write an entire file only to read from it again. So I kept looking around for a better solution---and soon found the cnpy library by Carl Rogers which provides simple C++...

Read more »

Representation of numerical NA’s in R and the 1954 enigma

July 8, 2012
By
Representation of numerical NA’s in R and the 1954 enigma

I've always wondered how exactly the missing value (NA) in R is represented under the hood. Last weekend I was working on a little project that gave me enough excuse to spend some time on finding this out. So, I … Continue reading →

Read more »

Fitting a dynamic model, and determining the number of parameters that can be fitted.

July 8, 2012
By
Fitting a dynamic model, and determining the number of parameters that can be fitted.

Let's suppose that we have the same dynamic model we presented before - that is, the Lorentz system of differential equations. Remember? In order to perform a fitting we need to define an objective function of sort: this will then be minimised. Now,...

Read more »

Universal portfolio, part 7

July 7, 2012
By
Universal portfolio, part 7

After reproducing all original figures and tables from Universal Portfolios, R coupled with modern processors allows to perform some more analysis.First we calculate the final wealth of the universal portfolio for all possible pairs of stocks, and...

Read more »

SMS analysis (coming from an Android smartphone or an IPhone)

July 7, 2012
By
SMS analysis (coming from an Android smartphone or an IPhone)

At first, this post was intended to describe how to manipulate dates with R but, as the idea was coming from the question of one of my students who wanted to analyze his SMS, I thought that I might as well also explain the whole analysis process... Using my new smartphone (that I started to

Read more »

The Actuary Puzzle 508 – Square numbers

The Actuary Puzzle 508 – Square numbers

The Actuary Puzzle 508 - Square numbers Author: Matt Malin From the puzzle pages of The Actuary June 2012, I attempt to solve the following, making use of R:This square contains exactly 21 smaller squares. Each of these smaller squares has sides of integer length, with no two smaller squares having sides of the same length. Can you find a solution for...

Read more »