Publications by Ian Duhaylungsod
STAT 54 - FINAL EXAM
Answer: library(readxl) library(rmarkdown) Kolmogorov <- read_excel("D:/COLLEGE 4TH YEAR/2nd SEMESTER/STAT 54 NONPARAMETRIC STATISTICS/FINAL/Kolmogorov.xlsx") paged_table(Kolmogorov) Null Hypothesis : The data comes form the specified distribution. Alternative Hypothesis: At least one value does not match the specifies distribution. mean(Kol...
3689 sym R (11991 sym/83 pcs) 17 img
STAT 56 - FINAL EXAM
1. Describe two (2) research scenarios where cluster analysis may be used as the data analysis strategy. * When a business wants to introduce a new product, it must first determine its target audience. The corporation can discover unique groups of customers that may react differently to the new product by performing a cluster analysis on its c...
6303 sym R (5471 sym/3 pcs)
STAT 56 - Canonical Correlation Analysis
require(ggplot2) Loading required package: ggplot2 require(GGally) Loading required package: GGally Warning: package 'GGally' was built under R version 4.2.3 Registered S3 method overwritten by 'GGally': method from +.gg ggplot2 require(CCA) Loading required package: CCA Warning: package 'CCA' was built under R version 4.2.3 Loading requ...
2119 sym Python (8305 sym/60 pcs) 3 img
STAT 56 - Multivariate Analysis of Variance (MANOVA)
The Theory of MANOVA in R MANOVA stands for Multivariate ANOVA or Multivariate Analysis Of Variance. It’s an extension of regular ANOVA. The general idea is the same, but the MANOVA test has to include at least two dependent variables to analyze differences between multiple groups (factors) of the independent variable. If you only have a sin...
5383 sym R (2925 sym/11 pcs) 3 img
STAT 54 - Logistic Regression
library(aod) Warning: package 'aod' was built under R version 4.2.3 library(ggplot2) library(rmarkdown) Description of the data mydata <- read.csv("https://stats.idre.ucla.edu/stat/data/binary.csv") ## view the first few rows of the data head(mydata) admit gre gpa rank 1 0 380 3.61 3 2 1 660 3.67 3 3 1 800 4.00 1 4 ...
3926 sym R (5738 sym/43 pcs) 1 img
STAT 56 - Discriminant Analysis
Cluster Analysis in R Getting Data mydata <- read_excel("D:/COLLEGE 4TH YEAR/2nd SEMESTER/STAT 56 MULTIVARIATE ANALYSIS/FINAL/mydata.xlsx") paged_table(mydata) str(mydata) tibble [22 × 9] (S3: tbl_df/tbl/data.frame) $ Company : chr [1:22] "Arizona" "Boston" "Central" "Commonwealth" ... $ Fixed_charge: num [1:22] 1.06 0.89 1.43 1.02 1.49...
925 sym R (5210 sym/31 pcs) 13 img
STAT 54 - Friedman Test
Prerequisites # Load the packages library(tidyverse) ── Attaching packages ─────────────────────────────────────── tidyverse 1.3.2 ── ✔ ggplot2 3.4.0 ✔ purrr 0.3.4 ✔ tibble 3.1.7 ✔ dplyr 1.0.9 ✔ tidyr 1.2.1 ✔ stringr 1.4.0 ✔ ...
1645 sym R (3286 sym/20 pcs) 2 img
STAT 54 - MIDTERM EXAM PART 2
# Import the Data library(readxl) Data <- read_excel("D:/COLLEGE 4TH YEAR/2nd SEMESTER/STAT 54 NONPARAMETRIC STATISTICS/MIDTERM/MIDTERM PART 2/Data.xlsx") New names: • `` -> `...51` • `` -> `...89` • `` -> `...96` paged_table(Data) 1. What is the socio- demographic profile of the respondents in terms of: 1.1 Age str(Data$Age) num [1...
3240 sym R (23268 sym/174 pcs)
STAT 56 - Cluster Analysis
Required packages library(factoextra) Warning: package 'factoextra' was built under R version 4.2.3 Loading required package: ggplot2 Welcome! Want to learn more? See two factoextra-related books at https://goo.gl/ve3WBa Data preparation # Load and scale the dataset data("USArrests") df <- scale(USArrests) head(df) Murder Assau...
156 sym R (7053 sym/26 pcs) 9 img
STAT 56 - Exploratory Factor Analysis in R
Data Overview # Dataset url <- "https://raw.githubusercontent.com/housecricket/data/main/efa/sample1.csv" data_survey <- read.csv(url, sep = ",") Describing the data describe(data_survey) vars n mean sd median trimmed mad min max range skew kurtosis ID 1 259 130.00 74.91 130 130.00 96.37 1 259 258 0.00 -1.21 KM1 ...
634 sym R (10678 sym/38 pcs) 4 img