pub enum TwoFoldType {
Pooled,
Neumark,
Cotton,
Reimers,
SelfSubmitted(f64),
}Expand description
Weighting scheme for the non-discriminatory coefficient vector β* used by
the two-fold (“pooled”) decomposition. Mirrors the reference
two_fold_type options.
Variants§
Pooled
β* from OLS on the full sample including the group indicator; the
indicator’s coefficient is dropped before applying β*.
Neumark
β* from OLS on the full sample excluding the group indicator
(the “Neumark” pooled model).
Cotton
Cotton (1988) sample-size weighting:
β* = (n_f β_f + n_s β_s) / (n_f + n_s).
Reimers
Reimers 50/50 weighting: β* = ½ (β_f + β_s).
SelfSubmitted(f64)
User-supplied weight w on the larger-mean group:
β* = w β_f + (1 − w) β_s.
Trait Implementations§
Source§impl Clone for TwoFoldType
impl Clone for TwoFoldType
Source§fn clone(&self) -> TwoFoldType
fn clone(&self) -> TwoFoldType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TwoFoldType
Source§impl Debug for TwoFoldType
impl Debug for TwoFoldType
Source§impl PartialEq for TwoFoldType
impl PartialEq for TwoFoldType
impl StructuralPartialEq for TwoFoldType
Auto Trait Implementations§
impl Freeze for TwoFoldType
impl RefUnwindSafe for TwoFoldType
impl Send for TwoFoldType
impl Sync for TwoFoldType
impl Unpin for TwoFoldType
impl UnsafeUnpin for TwoFoldType
impl UnwindSafe for TwoFoldType
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