predict.cp_model_nls | R Documentation |
Predict from a Cross-Price Demand Model (Nonlinear)
## S3 method for class 'cp_model_nls'
predict(object, newdata = NULL, inverse_fun = NULL, ...)
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. |
A data frame with x values and predicted y values.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.