Publications by lukewm2, section 4UG

lukewm2 hw 10

06.05.2021

Question 1 library(faraway) ## Warning: package 'faraway' was built under R version 3.6.3 data(sat) sat ## expend ratio salary takers verbal math total ## Alabama 4.405 17.2 31.144 8 491 538 1029 ## Alaska 8.963 17.6 47.951 47 445 489 934 ## Arizona 4.778 19.3 32.175 27 448...

1530 sym R (9360 sym/40 pcs) 4 img

homework 10

06.05.2021

Question 1 library(faraway) ## Warning: package 'faraway' was built under R version 3.6.3 data(sat) sat ## expend ratio salary takers verbal math total ## Alabama 4.405 17.2 31.144 8 491 538 1029 ## Alaska 8.963 17.6 47.951 47 445 489 934 ## Arizona 4.778 19.3 32.175 27 448...

1544 sym R (9360 sym/40 pcs) 4 img

homework 10

06.05.2021

Question 1 library(faraway) ## Warning: package 'faraway' was built under R version 3.6.3 data(sat) sat ## expend ratio salary takers verbal math total ## Alabama 4.405 17.2 31.144 8 491 538 1029 ## Alaska 8.963 17.6 47.951 47 445 489 934 ## Arizona 4.778 19.3 32.175 27 448...

1544 sym R (9360 sym/40 pcs) 4 img

lukewm2 hw 9

26.04.2021

Part b and d y <- c(20, 24, 27, 26, 33, 27, 38, 32, 39, 34, 22, 24, 19, 26, 29) x <- c(5, 4, 7, 6, 8, 4, 6, 5, 7, 3, 2, 3, 4, 5, 6) v1 <- c(rep(1, 5), rep(0, 10)) v2 <- c(rep(0, 5), rep(1, 5), rep(0, 5)) fit <- lm(y ~ v1 + v2 + x) summary(fit) ## ## Call: ## lm(formula = y ~ v1 + v2 + x) ## ## Residuals: ## Min 1Q Median ...

59 sym R (2249 sym/7 pcs) 1 img

Homework01_lukewm2

31.08.2021

set.seed(6733) Question 1 Part (a) Here we generate a random sample of 100 random variables with the parameters of the normal distribution. X_i is the set of random variables. Then I defined s as the matrix which represents a random sample of 10 of the random variables. x_i = rnorm(100, 3, 2) s = matrix(x_i[1:10], 10, 1) s ## [,1] ...

2450 sym R (1813 sym/24 pcs) 1 img