pub struct Grouping {
pub relation: GroupingRelation,
pub tau_squared: f64,
pub slopes: Vec<SlopeTerm>,
}Expand description
An extra grouping factor. Mirror of engine_contract::GroupingSpec.
Fields§
§relation: GroupingRelation§tau_squared: f64§slopes: Vec<SlopeTerm>Implementations§
Source§impl Grouping
impl Grouping
Sourcepub fn re_correlation_matrix(&self) -> (usize, Vec<f64>)
pub fn re_correlation_matrix(&self) -> (usize, Vec<f64>)
The q_g×q_g RE correlation matrix R_g over [intercept, slope_0, …]
(q_g = 1 + slopes.len()). Identical recipe to the primary’s
ModelSpec::re_correlation_matrix; cluster_theta_truth reads it to form
each extra factor’s relative-covariance factor Λ_g = chol(D_g).
Trait Implementations§
impl StructuralPartialEq for Grouping
Auto Trait Implementations§
impl Freeze for Grouping
impl RefUnwindSafe for Grouping
impl Send for Grouping
impl Sync for Grouping
impl Unpin for Grouping
impl UnsafeUnpin for Grouping
impl UnwindSafe for Grouping
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
Mutably borrows from an owned value. Read more
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> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T, U> Imply<T> for U
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>
Converts
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>
Converts
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 more