Multilevel fitting 


mlfit: Iterative Proportional Fitting Algorithms for Nested Structures 

Access to toy examples bundled in this package 


Create an instance of a fitting problem 
Return a flattened representation of a multilevel fitting problem instance 


Estimate weights for a fitting problem 
Replication 

Replicate records in a reference sample based on its fitted weights 

Compute margins for a weighting of a multilevel fitting problem 

Generalized raking 

Calibrate sample weights 

Generalized Inverse of a Matrix using a custom tolerance or SVD implementation 