Learn R Programming

HyperbolicDist (version 0.6-5)

resistors: Resistance of One-half-ohm Resistors

Description

This data set gives the resistance in ohms of 500 nominally one-half-ohm resistors, presented in Hahn and Shapiro (1967). Summary data giving the frequency of observations in 28 intervals.

Usage

data(resistors)

Arguments

Format

The resistors data frame has 28 rows and 2 columns.

[, 1]midpointsmidpoints of intervals (ohm)
[, 2]countsnumber of observations in interval

References

Chen, Hanfeng, and Kamburowska, Grazyna (2001) Fitting data to the Johnson system. J. Statist. Comput. Simul., 70, 21--32.

Examples

Run this code
data(resistors)
str(resistors)
attach(resistors)
### Construct data from frequency summary, taking all observations
### at midpoints of intervals
resistances <- rep(midpoints,counts)
hist(resistances)
logHist(resistances)
## Fit the hyperbolic distribution
hyperbFit(resistances) 

## Actually fit.hyperb can deal with frequency data
hyperbFit(midpoints, freq=counts)

Run the code above in your browser using DataLab