summary.samediff: Summary method for samediff objects.

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/samediff.R

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

1
2
## 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

1
2
3
4
5
6
7
8
# 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)

sensR documentation built on May 2, 2019, 9:43 a.m.