pub struct FrccConfig {
pub ncomp: usize,
pub fosr_lambda: f64,
pub alpha: f64,
pub tuning_fraction: f64,
pub seed: u64,
pub min_r_squared: f64,
}Expand description
Configuration for FRCC chart construction.
Fields§
§ncomp: usizeNumber of principal components for residual FPCA (default 5).
fosr_lambda: f64FOSR smoothing parameter; controls roughness penalty on β(t) (default 1e-4). Larger values produce smoother coefficient functions. Typical range: [1e-6, 1e-2]. Use cross-validation if unsure.
alpha: f64Significance level (default 0.05).
tuning_fraction: f64Fraction of data for tuning (default 0.5).
Must be in (0, 1). The tuning set is used for FOSR fitting and R-squared assessment; the calibration set (1 - tuning_fraction) is used for FPCA and control limit estimation. Larger tuning fractions give more stable FOSR estimates but fewer calibration observations for control limits. For n < 50, consider tuning_fraction = 0.4 to ensure adequate calibration. For n > 200, tuning_fraction = 0.6 may improve FOSR stability.
seed: u64Random seed (default 42).
min_r_squared: f64Minimum FOSR R² required to proceed (default 0.1). If the FOSR model explains less than this fraction of variance, frcc_phase1 returns an error suggesting standard SPM instead.
Default 0.1 is a lenient threshold that catches only clearly useless models. For production use, consider 0.2–0.3. An R² of 0.3 means predictors explain 30% of functional variance — enough for meaningful covariate adjustment.
Trait Implementations§
Source§impl Clone for FrccConfig
impl Clone for FrccConfig
Source§fn clone(&self) -> FrccConfig
fn clone(&self) -> FrccConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for FrccConfig
impl Debug for FrccConfig
Source§impl Default for FrccConfig
impl Default for FrccConfig
Source§impl PartialEq for FrccConfig
impl PartialEq for FrccConfig
impl StructuralPartialEq for FrccConfig
Auto Trait Implementations§
impl Freeze for FrccConfig
impl RefUnwindSafe for FrccConfig
impl Send for FrccConfig
impl Sync for FrccConfig
impl Unpin for FrccConfig
impl UnsafeUnpin for FrccConfig
impl UnwindSafe for FrccConfig
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
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
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.