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: "<-"
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.