knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

tsfe

This package contains templates for reports, and functions and workshops using in Time series financial econometrics taught by Barry Quinn at Queen's Management School.

Installation

remotes::install_github("barryquinn1/tsfe")

And the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("barryquinn1/tsfe")

Example

This is a basic example which shows you how to solve a common problem:

library(tsfe)
## basic example code
data("ftse350")  # This is a 2MB file so might take some time to initially load
summary(ftse350)

Tutorials

You can start the tutorials in one of two ways. First, in RStudio 1.3 or later, you will find the ATI tutorials listed in the "Tutorial" tab in the top-right pane (by default). Find a tutorial and click "Run Tutorial" to get started. Second, you can run any tutorial from the R console by typing the following line:

learnr::run_tutorial("Workshop2","tsfe")

This should bring up a tutorial in your default web browser. You can see the full list of tutorials by running:

learnr::run_tutorial(package = "tsfe")

If you would like to access the raw RMarkdown code which created these tutorials you can do so here

Project Report

This package also includes a RMarkdown template for use in the project report. Go to File>New>R Markdown... and choose from From Template then project-report. There are four sections in the report

The marks are allocated equally to each section.

Indicative marking scheme

library(tidyverse)
readRDS("~/Dropbox/Teaching/TSFE/ts_stats/rubric.rds")-> out
out %>% knitr::kable() %>% kableExtra::kable_paper()

Datasets

This package also includes dataset used in the course



barryquinn1/tsfe documentation built on Jan. 23, 2025, 2:09 a.m.