summary.samediff: Summary method for samediff objects.

View source: R/samediff.R

summary.samediffR Documentation

Summary method for samediff objects.

Description

Makes a summary of a samediff object with option to use profile likelihood for confidence intervals and p-values or the assymptotic variance-covariance matrix.

Usage

## S3 method for class 'samediff'
summary(object, profile = TRUE, ...)

Arguments

object

a samediff object

profile

logical: Should the profile likelihood be used for confidence intervals and p-values for the parameters? Defaults to TRUE. If FALSE the assymptotic variance-covariance matrix derived from the observed Fisher information matrix will be used. See Details for more information.

...

can be level, eg 0.95 to specify the confidence level of the intervals.

Details

Note that the variance-covariance matrix does not always exist in contrast to the profile likelihood. profile = FALSE may therefore cause confidence intervals etc. to be NA.

Value

An object of class summary.samediff inheriting elements from the samediff object and with the following additional elements

table

matrix with parameter estimates, standard errors, confidence intervals and p-values.

AIC

the AIC of the object.

Author(s)

Rune Haubo B Christensen

See Also

confint.samediff, profile.samediff

Examples

# data: 8 of the same samples were judged to be same
#       5 of the same samples were judged to be different
#       4 of the different samples were judged to be same
#       9 of the different samples were judged to be different

sadi <- samediff(8, 5, 4, 9)
summary(sadi)
summary(sadi, FALSE)


perbrock/sensR documentation built on Nov. 5, 2023, 10:41 a.m.