Learn R Programming

sensR (version 1.5-2)

summary.samediff: 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 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.

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.

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.

See Also

confint.samediff, profile.samediff

Examples

Run this code
# NOT RUN {
# 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)

# }

Run the code above in your browser using DataLab