predict.cp_model_nls: Predict from a Cross-Price Demand Model (Nonlinear)

predict.cp_model_nlsR Documentation

Predict from a Cross-Price Demand Model (Nonlinear)

Description

Predict from a Cross-Price Demand Model (Nonlinear)

Usage

## S3 method for class 'cp_model_nls'
predict(object, newdata = NULL, inverse_fun = NULL, ...)

Arguments

object

A cross-price model object from fit_cp_nls with return_all=TRUE.

newdata

A data frame containing an 'x' column.

inverse_fun

Optional inverse transformation function.

...

Additional arguments.

Value

A data frame with x values and predicted y values.


brentkaplan/beezdemand documentation built on June 11, 2025, 3:50 a.m.