Changelog
Source:NEWS.md
investr 1.5.0
New
invest()methods for"survfit"and"Surv"objects (from the survival package) estimate the survival time at which a Kaplan-Meier curve reaches a given survival probability (e.g., median survival time), with confidence limits obtained by inverting the curve’s pointwise confidence band (#30).invest()results withinterval = "percentile"now also inherit from class"boot", so they work directly with functions from the boot package such asboot::boot.ci()(#32).nlmemoved from Imports to Suggests;"lme"-specific code paths now check for it withrequireNamespace()(#47).Fixed
calibrate.lm()silently mishandling models withpoly()-transformed predictors; it now reads the predictor from the model frame and errors informatively instead (#48).Fixed the formula for
gin the inversion-interval vignette, which had been broken by a regression in a prior “typo fix” (#51).Fixed
predFit()withse.fit = TRUEfailing on"nls"models with more than one predictor variable (#53).Fixed
invest()andpredFit()failing when the fitted model was created inside a function, or with nodataargument at all; training/prediction data is now reconstructed viamodel.frame()or the environment captured by the model’s formula, instead of evaluatingobject$call$datain the caller’s frame (#41, #42, #45).invest()now validates thatnewdatacolumns have classes (and, for factors, levels) compatible with the fitted model’s training data, rather than failing with a confusing downstream error or silently returning a nonsensical result (#36).The “Use plotFit for guidance” hint on a failed confidence-limit search no longer appears for multi-predictor
lm/glmmodels, sinceplotFit()doesn’t support more than one predictor variable (#35).
investr 1.4.2
CRAN release: 2022-03-31
Fixed the output of
predFit()in situations whenever standard errors and confidence/predictions bands are both requested.New data sets
bladder(a repeated measures data set) andwhisky.Fixed typos in documentation throughout the package.
Updated URLs throughout the package.
Better y-axis limits when x-axis is on log scale (e.g., using log = “x”). Fixes issue #27.
Better default y-axis label when using
plotFit()on a model with transformed response. For example, callingplotFit(fit)wherefit <- lm(sqrt(dist) ~ speed, data = cars)will have a default y-axis label of"sqrt(dist)".plotFit()has been completely re-written using much less code.predFit()(and henceplotFit()) now works for"nls"objects fit using the Golub-Pereyra algorithm (i.e.,algorithm = "plinear"); however, confidence/prediction bands are still not available.New introductory vignette.
investr 1.4.0
CRAN release: 2016-04-09
Multiple predictor variables are allowed for
"lm"and"glm"objects.All non-base package functions are now imported.
The generic function
predFit()is now exported. This function is used by investr to obtain predictions, and hence, inverse predictions. For example,predFit()can be used to obtain prediction intervals for nonlinear least-squares fits (i.e., models of class"nls").Improved tests and test coverage.
plotFit()gained methods for"rlm"and"lqs"objects from package MASS.
investr 1.3.0
CRAN release: 2015-03-25
invest()now accepts objects of class"glm"(experimental).Functions
calibrate()andinvest()now return an object of class"invest".
investr 1.2.1
CRAN release: 2015-01-06
Cleaned up documentation.
Added
AnyNA()function for those using older versions of R.
investr 1.1.0
CRAN release: 2014-07-14
invest()now accepts objects of class"lme"(experimental).A few minor bug fixes and code improvements.
Added more tests.