Publications by Andrew Des Marais
Mock Quiz 1
Use the given code below to answer the questions. Q1 Get Walmart stock prices, instead of Apple. Hint: Insert a new code chunk below and type in the code, using the tq_get() function above. Replace the ticker symbol for Walmart. You may find the ticker symbol for Microsoft from Yahoo Finance. ## # A tibble: 1,029 x 7 ## date open high...
1835 sym R (1520 sym/2 pcs) 1 img
My First Publication
Q1 What is R? This is my answer Q2 What is RStudio? This is my answer. Q3 What is R packages? Hint: Type your answer in bold. Note: For help with RMarkdown syntax, go Help > Cheatsheets > R Markdown Reference Guide. This is my answer. Q4 Add code summary(cars) ## speed dist ## Min. : 4.0 Min. : 2.00 ## 1st Qu.:...
260 sym R (262 sym/2 pcs)
Quiz 2c
In this exercise you will learn to plot data using the ggplot2 package. To answer the questions below, use Chapter 4.3 Categorical vs. Quantitative Data Visualization with R. Q1 Plot the distribution of daily returns by stock using kernel density plots. Hint: See the code in 4.3.2 Grouped kernel density plots. Q2 Plot the distribution of daily...
1706 sym 5 img
Quiz 2
# Load packages library(tidyquant) ## Loading required package: lubridate ## ## Attaching package: 'lubridate' ## The following object is masked from 'package:base': ## ## date ## Loading required package: PerformanceAnalytics ## Loading required package: xts ## Loading required package: zoo ## ## Attaching package: 'zoo' ## The following ...
2060 sym R (4548 sym/29 pcs) 3 img
Reading on Regression
Instructions You must follow the instructions below to get credits for this assignment. Read the document (example of regression analysis) posted in Moodle before answering the following questions. Write in your own words. Multiple identical answers will get zero. Elaborate your answer. One or two sentence answers won’t get credit. Make sure t...
7001 sym
Quiz 4
Make sure to include the unit of the values whenever appropriate. Q1 Build a regression model to predict life expectancy using gdp per capita. Hint: The variables are available in the gapminder data set from the gapminder package. Note that the data set and package both have the same name, gapminder. library(tidyverse) options(scipen=999) data(...
3330 sym R (1793 sym/2 pcs)