Python Forum
AR roots for VAR coefficients
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
AR roots for VAR coefficients
#1
Hi everyone,

Does anyone know if there is a python equivalent to this r code:

https://robjhyndman.com/hyndsight/arma-roots/

Thanks
likes this post
Reply
#2
found this: https://towardsdatascience.com/arima-mod...fc7fb792f9
Don't know if it covers what you want.
Reply
#3
(Nov-30-2022, 05:52 AM)Larz60+ Wrote: found this: https://towardsdatascience.com/arima-mod...fc7fb792f9
Don't know if it covers what you want.

Unfortunately that does not cover AR roots of the model coefficients. I found the code to get the AR roots of the model coefficients in python but the output is confusing. The r code helps visualize it in the unit circle so is perfect for my thesis.

import numpy as np 
import numpy.polynomial.polynomial as root

gdp = root.polyroots(g) 
con = root.polyroots(c) 
exp = root.polyroots(e) 
imp = root.polyroots(i) 
uem = root.polyroots(u) 
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Neural Network importance weights / coefficients jkaustin 1 2,086 Nov-10-2020, 07:44 PM
Last Post: jefsummers
  Outputing LogisticRegression Coefficients (sklearn) RawlinsCross 6 4,800 Feb-27-2020, 02:47 PM
Last Post: RawlinsCross
  Finding out roots of Chebyshev's polynomials player1681 2 2,475 Dec-02-2019, 11:53 PM
Last Post: scidam
  fit each group and extract coefficients Progressive 1 2,947 Jul-20-2019, 08:20 AM
Last Post: scidam
  using two arrays to fit a third one - find coefficients vaugirard 1 2,616 Jul-05-2018, 10:49 PM
Last Post: Larz60+
  Printing coefficients Scott 1 5,797 Jun-30-2018, 12:14 PM
Last Post: gontajones

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020