Calculates confidence intervals and relevance and significance values given estimates, standard errors and, for relevance, additional quantities.
inference(object = NULL, estimate = NULL, teststatistic = NULL,
se = NA, n = NULL, df = NULL,
stcoef = TRUE, rlv = TRUE, rlv.threshold = getOption("rlv.threshold"),
testlevel = getOption("testlevel"), ...)
A data.frame of class "inference"
, with the variables
estimated effect(s), often coefficients, and their standard errors
lower and upper limit of the confidence interval
t-test statistic
p value
significance value, i.e., test statistic divided by
critical value, which in turn is the 1-testlevel/2
-quantile
of the t-distribution.
confidence interval for effect
If rlv
is TRUE
,
standardized coefficient
confidence interval for stcoef
estimated relevance of coef
secured relevance, lower end of confidence interval
for the relevance of coef
potential relevance, upper end of confidence interval ...
symbols for the secured relevance
relevance class
A data.frame containing, as its variables,
the arguments
estimate
to df
, as far as needed, or
a vector to be used as estimate
if estimate
is not specified...
... or a model fit object
estimate(s) of the parameter(s)
test statistic(s)
standard error(s) of the estimate(s)
number(s) of observations
degrees of freedom of the residuals
standardized coefficients.
If NULL
, these will be calculated from object
,
if the latter is a model fit.
logical: Should relevances be calculated?
Relevance threshold(s). May be a simple number for simple inference, or a vector containing the elements
stand
:threshold for (simple) standardized effects
rel
:for relative effects,
coef
:for standardized coefficients,
drop
:for drop effects,
pred
:for prediction intervals.
1 - confidence level
furter arguments, passed to
termtable
and termeffects
Werner A. Stahel
The estimates divided by standard errors are assumed to be
t-distributed with df
degrees of freedom.
For df==Inf
, this is the standard normal distribution.
Werner A. Stahel (2020). New relevance and significance measures to replace p-values. PLOS ONE 16, e0252991, doi: 10.1371/journal.pone.0252991
link{twosamples}
,
link{termtable}, link{termeffects}
data(d.blast)
rr <-
lm(log10(tremor)~location+log10(distance)+log10(charge),
data=d.blast)
inference(rr)
Run the code above in your browser using DataLab