Publications by Juan Carlos Soto

Kruskal-Wallis Test in R

21.11.2024

Introduction The Kruskal-Wallis test is a non-parametric alternative to ANOVA. It tests the null hypothesis that the medians of multiple independent groups are equal. This test is useful when the assumptions of ANOVA (normality and equal variances) are violated. Load necessary libraries library(dplyr) ## ## Attaching package: 'dplyr' ## The f...

857 sym R (2332 sym/15 pcs)

Fractional Factorial in R

21.11.2024

Introduction In this analysis, we use the FrF2 package in R to create and analyze factorial designs with resolution III and IV. We will also explore the relationships between factors and their interactions using visualizations like Half Normal plots and Main Effects plots. Setup and Initialization install.packages(“FrF2”) library(FrF2) ## ...

755 sym R (4956 sym/28 pcs) 4 img

Data Frames in R

21.11.2024

Introduction This document demonstrates basic data manipulation techniques in R, including creating and modifying data frames, assigning row and column names, and changing data types. Code Execution and Explanation Create Two Vectors # Create two numeric vectors var1 <- c(23, 54, 76, 34, 56, 32, 45, 66, 43, 28, 64, 27) var2 <- c(43, 12, 56, 4...

675 sym

Homework_Module5_JCS

25.10.2024

Problem 5.2 - Part(a) # Load necessary library library(GAD) # Hypothetical response values based on the structure of the problem response <- c(1.2, 1.4, 1.3, 1.5, 2.2, 2.4, 2.3, 2.5) # Replace with actual data # Create factors for A and B factor_A <- factor(rep(c("A1", "A2"), each = 4)) # 2 levels for factor A factor_B <- factor(rep(c("B1...

355 sym R (19397 sym/54 pcs) 7 img

Homework-Module 4 Juan Carlos Soto

11.10.2024

Problem 3.23 # Input the data manually Fluid_Type <- factor(rep(1:4, each = 6)) Life <- c(17.6, 18.9, 16.3, 17.4, 20.1, 21.6, # Fluid Type 1 16.9, 15.3, 18.6, 17.1, 19.5, 20.3, # Fluid Type 2 21.4, 23.6, 19.4, 18.5, 20.5, 22.3, # Fluid Type 3 19.3, 21.1, 16.9, 17.5, 18.3, 19.8) # Fluid Type 4 # Combine into ...

1591 sym Python (17802 sym/94 pcs) 8 img

Homework #2 IE43331 -Juan Carlos Soto

27.09.2024

Problem 3.7 c) Perform ANOVA and LSD test # Load necessary library options(repos = c(CRAN = "https://cran.rstudio.com/")) install.packages("agricolae") ## Installing package into 'C:/Users/juank/AppData/Local/R/win-library/4.4' ## (as 'lib' is unspecified) ## package 'agricolae' successfully unpacked and MD5 sums checked ## ## The downloaded...

425 sym R (5910 sym/23 pcs) 5 img

Flipped Assingment 12

21.06.2023

Problem #1 A sample of size n is to be drawn from a population with a known mean of m = 25.4 and a standard deviation of s = 2.8.  Using the Central Limit Theorem a.What is the probability that the average of the n observations is less than 25.3 when … i.n=10? ii.n=25? iii.n=50? # Population parameters mu <- 25.4 sigma <- 2.8 # Sample size n <-...

1230 sym R (2378 sym/23 pcs) 1 img

Flipped Assingment 11

20.06.2023

Descriptive Statistics using R Problem #1 #1. Consider the following 20 samples drawn from a population: 24.7 23.5 14.7 13.4 24.2 25.4 12.1 15.0 19.6 22.9 21.2 18.4 25.0 14.5 14.2 21.8 21.2 15.7 22.6 21.2 data <- c(24.7, 23.5, 14.7, 13.4, 24.2, 25.4, 12.1, 15.0, 19.6, 22.9, 21.2, 18.4, 25.0, 14.5, 14.2, 21.8, 21.2, 15.7, 22.6, 21.2) a)Calcula...

1534 sym 6 img 1 tbl

Flipped Assingment 9

15.06.2023

Discrete Distribution Problem Statement 1 A quality control inspector randomly samples 25 products from a production line and counts the number of defective products in the sample.  Suppose it is known that the probability any one product is defective is 0.12 a.Plot the probability distribution plot(x=0:25,dbinom(x=0:25,size=25,prob=.12)) b. Wha...

2217 sym 8 img