This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| title: "Is-Behavior-Change-Happening" | |
| author: "frank-corrigan" | |
| date: "3/9/2022" | |
| output: html_document | |
| --- | |
| ```{r setup, include=FALSE} | |
| knitr::opts_chunk$set(echo = TRUE) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| title: "Marathon-Insights" | |
| author: "frank-corrigan" | |
| date: "3/1/2022" | |
| output: html_document | |
| --- | |
| ```{r setup, include=FALSE} | |
| knitr::opts_chunk$set(echo = TRUE) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # toy simulation to determine how likely or | |
| # unlikely the poll results from blog post | |
| # are (Do you plan to relocate in 2022?) | |
| # load packages | |
| library(dplyr) | |
| library(ggplot2) | |
| # Single Instance ---- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from tabula.io import read_pdf | |
| import pandas as pd | |
| import matplotlib.pyplot as plt | |
| # set path to file | |
| pdf_path = "Container-Vessels-In-Port.pdf" | |
| # creates a python list, each page is a list item stored as pandas df | |
| dfs = read_pdf(pdf_path, stream=True, pages='2-10') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # purpose: use changepoint algorithm to determine | |
| # appropriate history range for statistical control charts | |
| # 0.0 Packages ---- | |
| library(ggplot2) # for visualizations | |
| library(gridExtra) # for plotting charts together | |
| library(lubridate) # for data manipulations | |
| library(tidyverse) # for piping data | |
| library(reshape2) # for wide to long data transform | |
| library(changepoint) # for finding change points in ts data |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # purpose: use changepoint algorithm to benchmark | |
| # Piketty's time buckets for inflationary periods | |
| # 0.0 Packages ---- | |
| library(ggplot2) # for visualizations | |
| library(gridExtra) # for plotting charts together | |
| library(lubridate) # for data manipulations | |
| library(tidyverse) # for piping data | |
| library(reshape2) # for wide to long data transform | |
| library(changepoint) # for finding change points in ts data |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # packages | |
| library(syuzhet) | |
| library(dplyr) | |
| library(ggplot2) | |
| # subset of text (to start) | |
| limiting_beliefs <- "I never had a plan for my career and now it’s too late. | |
| I wanted to be X, but didn’t start early enough in life and now it’s too late. | |
| I go to work to support my family, not to be fulfilled. | |
| I can’t make enough money doing a job I want to do. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # purpose: support article on scenario planning with monte carlo | |
| # caution: this is a learning script (for me, and you) | |
| # read packages | |
| library(dplyr) | |
| library(ggplot2) | |
| library(tidyr) | |
| library(EnvStats) | |
| library(MASS) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| library(tidyverse) | |
| library(ggplot2) | |
| # create holder data frame | |
| data <- data.frame(magic_number=numeric(), equity_fraction=numeric(), | |
| mgmt_span=numeric(), ps_fit=numeric(), | |
| salary_growth=numeric()) | |
| # create ranges for variables | |
| s_set <- 1:20 |