Blog Archives

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 »