Blog Archives

Entering Data to R

March 30, 2013
By

To enter data into R, two common and easy to use R functions are utilized.The concatenate function, c; and,The data.frame function.The concatenate function, c, is use for combining data points into a single numeric R object. The usage of this function ...

Read more »

Download and Install R in Ubuntu

March 30, 2013
By
Download and Install R in Ubuntu

There are two ways to install R in Ubuntu. One is through the terminal, and the other is through the Ubuntu Software Center.Through TerminalPress Ctrl+Alt+T to open Terminal Then execute sudo apt-get update After that, sudo apt-get install r-baseT...

Read more »

Download and Install R in Windows

March 30, 2013
By

The R statistical package is available at CRAN website. In this site, do the followingClick the Download R for Windows. Then go to install R for the first time in the base subdirectory. And finally download the latest version of R for windows...

Read more »

Experimental Design: Problem Set

June 21, 2012
By
Experimental Design: Problem Set

QUESTIONSThe tensile strength of Portland cement is being studied. Four different mixing techniques can be used economically. The following data have been collected: MixingTechniques Tensile Strength (lb/in­­2) ...

Read more »

My On-Job Training Analytics

May 22, 2012
By
My On-Job Training Analytics

I have been working at Provincial Statistics Office of Tawi-Tawi (Philippines) which was part of the training on my OJT (On-Job Training). One of the requirements of the training is at least 80 hours of services, so I decided to work from April 19 to M...

Read more »

Average Annual Population Growth Rate of Tawi-Tawi

May 19, 2012
By
Average Annual Population Growth Rate of Tawi-Tawi

R Codeslibrary(ggplot2) TawiTawiGrowthRate <- as.numeric(c(2.6, 3.3, 5.9, 1.6, 1.8, 5.5, 5))CensalYear <- c("1948-1960","1960-1970","1970-1980","1980-1990","1990-1995","1995-2000","2000-2007") qplot(CensalYear, TawiTawiGrowthRate, xlab ...

Read more »

Population of Iligan City from 1970 to 2010

May 16, 2012
By
Population of Iligan City from 1970 to 2010

R Codeslibrary(ggplot2)library(grDevices)IliganCity <- c(104493, 118778, 167358, 226568, 273004, 285061, 308046, 322821)CensalYear <- c("1970", "1975", "1980", "1990", "1995", "2000", "2007", "2010")qplot(CensalYear, IliganCity, xlab = expression...

Read more »

Population of Tawi-Tawi from 1903 to 2010

May 16, 2012
By
Population of Tawi-Tawi from 1903 to 2010

R Codeslibrary(ggplot2)library(colorRamps)TawiTawiPop <- c(17000, 45000, 46000, 59000, 79000, 110000, 143000, 195000, 228204, 250718, 322317, 450346, 366550)YearNames <- c("1903", "1918", "1939", "1948", "1960", "1970", "1975", "1...

Read more »

Example: Two Sample t-Test

January 31, 2012
By
Example: Two Sample t-Test

The recovery time (in days) is measured for 10 patients taking a new drug and for 10 different patients taking a placebo. We wish to test the hypothesis that the mean recovery time for patients taking the drug is less than for those taking placebo. The...

Read more »

Example: One Sample t-Test

January 31, 2012
By
Example: One Sample t-Test

Using the stack loss dataset, test the hypothesis that the mean of the stackloss is equal to 20 versus a two-sided alternative. Solution:Codes:Output:Interpretation: With the p-value greater than the level of significance alpha at 0.05, then we la...

Read more »