Skip to content

Commit

Permalink
add class detals
Browse files Browse the repository at this point in the history
  • Loading branch information
stemangiola committed Sep 17, 2023
1 parent 20c8fb5 commit a276b5a
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions R/glmmSeq.R
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,34 @@ glmerCore = function (geneList, fullFormula, reduced, data, control, offset,

}

# From glmmSeq

# Class definitions

setClassUnion("character_or_list", c("character", "list"))
setClassUnion("df_or_matrix", c("data.frame", "matrix"))
setClassUnion("list_or_matrix", c("list", "matrix"))
setClassUnion("formulaOrNULL", c("formula", "NULL"))

#' An S4 class to define the glmmSeq output
#'
#' @keywords internal
#' @noRd
#'
#' @slot info List including the matched call, dispersions, offset, designMatrix
#' @slot formula The model formula
#' @slot stats Statistics from fitted models
#' @slot predict Predicted values
#' @slot reduced Optional reduced formula for LRT
#' @slot countdata The input expression data with count data in rows
#' @slot metadata The input metadata
#' @slot modelData Model data for predictions
#' @slot optInfo Information on whether the model was singular or converged
#' @slot errors Any errors
#' @slot vars List of variables stored from the original call, including the
#' `id` variable (by default automatically identified from the random effect
#' term in the model) and `removeSingles` argument

setClass("GlmmSeq", slots = list(
info = "list",
formula = "formula",
Expand Down

0 comments on commit a276b5a

Please sign in to comment.