How to pull confidence interval values using confint and sprintf in R?
Using confint(lm) gives a confidence interval for a linear regression model. How would I pull those values to use in a sprintf function? In other words, what would I put after the comma in the sprintf function to substitute for %s? I tried using confint(lm1)[1] but get an error saying invalid format.
In R, how do you pull a coefficient value from the summary function?
How do you pull out a coefficient value from the summary of a linear regression model?