ci.se | R Documentation |
compute standard error from confidence interval
we recommend checking the computations by using result = "diff". see below.
computations are based on t-distribution, not z
ci.se(est, cil, ciu, n, k, result = c("ciu", "cil", "avg", "diff", "marge"))
est |
the point estimate (e.g., a regression coefficient, a mean) |
cil |
the lower bound of the confidence interval |
ciu |
the upper bound of the confidence interval |
n |
the sample size |
k |
the total number of predictors. for converting the ci associated with a raw mean, enter k = 0. |
result |
select one of:
|
# e.g., regression b=.156, 95CI [.10, .225], n=166, 3 total predictors
ci.se(.156, .10, .225, 166, 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.