fit distributions {isobar} | R Documentation

## Fit weighted and unweighted Cauchy and Normal distributions

### Description

Functions to fit the probability density functions on ratio distribution.

### Usage

    fitCauchy(x)
    fitNorm(x, portion = 0.75)
    fitWeightedNorm(x, weights)
    fitNormalCauchyMixture(x)
    fitGaussianMixture(x, n = 500)
    fitTlsd(x)

### Arguments

`x` | Ratios
`weights` | Weights
`portion` | Central portion of data to take for computation
`n` | number of sampling steps

### Value

`Cauchy`,`Norm`

### Author(s)

Florian P Breitwieser, Jacques Colinge.

### See Also

proteinRatios

### Examples

    library(distr)
    data(ibspiked_set1)
    data(noise.model.hcd)
    # calculate protein ratios of Trypsin and CERU_HUMAN. Note: this is only
    #  for illustration purposes. For estimation of sample variability, data
    #  from all protein should be used
    pr <- proteinRatios(ibspiked_set1,noise.model=noise.model.hcd,
                        cl=as.character(c(1,1,2,2)),combn.method="intraclass",protein=c("136429","P00450"))

    # fit a Cauchy distribution
    ratiodistr <- fitCauchy(pr$lratio)
    plot(ratiodistr)

[Package isobar version 1.38.0 Index]