Recent Releases of mlfit
mlfit - mlfit 0.6.0 (2023-02-01)
mlfit 0.6.0 (2023-02-01)
- Soft deprecated the
prior_weightsargument. The name of a weight column in the reference sample to be used as prior weights should be specified using theprior_weightargument inspecial_field_names(). - the
group_controlsandindividual_controlsarguments ofml_problem()now haveNULLas their default value. - Fixed
ml_problem()not allowing single-level control when thegeo_hierarchyargument is notNULL. (#78, @walkerke) - It is now possible to use prior weights in a
geo_hierarchyml_problem(). Simply specify the name of the weight column in your reference sample using theprior_weightargument inspecial_field_names(). (#78, @walkerke)
Full Changelog: https://github.com/mlfit/mlfit/compare/v0.5.3.9005...v0.6.0
- R
Published by asiripanich about 3 years ago
mlfit - v0.2
- New functions
compute_margins()andmargins_to_df()for validation - Support specification of prior weights in construction of fitting problems
- Use
survey::grake()instead ofgrake::calibWeights(). - Adapt to change of undocumented behavior in base R.
- Don't alter column names of controls if they are of type
data.table(explicitly convert todata.frame) - Proper handling of corner cases (reference sample with one row, and grand total controls and dummy controls with only one category)
- Allow character variables (in addition to factors) as control variables
- Explicit error message if reference sample is not sorted
- If name of count column in controls is not specified, it is determined automatically (with a message in verbose mode)
- Expansion of weights loads
Matrixpackage if necessary - Clarify documentation
- Straighten out imports, use
importFrominstead of::
- R
Published by krlmlr about 10 years ago
mlfit - v0.1
- new functions
fitting_problem,is.fitting_problem,special_field_names - all fitting functions now expect an object of class
fitting_problem(as returned by thefitting_problemandimport_IPAF_problemfunctions); former calls likeml_fit(ref_sample, controls, field_names)now need to be written asml_fit(fitting_problem(...))
- R
Published by krlmlr almost 11 years ago
mlfit - v0.0-12
- new function
ml_fit_dsswith an implementation very close to the paper by Deville et al. (1993); implementation in thelaekenpackage - normalize weights to get rid of precision problems
- allow partly uncontrolled attributes and controls without observations in the reference sample (with a warning, #24)
- better error reporting for non-factor controls and existence of group ID column
- improve warning and progress messages
- R
Published by krlmlr over 11 years ago
mlfit - v0.0-11
- return correct weights -- regression introduced in v0.0.9
- rewrite transformation of weights using sparse matrices and a home-grown Moore-Penrose inverse for our (very special) transformation matrix (#17)
- warn on missing observations for nonzero controls (#20)
ml_fit_entropy_oalso returns flat weights- allow arbitrary order in control total tables (#19)
- remove observations that correspond to zero-valued control totals, with warning; don't warn if no corresponding observations need to be removed (#16)
- R
Published by krlmlr over 11 years ago
mlfit - v0.0.9
- new function
flatten_ml_fit_problem: transform representation as returned byimport_IPAF_resultinto a matrix, a control vector and a weights vector - function
ml_fit_entropy_o: useBB::dfsaneinstead ofBB::BBsolvefor solving the optimization problem; rename argumentBBsolve_argstodfsane_args - function
ml_fit: new parameterverbose - aggregate identical household types, implement prior weights (so far only internally)
- R
Published by krlmlr over 11 years ago
mlfit - v0.0.7
- Fix dependency issues (#13, #14)
- Add example for
ml_fit_entropy_o(#11) - Print more helpful error message if control totals and reference sample categories do not overlap (#11)
v0.0.6 (2014-02-09)
import_IPAF_resultsnow returns a class of typeIPAF_results- New functions
ml_ipfandml_ipf_entropy_o, implementation does not yet return the same weights as the Python code - Convert control columns to factors
v0.0.5 (2014-02-07)
- Fix importing configuration files with more than one control of any type and with comments in the control definition
- New parameter
config_nametoimport, defaults toconfig.xml
v0.0.4 (2013-12-06)
- Parameter
all_weightstoimportthat allows importing also intermediate weights. The output format ofimporthas changed, the weights for each algorithm are now always a list of weight vectors, even in the default caseall_weights == FALSE(#5).
v0.0.3 (2013-11-28)
- Import results of old Python code (#1).
v0.0.2 (2013-11-26)
- Initial setup
- R
Published by krlmlr over 11 years ago