Learn R Programming

litterfitter (version 0.1.4)

predict_from_fit: Predict Using a Specific Model Function

Description

This function computes predictions by applying the specified model function (model_fn) with provided parameters (params) at a target time (target_time). It is an internal utility function and is NOT a generic or S3 method.

Usage

predict_from_fit(model_fn, params, target_time)

Value

Numeric. The predicted value computed by the model function.

Arguments

model_fn

A function representing the model used for prediction.

params

A list of parameters to be passed to the model function.

target_time

A numeric value representing the target time for the prediction.