Learn R Programming

diseq (version 0.3.1)

plot,market_model,ANY-method: Plots the model.

Description

Displays a graphical illustration of the passed model object.

Usage

# S4 method for market_model,ANY
plot(x)

Arguments

x

A model object.

Examples

Run this code
# NOT RUN {
model <- simulate_model(
  "diseq_basic", list(
    # observed entities, observed time points
    nobs = 500, tobs = 3,
    # demand coefficients
    alpha_d = -0.9, beta_d0 = 8.9, beta_d = c(0.3, -0.2), eta_d = c(-0.03, -0.01),
    # supply coefficients
    alpha_s = 0.9, beta_s0 = 4.2, beta_s = c(0.03), eta_s = c(0.05, 0.02)
  ),
  seed = 44
)

# show model's illustration plot
plot(model)
# }

Run the code above in your browser using DataLab