L. Rodriguez
L. Rodriguez

Reputation: 23

How to extract variables from tab_model in R to create new data frame?

Example output of tab_model

I have created a table from tab_model that includes multiple models and wish to extract all 'p-values' and 'Estimates/Odds Ratio' to create a data frame that includes these. Output of tab_model is an html file. I am unable to find a function to pull this info in accordance, any ideas on how I could do this?

For example, I want to retrieve all p-values and Estimates for variable 'age' in all of my models...Only 3 in example image but I have hundreds

Upvotes: 0

Views: 709

Answers (1)

mhovd
mhovd

Reputation: 4077

You should get these values from the regression models themselves, instead of outputting them to a HTML-table, and then extract them.

Without further knowledge of your process and data it is difficult to provide a more concrete answer.

Upvotes: 1

Related Questions