data2lnorm {heR.Misc}R Documentation

Convert raw data to a log-normal distribution

Description

Function to take a data vector and fit a lognormal model to it, optionally plotting the fit and the data together as a CDF.

Usage

data2lnorm(y, plot=TRUE, forceNA = FALSE, ...)

Arguments

y a vector of numerical data
plot a logical indicating whether to plot the fit or not
forceNA a logical indicating whether to convert data values less than 0 into NA values
... additional arguments to plot

Details

This function creates a log-probability plot (a kind of cumulative distribution function or CDF) with the fitted line through the data points. It is based on the qqplot and qnorm R functions.

Value

A list containing the fitted geometric mean and the fitted geometric standard deviation,

Author(s)

Neil E. Klepeis
neil AT exposurescience DOT org
http://klepeis.net

See Also

qqplot, qnorm, bin2lnorm, lpplot.data, lpplot, add.lp.bin, add.lp.data, add.lp.lnorm


[Package heR.Misc version 0.0.4 Index]