Description Usage Arguments Value Examples
get raw data from lm or glm
1  | get_data_from_lm(model)
 | 
modle | 
 a lm or glm.  | 
a data.frame used as raw data for the model.
1 2 3 4 5 6 7  | data_used = ggplot2::diamonds[0:10,]
model = lm(price~ cut + carat + I(carat^2) + I(carat^3) +
             I(carat  * depth) + cut:depth, data_used) # a GLM
get_data_from_lm(model)
data_used = 'data_used is deleted in this environment'
get_data_from_lm(model)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.