Publications by Ian Duhaylungsod

STAT 56 - MIDTERM EXAM

21.04.2023

# Import the data library(readxl) PCAdata <- read_excel("D:/COLLEGE 4TH YEAR/2nd SEMESTER/STAT 56 MULTIVARIATE ANALYSIS/MIDTERM/PCAdata.xlsx") paged_table(PCAdata) 1. Provide the output of the standardized data (just the first 10 rows). standardized <- as.data.frame(scale(PCAdata[2:10])) paged_table(standardized) 2. Provide the correlation ...

1927 sym R (21490 sym/30 pcs) 5 img

STAT 56 - Additional Activity for Factor Analysis

21.04.2023

Data Overview # Dataset library(base) places <- read.table("C:/Users/63906/Downloads/places.txt") paged_table(places) Describing the data A <- describe(places) paged_table(A) Use the dim function to retrieve the dimension of the dataset. dim(places) [1] 329 10 Cleaning data In our data frame, we have a V10 variable in the last column. So, ...

1168 sym R (5026 sym/27 pcs) 4 img

STAT 56 - ACTIVITY 2

25.03.2023

We will use the Places Rated Almanac data (Boyer and Savageau) which rates 329 communities according to nine criteria: 1. Climate and Terrain 2. Housing 3. Health Care & Environment 4. Crime 5. Transportation 6. Education 7. The Arts 8. Recreation 9. Economics Principal Component Analysis library(base) places <- read.table("C:/Users/639...

901 sym R (4785 sym/15 pcs) 2 img

STAT 56 - ACTIVITY 1 Using R for Multivariate Analysis

28.02.2023

Using R for Multivariate Analysis Reading Multivariate Analysis Data into R wine <- read.table("http://archive.ics.uci.edu/ml/machine-learning-databases/wine/wine.data", sep=",") wine Plotting Multivariate Data A Matrix Scatterplot a<-wine[2:6] paged_table(a) scatterplotMatrix(wine[2:6]) A Scatterplot with the Data Points Labelled...

2369 sym Python (51222 sym/103 pcs) 9 img

Exercise 2 (Jica Data) - STAT 55

23.09.2022

Data ## Warning: package 'tidyverse' was built under R version 4.2.1 ## ── Attaching packages ─────────────────────────────────────── tidyverse 1.3.2 ── ## ✔ ggplot2 3.3.6 ✔ purrr 0.3.4 ## ✔ tibble 3.1.7 ✔ dplyr 1.0.9 ## ✔ tidyr 1.2....

897 sym Python (31415 sym/13 pcs) 8 img

Exercise 3 (Paired t-test) - STAT 55

27.09.2022

ICT training data First, create before and after as objects containing the scores of ICT training. before <- c(12.2, 14.6, 13.4, 11.2, 12.7, 10.4, 15.8, 13.9, 9.5, 14.2) after <- c(13.5, 15.2, 13.6, 12.8, 13.7, 11.3, 16.5, 13.4, 8.7, 14.6) Now, create a data matrix using data.frame() function. Use objects before and after as created earlier to...

3451 sym R (4365 sym/21 pcs) 2 img

Exercise 4 (Checking of Assumptions using T-test) - STAT 55

27.09.2022

There are different types of tests that can be utilized to assess the equality of variances. F-test:- Used for two groups variance comparison. Data must be normally distributed. Bartlett’s test:- Used for two or more groups variance comparison. Data must be normally distributed. Levene’s test:- An alternative to Bartlett’s test for non...

2126 sym

EXERCISE 5 (One-way ANOVA) - STAT 55

27.09.2022

We’ll use the PlantGrowth data set that comes with R. It provides the weight of plants produced under two distinct treatment conditions and a control condition. data <- PlantGrowth We utilize the function sample n() [in the dplyr package] to get a sense of how the data looks. set.seed(123) dplyr::sample_n(data, 10) weight group 1 5.8...

5193 sym R (5388 sym/66 pcs) 6 img

MIDTERM EXAM IN EXPERIMENTAL DESIGN

29.11.2022

Question 1: A COVID frontliner wants to estimate the average amount that a resident in Maramag would donate to COVID affected families in Maramag. Twenty residents were randomly selected from the Municipality of Maramag. The 20 randomly residents were contacted by telephone and asked how much they would be willing to donate. Their responses a...

4215 sym R (5775 sym/56 pcs) 3 img

MIDTERM EXAM IN EXPERIMENTAL DESIGN

29.11.2022

Question 1: A COVID frontliner wants to estimate the average amount that a resident in Maramag would donate to COVID affected families in Maramag. Twenty residents were randomly selected from the Municipality of Maramag. The 20 randomly residents were contacted by telephone and asked how much they would be willing to donate. Their responses a...

4215 sym R (6873 sym/56 pcs) 3 img