Publications by Al-Ahmadgaid Asaad

Measures of Skewness and Kurtosis

10.06.2013

Skewness and kurtosis in R are available in the moments package (to install an R package, click here), and these are:Skewness – skewnessKurtosis – kurtosisExample 1. Mirra is interested in the elapse time (in minutes) she spends on riding a tricycle from home, at Simandagit, to school, MSU-TCTO, Sanga-Sanga for three weeks (exclud...

2063 sym 4 img 2 tbl

Interval Estimation of the Population Mean

14.06.2013

Interval estimation of the population mean can be computed from the functions of the following R packages:stats – contains the t.testTeachingDemos – contains the z.testBSDA – contains the zsum.test and tsum.testThe t.test of the stats package is a student’s t test, and is use when dataset is given. The same case for z.test, bu...

3936 sym

R: Mapping Typhoon Labuyo (Utor) Track

14.10.2013

Inspired by James Cheshire R maps, I tried mapping the track of Typhoon Labuyo (Utor) that by far the strongest one to hit Philippines this year. The data is available at Japan Meteorological Agency site, the 2013 – RSMC Best Track data. The code is available here.Final Output (Click to enlarge)Bonus, the Severe Tropical Storm Auring (Sonamu) p...

726 sym 4 img 1 tbl

R: Mapping Philippine Earthquakes (October 2013)

05.11.2013

Last month, October 15, 2013 around 8:12 am (Philippine Time), a magnitude 7.2 earthquake hit Bohol island, detroying several infrastructures and killing hundreds of residents. The Philippine Institute of Volcanology and Seismology or PhiVolcs recorded more than 3000 aftershocks, but only a fraction of these is available in their Earthquake Bull...

1530 sym 10 img

R: Mapping Super Typhoon Yolanda (Haiyan) Track

24.11.2013

After reading Enrico Tonini post, I decided to map the super typhoon Haiyan track using OpenStreetMap, maptools, and ggplot2. If mapping with googleVis was possible with 13 lines only, that can also be achieved with the packages I used; but because I play with the aesthetic of the map, thus I got more than that. The data was taken from Weather Un...

1295 sym 2 img

R: Explore ARIMA(2, 2, 2) subclass family on Shiny

01.12.2013

I’ve been thinking that it might be better to explore the Box-Jenkins ARIMA (Autoregressive Integrated Moving-Average) three-iterative modelling on Shiny. So here is what I got, this app is intended for ARIMA(2, 2, 2) subclass family only.The app has six tabs, and these are:Historical Plot;Identification;Estimation;Diagnostic; Forecast; andData...

3338 sym 18 img

Python and R: Is Python really faster than R?

30.01.2014

A friend of mine asked me to code the following in R:Generate samples of size 10 from Normal distribution with $\mu$ = 3 and $\sigma^2$ = 5;Compute the $\bar{x}$ and $\bar{x}\mp z_{\alpha/2}\displaystyle\frac{\sigma}{\sqrt{n}}$ using the 95% confidence level;Repeat the process 100 times; thenCompute the percentage of the confidence intervals cont...

1929 sym

R: Animating 2D and 3D plots

13.02.2014

One great package in R is the animation made by Yihui Xie. And just for fun, we are going to explore that. Our aim is to create simple animated 2D and 3D plots. Here is the first one, 2D of courseThe code,It’s a piece of cake right? The function we used for wrapping the plot is saveGIF, this function basically collects all the plots made and us...

1284 sym 6 img

R: Fun with surf3D function

19.02.2014

There is one package that I’ve been longing. A package that will give me the power to manipulate and do any 3D stuffs in R. I tried persp and wireframe, but I find them difficult to use especially on complicated mathematical functions, like doing parametric plots. And I am just frustrated about that, since I envy the 3D graphics of Wolfram Math...

2991 sym 6 img

RUG-Philippines Meetup: Markov Switching Models in R

07.03.2014

To the R users based in the Philippines, there will be upcoming meetup, here are the details:topics: Markov Switching Models in R           by Ohly Santos           How to use the optim function in R            by Joe Brillantesvenue: 9/F Sun Life Centre, 5th Avenue corner Rizal Drive,            Bonifacio Globa...

1256 sym