time series using arimax

3 views (last 30 days)
ayah ali
ayah ali on 1 May 2023
Answered: Rishav on 2 May 2023
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

Find more on Conditional Mean Models in Help Center and File Exchange

Products


Release

R2023a

Community Treasure Hunt

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

Start Hunting!