Displays a graphical illustration of the passed fitted model object. The function creates a scatter plot of quantity-price pairs for the records corresponding to the given subject and time identifiers. Then, it plots the average fitted demand and supply quantities for the same data subset letting prices vary between the minimum and maximum price points observed in the data subset.
# S4 method for market_fit,ANY
plot(x, subject, time, ...)
A model object.
A vector of subject identifiers to be used in the visualization.
A vector of time identifiers to be used in the visualization.
Additional parameter to be used for styling the figure.
Specifically xlab
, ylab
, and main
are currently
handled by the function.
# \donttest{
# estimate a model using the houses dataset
fit <- diseq_deterministic_adjustment(
HS | RM | ID | TREND ~
RM + TREND + W + CSHS + L1RM + L2RM + MONTH |
RM + TREND + W + L1RM + MA6DSF + MA3DHF + MONTH,
fair_houses(), correlated_shocks = FALSE,
estimation_options = list(control = list(maxit = 1e+6)))
# show model's illustration plot
plot(fit)
# }