Learn R Programming

bda (version 3.1.3-2)

gof.test: To perform goodness-of-fit test.

Description

To perform goodness-of-fit test.

Usage

gof.test(object, x,...)

Arguments

x
A sample data.
object
An R object obtained from fitting a distribution to a data set. Supported classes include 'gamma','norm','weibull','bde', 'em'.
...
Controls

See Also

mediation.test,perm.test.

Examples

Run this code
x = rnorm(1000,34.5,1.5)
y = round(x,0)
##  fit by histospline: class=bde
out1 = histospline(y)
gof.test(out1,x)
gof.test(out1,y)

Run the code above in your browser using DataLab