Stores the negative binomial GLM fit and Wald/Brown inference
for a single niche bandwidth. Several SpiDEFit objects (one per
bandwidth) are combined in a SpiDEResults container.
Slots
sigmaa numeric, the niche bandwidth (kernel standard deviation) used.
modea character, the design mode: "condition" (the default — a
CellType:condition:nichedesign) or "niche" (a condition-free design in which the two-wayCellType:nicheinteractions are the tested effects).ngenesa numeric, the number of genes.
ncellsa numeric, the number of cells/spots.
Wa matrix, the design matrix (cells x covariates).
two.sidedlogical, TRUE when the within-gene combination used two-sided p-values (Cauchy/ACAT); FALSE for Brown's method.
se_patientnumeric, per-gene standard error of the abundance-weighted patient-level response contrast; length 0 when the design has no CellType:condition block.
covtypea factor, the covariate type of each column of
W, one of "CellType", "Niche", "Response", "ResponseNiche", "ResponseCellType", "Other", or "Random" (patient random-effect columns for the mixed-effects fit).coefmapa DataFrame mapping each covariate to its index cell type, niche cell type, and type.
alphaa matrix, the per-gene coefficients (genes x covariates).
gmeana numeric, the per-gene intercept (zero for the generic fit).
psia numeric, the per-gene negative binomial dispersion.
rhoa numeric, the average inter-gene correlation of the Pearson residuals, accumulated by
testSpiDE()from the gene blocks it already loads. Used byspiGSEA()as the variance-inflation term. Empty until inference has run.loglika numeric, the per-gene log-likelihood (used for Cauchy weights).
re_groupa character (or NULL), the random-effect group of each column of
W(NAfor fixed columns); NULL for a fixed-effects fit.tau2a numeric (or NULL), the fitted random-effect variance components (one per random-effect group); NULL for a fixed-effects fit.
penaltya numeric (or NULL), the per-column ridge penalty (
lambda.a) used at fit time (0 on fixed columns,1/tau2on random columns).dfa numeric (or NULL), the Wald reference degrees of freedom. NULL for a fixed-effects fit (normal reference); a scalar between-patient
S - 2underdf.method = "between"; or a named per-tested-coefficient vector (aligned to the columns oft_stat/se) underdf.method = "satterthwaite"— the Response main effect stays ~S - 2while niche interactions, informed by within-sample variation, get a larger df.t_stata matrix, per-gene Wald t-statistics (genes x covariates).
sea matrix, per-gene coefficient standard errors (genes x covariates).
p.combined.posa matrix, combined p-values for up-regulation (genes x (gene-level plus per-index-cell-type)). The within-gene combiner is Brown's method or the Cauchy combination test (see
combine).p.combined.nega matrix, combined p-values for down-regulation.
polisha data.frame or NULL; per-gene diagnostics of the convergence stage (iterations, fitNB's psi, whether the gene restarted from a sane start, whether it hit the iteration cap, whether its information matrix was singular). NULL when
converge = FALSE.samplinga factor, cells used for GLM/dispersion estimation (from
SpaNorm::fitNB()).