Skip to contents

All functions

add_bipartite_summaries()
add_bipartite_summaries this function takes an interaction_model and an interaction_model, where row_universe and column_universe have two additional columns $coreness and $component_label. importantly, strange behavior if im is a symmetric graph. this treats each row index and each column index as nodes in a graph. So, if something appears in both rows and columns (e.g. as in symmetric graph), then this will be ignored.
add_graph_summaries()
Add Graph Summaries to interaction_model
bff()
Best Feature Function (bff) Given a pc object from pca, or a rotated version, we wish to interpret the individual dimensions. Often, each unit/row (or context/column) of the original interaction_model will have a some sort of text description. For example, if each row is an R package, we have the package title and description. Convert these text descriptions into an interaction_model where the units (i.e. the variable before the *) matches either the units or context for the pc.
core()
core Given and interaction_model, this returns a new interaction_model that is the "k-core" of the "largest connected component" of the original interaction_model. This function is recommended when diagnose(im) shows that the majority of rows/columns have 1, 2, or 3 connections. In this case, the data is potentially too sparse for pca. If you simply throwing away the rows/columns that are weakly connected, then you will reduce the connections of those that remain. The k-core is what you get if you keep on iterating. In particular, it will find the largest subset of rows and columns from the interaction_model such that every row and column has at least core_threshold number of connections or "data points" in interaction_tibble. This is exactly the k-core if the row and columns correspond to unique elements (non-overlapping). If the elements in the rows match some elements in the columns, then those elements are represented twice... once for the row and once for the column. It is possible that only one of those is retained.
diagnose()
diagnose_formula
extract_interaction()
extract_interaction (internal)
extract_variables()
extract_variables (internal)
get_Matrix()
get_Matrix
glaplacian()
glaplacian
itty_pivot()
itty_pivot (internal)
localization()
localization
make_deg_lev_resid()
make_deg_lev_resid (Internal)
make_interaction_model()
make_interaction_model
make_interaction_model_from_variables()
make_interaction_model_from_variables (internal to make_interaction_tibble and text2sparse)
make_leverage()
make_leverage (internal for localization)
make_sparse_output()
make_sparse_output (internal to rotate)
old_make_interaction_model()
old_make_interaction_model
pair()
Internal
parse_formula()
parse_variables (internal)
pca()
pca
pca_count()
pca_count
pca_na()
pca_na
pca_sum()
pca_sum
pca_text()
pca_text
pick_dim()
pick_dim
plot(<pc>)
plot.pc
print(<interaction_model>)
print interaction model
print(<pc>)
print.pc
remove_L_normalization()
remove_L_normalization (internal to pca_mean/pca_average)
rotate()
rotate
select_universe()
select_universe
streaks()
streaks
subset_im
#' core #' Given an interaction_model, this will return another interaction_model that corresponds to the "k-core" of the input. This function is recommended when diagnose(im) shows that the majority of rows/columns have 1, 2, or 3 connections. In this case, the data is potentially too sparse for pca. If you simply throwing away the rows/columns that are weakly connected, then you will reduce the connections of those that remain. The k-core is what you get if you keep on iterating. In particular, it will find the largest subset of rows and columns from the interaction_model such that every row and column has at least core_threshold number of connections or "data points" in interaction_tibble. This is exactly the k-core if the row and columns correspond to unique elements (non-overlapping). If the elements in the rows match some elements in the columns, then those elements are represented twice... once for the row and once for the column. It is possible that only one of those is retained. #' #' @param im_input #' @param core_threshold #' #' @return #' @export #' #' @import dplyr #' #' @examples core = function(im_input, core_threshold) subset_im(im_input) im_input if(!"coreness" %in% colnames(im_input$row_universe)) print("adding graph summaries (coreness and connected components).") im = add_bipartite_summaries(im)
summary(<interaction_model>)
summary interaction model
top()
Title
top_features()
top_features
transpose_tibble()
#' list_2_tib (internal) #' #' used for diagnose #' #' @param list_of_data #' #' @return #' #' @examples list_2_tib = function(list_of_data) dplyr::bind_rows(lapply(list_of_data, itty_pivot))
update_lhs_to_1()
update_lhs_to_1 (internal to pca_count)
varimax_with_pre_rotation()
varimax_with_pre_rotation (internal to rotate)