Skip to content

Instantly share code, notes, and snippets.

@davidaarmstrong
Created June 23, 2023 17:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidaarmstrong/eadef82211b87af4d4900b61b3cc3e1f to your computer and use it in GitHub Desktop.
Save davidaarmstrong/eadef82211b87af4d4900b61b3cc3e1f to your computer and use it in GitHub Desktop.
# Goal: Make a function that takes an interaction mdoel and transforms the output to look like subset models.
#' @parameter obj linear model object
#' @parameter data Data frame used to estimate the model
#' @parameter incl_difference Logical argument identifying whether differences between coefficient vectors should be included.
#' @parameter ... Other arguments, currently unimplemented
interaction_to_subset <- function(obj, data, incl_difference=FALSE, ...){
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment