Publications by Ryan OHara
Final
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
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
# 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
# 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
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_
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
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
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
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
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