Current development version
New features
- New method shapeConstrto build constraint matrices for
shape-constrained splines. Currently works with classesns,bs(from packagesplines),psandonebasis(fromdlnm). Also includes a default
method for more general bases.
- New function zerosumConstrfor constraint matrices for
a zero sum such as used in compositional regression for instance.
- New function edfto compute observed and expected
degrees of freedom for a fittedcirlsobject.
- Method logLik.cirlsfor AIC and BIC computation.
- New function unconsto return the unconstrained
model.
- Constraints can now be passed as a formula through a new argument
called constr.
- New function buildCmatto build a constraint matrix
using a model frame and a list of matrices or constraint formula (or
both).
Changes
- Changed the default QP solver to quadprogafter some
expriments.
- Added the argument completein inferential functions,
to allow keeping or discarding aliased coefficients. Same interpretation
as invcov.lm.
- vcovnow allows returning the usual variance-covariance
returned by- vcov.glmwhen- trunc = FALSE.
- simu_coefrenamed as- simulCoefand now
includes an argument to set the seed.
- check_cmathas been renamed- checkCmat. It
also now returns logical vectors instead of vectors of indices
- Now the Cmat,lbandubused
are not returned in thecontrolobject from the result ofglmwithcirls.fit.
- Now lbandubcan be passed by term.
- The element aicof a fittedcirlsobject
is penalised by the number of active constraints.
Bug fixes
- Fixed issue with R matrix when there was less observations than
variables.
- Fixed error from solve.QPwhen there are large values
in the response.
- Now checkCmatalso checks if there are “zero”
constraints.
- Fixed a bug in simulCoef. Now includes a switch to
simulate under the constrained or unconstrained model.
- simulCoefreturns a NA matrix with a warning in the
case of a saturated model.
0.3.0
New features
- Added check_cmatandcoef_simuto the list
of exported functions as they can be useful for specific use cases.
- Added full documentation.
Bug fixes
- In check_cmat, removed the call tolimSolve::nnls()to be replaced byconeproj::coneB(also a NNLS solver) to reduce the number
of dependencies.
0.2.1
New features
- Initialization of a short documentation for several functions.
Bug fixes
- cirls.controlnow checks for constraint matrix
irreducibility.
- cirls.controlis now exported.
- changed the function to determine redundant constraints in
check_cmat
- No warning message on row rank of Cmatanymore
- Cmatis now checked only when there are more than one
row
0.2.0
New features
- Method vcov for cirls to compute corrected covariance matrices
- Method confint for cirls to compute feasible confidence
intervals
- Added several QP solvers: quadprog (the original one), osqp and
coneproj.
Changes
- A warning is now displayed when Cmat is not of full row rank
- vcov and confint return NA matrices if Cmat is not of full row
rank
- Changed residual df computation to account for active
constraints
- Replaced bvec by lb (lower bound) and ub (upper bound). Allows
equality constraints.
- Added cirls class to glm output
Bug fixes
- cirls.fit has the same behaviour as glm.fit when model is singular:
fill with NAs