Publications by Ryan OHara

Final

20.12.2023

Question 1. Mean = 100 Population SD = 16 mu <- 100 SD <- 16 1 - pnorm(q = 110, mean = 100, sd = 16) ## [1] 0.2659855 A. Probability Statement: \(P(X \ge 110) | \mu = 110, \sigma = 16)\) The Probability a randomly selected person for Jury Duty has an IQ of 110 or higher is about 26.6%. \(P(\overline{x} \ge 110 | n = 12, \mu = 100, \sigma = 1...

6621 sym R (11025 sym/96 pcs)

Document

19.12.2023

library(dplyr) ## ## Attaching package: 'dplyr' ## The following objects are masked from 'package:stats': ## ## filter, lag ## The following objects are masked from 'package:base': ## ## intersect, setdiff, setequal, union #For the logistic model we will use the titanic data set and predict survival #import the dataset library(re...

4698 sym R (5618 sym/31 pcs) 1 img

Homework5

12.12.2023

# Clear the workspace rm(list = ls()) # Clear environment gc() # Clear unused memory ## used (Mb) gc trigger (Mb) max used (Mb) ## Ncells 522197 27.9 1161798 62.1 660385 35.3 ## Vcells 952337 7.3 8388608 64.0 1769489 13.6 #Import the data library(readr) library(stargazer) ## ## Please cite as: ## Hlavac,...

11360 sym R (6903 sym/63 pcs) 21 img

HW5_new

12.12.2023

# Clear the workspace rm(list = ls()) # Clear environment gc() # Clear unused memory ## used (Mb) gc trigger (Mb) max used (Mb) ## Ncells 523999 28.0 1166947 62.4 660385 35.3 ## Vcells 956771 7.3 8388608 64.0 1769489 13.6 #Import the data library(readr) library(stargazer) ## ## Please cite as: ## Hlavac,...

11367 sym R (6903 sym/63 pcs) 21 img

Discussion14_take2

12.12.2023

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(dplyr) ## ## Attaching package: 'dplyr' ## The following objects are masked from 'package:stats': ## ## filter, lag ## The...

6599 sym R (5480 sym/21 pcs) 6 img

Discussion14_

12.12.2023

Get the Data 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(dplyr) ## ## Attaching package: 'dplyr' ## The following objects are masked from 'package:stats': ## ## filte...

6657 sym R (5480 sym/21 pcs) 6 img

Discussion14

12.12.2023

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(dplyr) ## ## Attaching package: 'dplyr' ## The following objects are masked from 'package:stats': ## ## filter, lag ## The...

5780 sym R (5480 sym/21 pcs) 6 img

Software Tools - HW5

08.12.2023

Part 1: Sine #?sin() - this tells us the function works in radians. So we should also work in radians radian <- function(x){ return(x * pi / 180) } sine_function <- function(x){ result <- x next_term <- x i <- 3 sign <- -1 term_number <- 2 while(abs(next_term) > .000000001){ next_term <- next_term * (-(x^2)) / (i * ...

28 sym

Discussion13 New

05.12.2023

Clear the console and load packages. rm(list = ls()) #clear environment and remove all files from the workspace gc() #clear the unused memory ## used (Mb) gc trigger (Mb) max used (Mb) ## Ncells 523288 28.0 1164915 62.3 660385 35.3 ## Vcells 952807 7.3 8388608 64.0 1769491 13.6 library(dplyr) ## ## Attaching package: 'dpl...

2151 sym R (4333 sym/27 pcs) 1 img

Discussion13

04.12.2023

Clear the console and load packages. rm(list = ls()) #clear environment and remove all files from the workspace gc() #clear the unused memory ## used (Mb) gc trigger (Mb) max used (Mb) ## Ncells 523261 28.0 1164838 62.3 660385 35.3 ## Vcells 952741 7.3 8388608 64.0 1769491 13.6 library(dplyr) ## ## Attaching package: 'dpl...

2145 sym R (3104 sym/21 pcs) 1 img