Python Forum
retrieving pvalue from statsmodels results
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
retrieving pvalue from statsmodels results
#1
Please how can I retrieve on p-values from this

results = results.test_causality('Q50', ['Q95'], kind='f')
print results
# output:
Output:
<statsmodels.tsa.vector_ar.hypothesis_test_results.CausalityTestResults object. H_0: Q95 does not Granger-cause Q50: fail to reject at 5% significance level. Test statistic: 0.200, critical value: 3.851>, p-value: 0.655>
How can I copy only the p value?
Reply
#2
Try results.pvalue
Reply
#3
I tried but doesnt work
Reply
#4
Never used statsmodels myself but from documentation:

test_causality returns CausalityTestResults object.

CausalityTestResults has method summary()
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy

Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Reply
#5
Staph Wrote:I tried but doesnt work
What's the error message?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  KeyError while retrieving ESPN data john317ab 2 769 Nov-29-2023, 09:07 PM
Last Post: john317ab
  .get() not retrieving value? Sedos101 2 534 Aug-25-2023, 11:48 AM
Last Post: deanhystad
  X13ARIMA & statsmodels: X13NotFoundError: x12a and x13as not found on path JaneTan 1 1,397 Dec-24-2022, 07:44 AM
Last Post: ndc85430
  Statsmodels, Dickey-Fuller test for stationarity Led_Zeppelin 1 915 Aug-17-2022, 06:36 PM
Last Post: Larz60+
  [Solved] Retrieving a pdf from sqlite3 BigMan 4 2,245 Mar-12-2022, 01:56 PM
Last Post: deanhystad
  Retrieving a column from a data set using a function Bayle 6 2,290 Oct-06-2021, 08:52 PM
Last Post: Bayle
  Retrieving Cookies whois1230 2 2,140 Nov-21-2020, 12:01 PM
Last Post: snippsat
  Problem: Retrieving Form data PythonDev 3 3,025 Oct-16-2020, 02:09 AM
Last Post: PythonDev
  Search Results Web results Printing the number of days in a given month and year afefDXCTN 1 2,191 Aug-21-2020, 12:20 PM
Last Post: DeaD_EyE
  How to append one function1 results to function2 results SriRajesh 5 3,073 Jan-02-2020, 12:11 PM
Last Post: Killertjuh

Forum Jump:

User Panel Messages

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