time series using arimax

have problem in econometric app , I ve done the arimax model , but I want to export the fiited y data as data point and a plot , how I can do that

Answers (1)

Rishav
Rishav on 2 May 2023
For exporting the fitted values of your ARIMAX model as data points without plotting them, you can follow these steps:
  1. Obtain the fitted values of the dependent variable (y) from your ARIMAX model. This can typically be done by using the predict() function in your software.
  2. Save the fitted values to a data frame, which can be exported as a CSV file using functions like write.csv() or write.table().
To export the fitted y data as data points and a plot in econometric software, you can follow these steps:
  1. Obtain the fitted values of the dependent variable (y) from your ARIMAX model. This can typically be done by using the predict() function in your software.
  2. Export the fitted values as a separate data frame or a CSV file. This can be done using functions like write.csv() or write.table().
  3. Once you have the fitted values exported, you can create a plot in your software. You can use functions like plot() or ggplot() to create a visualization of the fitted values.
  4. If you want to plot the fitted values along with the original data, you can overlay the two plots. This can be done by first plotting the original data, and then adding a layer for the fitted values using the fitted values data frame you exported earlier.

Categories

Products

Release

R2023a

Asked:

on 1 May 2023

Answered:

on 2 May 2023

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!