Freddie_Mac_PMMS.svg


Summary

Description
English: Freddie Mac weekly Primary Mortgage Market Survey (PMMS) from April 1971 to March 2024, showing 30-Yr FRM, 15-Yr FRM, and 5/1 ARMs. Source: https://www.freddiemac.com/pmms
Date
Source Own work
Author Semper Exploro

Source

# packages
library(tidyverse)

# read pmms data
df <- read_csv("PMMS_history.csv")

# make date into date format
df <- df %>%
  mutate(date = as.Date(date, format = "%m/%d/%Y"))

# arrange data in tidy format
df <- df %>%
  select(date, pmms30, pmms15, pmms51) %>%
  rename("30-Yr FRM" = 2, "15-Yr FRM" = 3, "5/1 ARM" = 4) %>%
  pivot_longer(-date, names_to = "rate_type", values_to = "rate_value")
 
# generate line plot for rates
df %>%
  ggplot(aes(x = date, y = rate_value/100, color = rate_type)) +
  geom_line() +
  scale_x_date(date_labels = "%Y", date_breaks = "8 years") +
  scale_y_continuous(labels = scales::percent) +
  labs(title = "Primary Mortgage Market Survey (PMMS)",
       subtitle = "U.S. Weekly Averages since April 1971",
       caption = "Source: Freddie Mac",
       x = "", y = "", color = "") +
  theme_bw() +
  theme(text = element_text(family = "serif"),
        plot.title = element_text(hjust = 0.5),
        plot.subtitle = element_text(hjust = 0.5),
        legend.position = c(.88,.93),
        legend.background=element_blank())

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.

Captions

Freddie Mac Primary Mortgage Market Survey (PMMS)

Items portrayed in this file

depicts

1 April 2024

image/svg+xml