Learn R Programming

hadron (version 3.1.2)

fit.plateau2cf: fits a plateau to an object of class cf

Description

where applicable, a plateau is fitted to the averaged data in cf using a (correlated) chisquare fit.

Usage

fit.plateau2cf(cf, t1, t2, useCov = FALSE)

Arguments

cf

input object of class cf

t1

starting t-value for the fit

t2

final t-value for the fit.

useCov

perform a correlated chisquare fit or not.

Value

Returns a list with elements

plateau

the fitted plateau value

dplateau

its error

See Also

cf

Examples

Run this code
# NOT RUN {
data(correlatormatrix)
cfnew <- extractSingleCor.cf(correlatormatrix, id=1)
cfnew <- bootstrap.cf(cfnew, boot.R=99, boot.l=1)
X <- fit.plateau2cf(cfnew, t1=13, t2=20)
# }

Run the code above in your browser using DataLab