var <- "JN.1"
today_date <- Sys.Date()In [1]:
Key Findings
- Current data reflects a mixture of JN.1 descendents as the likely near term variants.
- Globally no other variants with unusual characteristics have been identified as having unusual growth.
- Some other point
Situation Update Details
- Based on what - XYZ(?), JN.1 and descendents continue to dominate. Some recombinations from JN.1 and other BA.5 variants are being monitoredtracked, but have yet to show significant growth relative other variants.
- Together this diversity suggests steady evolution against general population immunity with no indications of a variant driven wave of COVID-19 infections.
- As of 2024-11-24, there were X samples from MM/DD/YYYY - MM/DD/YYYY, some comment on trend
- Some text here about image one. There is this variant that’s here
- Some text about image two
- Image 3 has this
- Findings from a site’s analysis of national data
In [3]:
# Here you can write code that can be used as inline text
# See the variant proportions values below in the summary
# Those values are not hard-coded/written. They will be automatically updated
# in the text whenever there is new data/a new render
# wa_prop <- paste0(50,"%")
# ga_prop <- 60
# ne_prop <- 50
# va_prop <- paste0(60,"%")
# Load necessary libraries
set.seed(123)
library(dplyr)
Attaching package: 'dplyr'
The following objects are masked from 'package:stats':
filter, lag
The following objects are masked from 'package:base':
intersect, setdiff, setequal, union
# Generate fake data for COVID-19 variants over 100 days
dates <- seq.Date(from = as.Date("2023-01-01"), by = "days", length.out = 100)
# Create different variants with changing proportions over time
variants <- c("Alpha", "Delta", "Omicron")
# Simulate variant proportions that change over time (e.g., Omicron increases)
variant_proportions <- data.frame(
Date = rep(dates, each = length(variants)),
Variant = rep(variants, times = length(dates)),
Proportion = c(
seq(0.3, 0.1, length.out = length(dates)), # Alpha
seq(0.4, 0.2, length.out = length(dates)), # Delta
seq(0.3, 0.7, length.out = length(dates)) # Omicron
)
)
# Create counts based on proportions, assume total cases per day is around 100
variant_proportions <- variant_proportions %>%
mutate(Count = round(Proportion * 100))
# Show a preview of the data
head(variant_proportions) Date Variant Proportion Count
1 2023-01-01 Alpha 0.3000000 30
2 2023-01-01 Delta 0.2979798 30
3 2023-01-01 Omicron 0.2959596 30
4 2023-01-02 Alpha 0.2939394 29
5 2023-01-02 Delta 0.2919192 29
6 2023-01-02 Omicron 0.2898990 29
# Reshape the data to wide format for modeling using pivot_wider
variant_data_wide <- variant_proportions %>%
tidyr::pivot_wider(names_from = Variant, values_from = Count, values_fill = list(Count = 0))
# Fit a multinomial logistic regression model to estimate the variant proportions over time
# We will use the "nnet" package for multinomial regression
library(nnet)
# Create a model where the response is the counts for each variant and the predictor is time (date)
model <- multinom(cbind(Alpha, Delta, Omicron) ~ Date, data = variant_data_wide)# weights: 9 (4 variable)
initial value 10986.122887
final value 10985.946043
converged
# Summarize the model
# summary(model)
# Predict variant proportions
predictions <- predict(model, type = "probs")
predicted_data <- data.frame(Date = dates, Alpha = predictions[,1], Delta = predictions[,2], Omicron = predictions[,3])
# Show predictions for the first few days
# head(predicted_data)
wa_prop <- predicted_data %>%
arrange(desc(Date)) %>%
slice(1) %>%
pull(Delta) %>%
scales::percent(., accuracy = 0.01)
ga_prop <- predicted_data %>%
arrange(desc(Date)) %>%
slice(1) %>%
pull(Omicron) %>%
scales::percent(., accuracy = 0.01)
ne_prop <- predicted_data %>%
arrange(desc(Date)) %>%
slice(1) %>%
pull(Omicron) %>%
scales::percent(., accuracy = 0.01)
va_prop <- predicted_data %>%
arrange(desc(Date)) %>%
slice(1) %>%
pull(Delta) %>%
scales::percent(., accuracy = 0.01)Site Summaries
- Washington State Department of Health - Alpha variant proportion is 33.50%
- Georgia Department of Public Health probablity of detection: 33.38% and the consensus genomes are uploaded to public repositories like GISAID and GenBank.
- Massachusetts Department of Health prop - 33.38%
- Virginia Deparment of Health - 33.50%
Citations
This is a simple placeholder for the manuscript’s main document (Knuth 1984).
Knuth, Donald E. 1984. “Literate Programming.” Comput. J. 27 (2): 97–111. https://doi.org/10.1093/comjnl/27.2.97.


