Formatting output to tabel format

Hi all,

I need help to get the critical value and the p-value (marked by yellow below) in my adf.test as an output in tabel format. I need this in order to cbind several test into one data sheet for comparison/sorting.

I am not sure it it is possible to define the values as normally done by: "<-"

Thank you very much for your time and help!

Please see the FAQ: What's a reproducible example (`reprex`) and how do I do one? Using a reprex, complete with representative data will attract quicker and more answers. Without the data the problem has to be reversed engineered.

All I can suggest is that if the highlighted portions are value returned by the expression above is to examine them with str() and extract the values by position, as done above with coefficients[1], paste them with their labels, save as variables and use those in constructing a tabular output object.

This topic was automatically closed 54 days after the last reply. New replies are no longer allowed.