coeftostring | R Documentation |
Reformat a coefficient as a string with a certain number of decimal places.
coeftostring(x, lead.zero = FALSE, digits = 2)
x |
A |
lead.zero |
Should a leading zero be printed if the coefficient is
non-negative and smaller than one (e.g., |
digits |
Number of decimal places to round to. |
This function takes a numeric
object, usually a coefficient from a
statistical model, and converts it into a character
object. The user
can choose to how many decimal places the number is rounded (usually two in
most published regression models) and whether there should be a leading zero
if the coefficient is between 0 and 1.
A reformatted coefficient string as a character
object.
Philip Leifeld
texreg
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.