Publications by C. Alberto Dorantes Dosamantes, Ph.D.

Workshop 2 - Econometric Models

21.02.2022

1 General directions for this Workshop You will work in RStudio. You can go to the RStudio web site and follow instructions to download the R software and the free version of RStudio. It is strongly recommended to have the latest version of R and RStudio. Once you are in RStudio, do the following. Create an R Notebook document (File -> New File -...

5921 sym R (2323 sym/13 pcs) 2 img

Workshop 1 - Financial Programming

15.02.2022

1 Learning objectives: Understand what a programming language is. Understand the way R manages data: what is an R object, and what are the main (atomic) data classes of R objects. Understand the basic R data structures such as vectors, matrices and data frames. 2 General directions for this Workshop You will work in RStudio. Create an R Notebo...

15695 sym R (2737 sym/67 pcs)

Workshop 1 - Econometric Models

10.02.2022

1 General directions for this Workshop You will work in RStudio. You can go to the RStudio web site and follow instructions to download the R software and the free version of RStudio. It is strongly recommended to have the latest version of R and RStudio. Once you are in RStudio, do the following. Create an R Notebook document (File -> New File -...

12055 sym R (4060 sym/31 pcs) 5 img

Workshop 1 - Financial Econometrics II

16.02.2022

1 General directions for this Workshop You will work in RStudio. Create an R Notebook document (File -> New File -> R Notebook), where you have to write whatever is asked in this workshop. Create an R Notebook document (File -> New File -> R Notebook), where you have to write whatever is asked in this workshop. More specifically, you have to: Re...

10373 sym R (711 sym/12 pcs) 4 img

Workshop 2 - Financial Programming

22.02.2022

1 General directions for this Workshop You will work in RStudio. Create an R Notebook document to write whatever is asked in this workshop. You have to replicate all the steps explained in this workshop, and ALSO you have to do whatever is asked. Any QUESTION or any STEP you need to do will be written in CAPITAL LETTERS. For ANY QUESTION, you hav...

16282 sym R (16637 sym/67 pcs) 1 tbl

Workshop 1 Solution - Financial Programming

22.02.2022

1 Q DATA EXERCISE CREATE A DATA-FRAME WITH THE OPEN AND CLOSE PRICES FOR MICROSOFT STOCK (TSLA) FOR DEC 2021 AND JAN 2022 Name the columns as OPEN and CLOSE for the prices, and name the rows with the names of the months. You have to end up with a data frame with 2 rows and 2 columns. Hints: You can check the monthly prices of Microsoft in Yahoo ...

3053 sym R (1946 sym/40 pcs)

Workshop 1 Solution - Econometric Models

23.02.2022

1 Downloading and visualizing online financial data We start clearing our R environment: rm(list=ls()) # To avoid scientific notation for numbers: options(scipen=999) Now you have to load the package in memory by using the library() function: library(quantmod) Now, we will work with historical data of the market and the stocks we want to analy...

11750 sym R (7736 sym/59 pcs) 13 img

Workshop 3 - Econometric Models

28.02.2022

1 General directions for this Workshop You will work in RStudio. You can go to the RStudio web site and follow instructions to download the R software and the free version of RStudio. It is strongly recommended to have the latest version of R and RStudio. Once you are in RStudio, do the following. Create an R Notebook document (File -> New File -...

5257 sym R (3813 sym/25 pcs) 3 img

Workshop 2 Solution - Financial Programming

01.03.2022

1 Introduction In the following section I describe one or two approaches to solve the challenges of this workshop. Remember that these solutions are not the unique or the best solutions. You can use these solutions as guidelines to keep improving your programming skills. Remember that the only way to learn programming is PRACTICE, PRACTICE AND PR...

5433 sym R (8995 sym/46 pcs)

Workshop 3 Solution - Financial Econometrics II

09.03.2022

1 Hand-on activity We will work with an online dataset that contains sales data of different consumer products. The data was created using real products, but the names of the products were changed due to privacy issues. Download the excel file from a web site: download.file("http://www.apradie.com/ec2004/salesbrands3.xlsx", "salesbrands3.xlsx", m...

15822 sym R (9316 sym/36 pcs) 7 img