Publications by Hailey Botelho
My First Publication
Q1 What is R? R is the engine for this program and is a programming language. Q2 What is RStudio? R studio is the interface and the place work is done to a file. Q3 What is R packages? R packages are the apps and extra files you can download to enhance your software. Hint: Type your answer in bold. Note: For help with RMarkdown syntax, go Help ...
442 sym
Quiz1 Mock
Use the given code below to answer the questions. ## Load package library(tidyverse) # for cleaning, plotting, etc library(tidyquant) # for financial analysis ## Import data stocks <- tq_get("AAPL", get = "stock.prices", from = "2016-01-01") stocks ## Visualize stocks %>% ggplot(aes(x = date, y = close)) + geom_line() Q1 Get Walmart stock ...
1757 sym R (1310 sym/4 pcs) 1 img
Quiz 1
Use the given code below to answer the questions. ## Load package library(tidyverse) # for cleaning, plotting, etc library(tidyquant) # for financial analysis ## Import data stocks <- tq_get("AAPL", get = "stock.prices", from = "2016-01-01") stocks ## Visualize stocks %>% ggplot(aes(x = date, y = adjusted)) + geom_line() Q1 Import Netflix ...
2151 sym R (1514 sym/5 pcs) 1 img
Correlation
In this exercise you will learn to visualize the pairwise relationships between a set of quantitative variables. To this end, you will make your own note of 8.1 Correlation plots from Data Visualization with R. Q1 What factors have strong positve correlation with home price? The living area and number of bathrooms have a strong postive correlati...
1917 sym 2 img
Quiz 3
The data set is from a case-control study of smoking and Alzheimer’s disease. The data set has two variables of main interest: smoking a factor with four levels “None”, “<10”, “10-20”, and “>20” (cigarettes per day) disease a factor with three levels “Alzheimer”, “Other dementias”, and “Other diagnoses”. Q1 Describ...
2632 sym 3 img
Tidytuesday
Choose one of David Robinson’s tidytuesday screencasts, watch the video, and summarise. https://www.youtube.com/channel/UCeiiqmVK07qhY-wvg3IZiZQ Instructions You must follow the instructions below to get credits for this assignment. Read the document posted in Moodle before answering the following questions. Write in your own words. Multiple ...
5066 sym R (6254 sym/9 pcs) 7 img
My First R Markdown
R Markdown This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com. When you click the Knit button a document will be generated that includes both content as well as the output of any embedded R code chunks within t...
594 sym R (262 sym/2 pcs) 1 img
Quiz1-a
Q1 What is R? R is the engine that executes everything. It a computer program language. Q2 What is RStudio? R is the interface to perform coding and work to R. Q3 What is R packages? R packages are a group of functions and data sets. Q4 How about code? summary(cars) ...
268 sym R (13 sym/1 pcs)
Quiz 1
# Load packages library(tidyquant) library(tidyverse) # for count() function # Import S&P500 Stock Index SP500 <- tq_index("SP500") SP500 ## # A tibble: 505 x 8 ## symbol company identifier sedol weight sector shares_held local_currency ## <chr> <chr> <chr> <chr> <dbl> <chr> <dbl> <chr> ## 1 AAPL Appl...
1348 sym R (1701 sym/4 pcs)
Quiz 4
Witht the given stock, conduct the Bollinger Bands analysis by answering the questions below. Q1 Calculate 20-day moving averages and 20-day running standard deviation. Save the result under stock and print it. Hint: Take stock, pipe it to tidyquant::tq_mutate to calculate 20-day moving averages, pipe it to tidyquant::tq_mutate to calculate 20-d...
2855 sym R (68 sym/1 pcs) 1 img