bda (version 14.3.19)

fit.lnorm: Fitting log-normal distributions

Description

To fit log-normal distributions to raw data.

Usage

fit.lognormal(x, k=1)

Arguments

x

Raw data or grouped data

k

number of components, Default: 1

Value

p0

The estimated proportion of zeros.

p,mean,sigma

The fitted parameters of mixing coefficients, means and standard deviations of the k normal components.

n

The sample size of data.

npar

Number of parameters to be estimated.

llk

Estimated log-likelihood.

Examples

Run this code
# NOT RUN {
 mu = -.5
 s = 2
# }

Run the code above in your browser using DataLab