create_delta_ball_structure: create the delta ball associated with points

Description Usage Arguments Value Examples

View source: R/containment-and-band-creation.R

Description

create the delta ball associated with points

Usage

1
2
3
4
5
create_delta_ball_structure(
  data_points,
  data_columns = NULL,
  .lower_simplex_project = TRUE
)

Arguments

data_points

points to create the delta ball structure from

data_columns

columns of data.frame that relate to the point's coordinates in euclidean space. This should be at least 3 columns (else it doesn't really make sense to use this function). The input should look like something like c(S,I,R) or c("S", "I", "R"). If the input is NULL this function will treat this like dplyr::everything().

.lower_simplex_project

boolean, if data points should be projected to a simplex and then to the lower dimensional simplex (for this package, this should always be done)

Value

a delta_ball_structure object, that is a data frame similar to data_points (but with out data_columns columns) and distinct points. This object also has an delta attribute which contains the delta defining the delta ball.

Examples

1
2
3
4
5
6
7
8
library(dplyr)
delta_ball_cb <- EpiCompare::pomp_df %>%
  filter(.id <= 10) %>%
  arrange(time) %>% # just to be safe
  select(-time, -H, -cases) %>%
  group_by(.id) %>%
  grab_top_depth_filaments(conf_level = .9) %>%
  create_delta_ball_structure() #data_columns = c(S,I,R)

skgallagher/EpiCompare documentation built on Sept. 14, 2021, 5:45 a.m.