#[non_exhaustive]pub struct DenseFlmmResult {Show 14 fields
pub mean_function: Vec<f64>,
pub beta_functions: FdMatrix,
pub random_effects: FdMatrix,
pub fitted: FdMatrix,
pub residuals: FdMatrix,
pub random_variance: Vec<f64>,
pub sigma2_eps: f64,
pub sigma2_u: Vec<f64>,
pub sigma2_slope: Vec<f64>,
pub ncomp: usize,
pub n_subjects: usize,
pub eigenvalues: Vec<f64>,
pub n_iter: usize,
pub converged: bool,
}Expand description
Result of a dense functional linear mixed model fit.
§Parametrization note
fdars formulates the model over FPC scores (reusing fdata_to_pc) rather than
over spline/basis coefficients as in R’s denseFLMM package. Consequently
variance components are per FPC component, not smoothed over the argument domain.
Random-slope estimation is not implemented in this release; sigma2_slope is
always zero-filled (one entry per FPC component). Future releases may add
two-random-effect scalar LMM support via a dedicated helper.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.mean_function: Vec<f64>Overall mean function μ̂(t) (length m)
beta_functions: FdMatrixFixed effect coefficient functions β̂_j(t) (p × m matrix, one row per covariate)
random_effects: FdMatrixRandom effect functions b̂_i(t) per subject (n_subjects × m)
fitted: FdMatrixFitted values for all observations (n_total × m)
residuals: FdMatrixResiduals (n_total × m)
random_variance: Vec<f64>Variance of random effects at each time point Var_i(b̂_i(t)) (length m)
sigma2_eps: f64Mean residual variance averaged across FPC-score component models.
Each per-component model operates on L²-normalized scores; this average
is on the normalized scale and is not directly comparable to the marginal
residual variance σ²_ε from R’s lmer(). See the struct-level
parametrization note.
sigma2_u: Vec<f64>Random-intercept variance per FPC component (length k)
sigma2_slope: Vec<f64>Random-slope variance per FPC component (zero-filled when random_slopes = false)
ncomp: usizeNumber of FPC components actually used
n_subjects: usizeNumber of unique subjects
eigenvalues: Vec<f64>FPC eigenvalues (singular values squared / n_total), length k
n_iter: usizeMaximum number of REML EM iterations reached across components
converged: booltrue if all component models converged before config.max_iter
Trait Implementations§
Source§impl Clone for DenseFlmmResult
impl Clone for DenseFlmmResult
Source§fn clone(&self) -> DenseFlmmResult
fn clone(&self) -> DenseFlmmResult
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DenseFlmmResult
impl Debug for DenseFlmmResult
Source§impl PartialEq for DenseFlmmResult
impl PartialEq for DenseFlmmResult
impl StructuralPartialEq for DenseFlmmResult
Auto Trait Implementations§
impl Freeze for DenseFlmmResult
impl RefUnwindSafe for DenseFlmmResult
impl Send for DenseFlmmResult
impl Sync for DenseFlmmResult
impl Unpin for DenseFlmmResult
impl UnsafeUnpin for DenseFlmmResult
impl UnwindSafe for DenseFlmmResult
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.