Relative Content

Tag Archive for rlinear-regressionsprint

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.