pub struct Gee { /* private fields */ }Expand description
A GEE model awaiting estimation.
Implementations§
Source§impl Gee
impl Gee
Sourcepub fn new(
endog: Array1<f64>,
exog: Array2<f64>,
group_labels: &[i64],
family: Family,
cov_struct: CovStruct,
) -> Result<Self>
pub fn new( endog: Array1<f64>, exog: Array2<f64>, group_labels: &[i64], family: Family, cov_struct: CovStruct, ) -> Result<Self>
Build a GEE with the family’s canonical link.
group_labels assigns each observation to a cluster; rows that share a
label form one cluster. Clusters are ordered by first appearance.
Sourcepub fn with_link(
endog: Array1<f64>,
exog: Array2<f64>,
group_labels: &[i64],
family: Family,
link: Link,
cov_struct: CovStruct,
) -> Result<Self>
pub fn with_link( endog: Array1<f64>, exog: Array2<f64>, group_labels: &[i64], family: Family, link: Link, cov_struct: CovStruct, ) -> Result<Self>
Build a GEE with an explicit link.
Sourcepub fn fit(&self) -> Result<GeeResults>
pub fn fit(&self) -> Result<GeeResults>
Fit the model.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Gee
impl RefUnwindSafe for Gee
impl Send for Gee
impl Sync for Gee
impl Unpin for Gee
impl UnsafeUnpin for Gee
impl UnwindSafe for Gee
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