Publications by haidingluo
Document
Discussion 15 Haiding Luo 2023 12 18 1. Implement the logistic regression on any dataset of your choice, and interpret your coefficients. Tell us why you should not run a multivariate regression. head(cars) ## speed dist ## 1 4 2 ## 2 4 10 ## 3 7 4 ## 4 7 22 ## 5 8 16 ## 6 9 10 str(cars) ## 'data.f...
1550 sym
Publish Document
Discussion 15 Haiding Luo 2023 12 18 1. Implement the logistic regression on any dataset of your choice, and interpret your coefficients. Tell us why you should not run a multivariate regression. head(mtcars) ## mpg cyl disp hp drat wt qsec vs am gear carb ## Mazda RX4 21.0 6 160 110 3.90 2.620 16.46 0 1 ...
2151 sym R (3267 sym/15 pcs) 1 img
Document
Discussion 14 Haiding Luo 2023 12 11 Part 1 library(stargazer) ## ## Please cite as: ## Hlavac, Marek (2022). stargazer: Well-Formatted Regression and Summary Statistics Tables. ## R package version 5.2.3. https://CRAN.R-project.org/package=stargazer library(ggplot2) data <- mtcars stargazer(data, type = "text") ## ## =====================...
2860 sym R (3720 sym/15 pcs) 5 img
Document
Discussion 13 Haiding Luo 2023 11 27 1.Pick any two quantitative variables from a data set that interests you. If you are at a loss, look at the internal R datasets Links to an external site. in base R and choose any. EG df <- cars library(ggplot2) Lebron <- read.csv("C:/Users/pokem/OneDrive/文档/lebron_playoffs.csv") y <- Lebron$pts...
1104 sym R (1150 sym/8 pcs) 1 img
Document
Discussion 12 Haiding Luo 2023 11 27 1.Do a few Google searches and tell us what is correlation (5 lines max). Correlation refers to the degree of mutual relationship between two or more variables. It describes the strength of connection or dependence between variables and can be used to measure the extent to which the change in one variable af...
1407 sym R (10951 sym/14 pcs)
Publish Document
Discussion 12 Haiding Luo 2023 11 27 1.Do a few Google searches and tell us what is correlation (5 lines max). Correlation refers to the degree of mutual relationship between two or more variables. It describes the strength of connection or dependence between variables and can be used to measure the extent to which the change in one variable af...
1896 sym R (10907 sym/14 pcs)
Document
Homework 5 Haiding luo 2023 11 21 1.Using traditional methods, it takes 109 hours to receive a basic driving license. A new license training method using Computer Aided Instruction (CAI) has been proposed. A researcher used the technique with 190 students and observed that they had a mean of 110 hours. Assume the standard deviation is known t...
5986 sym
Document
Discussion 11 Haiding Luo 2023 11 20 install.packages("bea.R", repos = "https://cran.r-project.org") ## 将程序包安装入'C:/Users/pokem/AppData/Local/R/win-library/4.3' ## (因为'lib'没有被指定) ## 程序包'bea.R'打开成功,MD5和检查也通过 ## ## 下载的二进制程序包在 ## C:\Users\pokem\AppData\Local\Temp\RtmpOmjL...
818 sym R (2138 sym/16 pcs) 1 img
DS10
Week 10 Discussion Haiding Luo 2023 11 13 Part 1. library(ggplot2) x <- seq(-5, 5, length.out = 150) data_normal <- data.frame(x = x, y = dnorm(x), distribution = 'Normal') data_2 <- data.frame(x = x, y = dt(x, df = 2), distribution = 't (df=2)') data_5 <- data.frame(x = x, y = dt(x, df = 5), distribution = 't (df=5)') data_15 <- data.frame...
777 sym R (1430 sym/2 pcs) 2 img
DS8
DS 8 Haiding Luo 2023 11 6 I. SAMPLING METHODOLOGIES 1. Probability sampling is a random sampling method in which each unit in the population has a known or calculable probability of being selected into the sample. Due to its randomness, probability sampling provides a higher chance of generating a well-representative sample that better reflec...
3542 sym R (1742 sym/21 pcs) 1 img