Publications by DEVINE FATHY MAE S. GRINO

Cluster Analysis in R (Discriminant Analysis)

21.05.2024

library(factoextra) ## Warning: package 'factoextra' was built under R version 4.3.3 ## Loading required package: ggplot2 ## Welcome! Want to learn more? See two factoextra-related books at https://goo.gl/ve3WBa mydata <- read.csv("D:/stat/Data.txt", header=T) str(mydata) ## 'data.frame': 22 obs. of 9 variables: ## $ Company : chr "Ariz...

1833 sym R (5450 sym/36 pcs) 13 img

Cluster Analysis

18.05.2024

library(factoextra) ## Warning: package 'factoextra' was built under R version 4.3.3 ## Loading required package: ggplot2 ## Welcome! Want to learn more? See two factoextra-related books at https://goo.gl/ve3WBa Data preparation The built-in R dataset USArrests is used: # Load and scale the dataset data("USArrests") df <- scale(USArrests) head(...

574 sym R (7514 sym/26 pcs) 9 img

Canonical Correlation Analysis

18.05.2024

library(ggplot2) library(GGally) ## Warning: package 'GGally' was built under R version 4.3.3 ## Registered S3 method overwritten by 'GGally': ## method from ## +.gg ggplot2 library(CCA) ## Warning: package 'CCA' was built under R version 4.3.3 ## Loading required package: fda ## Warning: package 'fda' was built under R version 4.3.3 ##...

3723 sym R (8673 sym/56 pcs) 2 img

EXERCISE 1-8

16.03.2024

knitr::opts_chunk$set(echo = TRUE, comment = "", message = FALSE) Lesson 1: Measures of Central Tendency, Dispersion and Association Warning: package 'readxl' was built under R version 4.3.3 Warning: package 'dplyr' was built under R version 4.3.3 # A tibble: 737 × 5 calcium iron protein `vitamin A` `vitamin C` <dbl> <dbl> <dbl> ...

1044 sym R (38971 sym/122 pcs) 12 img 13 tbl

PROBLEM SET 4

18.12.2023

Introduction to Regression in R Simple Regression [Regression analysis is a statistical tool used to explain the relationship between a response (dependent, outcome) variable as a function of one or more predictor (independent) variables.] [In a linear regression model we assume this relationship can be explained with a linear function.] [a si...

7069 sym 15 img

Laboratory Activity 5

15.12.2023

1. Problem and Data Set The researcher is conducting an experiment to understand the joint effects of temperature and humidity on the growth of a specific plant species. The temperature has two levels: Low (20°C) and High (30°C), while humidity also has two levels: Low (40%) and High (80%). Each combination of temperature and humidity will be...

3968 sym R (5717 sym/16 pcs) 2 img 2 tbl

PROBLEM SET 7

12.12.2023

What is the minimum age? Answer: \(30\) Min. 1st Qu. Median Mean 3rd Qu. Max. 30.00 43.00 50.00 49.27 57.00 60.00 In the variable “age”, group the “age” variable into two groups, with atmost 50 years and more than 50 years old. How many of them with at least 50 years old? Answer: \(69\) Socio-Demographic Profi...

3293 sym 2 img

PROBLEM SET 3

09.12.2023

Page 52 Page 58 Page 72 Page 80 Page 91 Page 100 Page 104 Page 115 Page 124 Page 52 Exercise Test whether the slope coefficient for the father.son data is different from zero (father as predictor, son as outcome). Call: lm(formula = sheight ~ fheight, data = father.son) Residuals: Min 1Q Median 3Q Max -8.8772 -1.5144 -...

13801 sym 13 img

PROBLEM SET 6

07.12.2023

library(aod) library(ggplot2) Examples Example 1. Suppose that we are interested in the factors that influence whether a political candidate wins an election. The outcome (response) variable is binary (0/1); win or lose. The predictor variables of interest are the amount of money spent on the campaign, the amount of time spent campaigning neg...

11392 sym R (5425 sym/40 pcs) 1 img

Laboratory Activity 4

06.12.2023

An experiment was conducted to determine if either firing temperature or furnace position affects the baked density of a carbon anode. The data are shown below. 1. Write your experimental question. Use α=0.05. Is there a significant effect of firing temperature, furnace position and the interaction of firing temperature and furnace position in...

3450 sym Python (1824 sym/16 pcs) 4 img 1 tbl