fitMonoExp: Monoexponential fit of OCT decay

Description Usage Arguments Details Value Author(s)

View source: R/fitMonoExp.R

Description

Monoexponential fit of OCT decay

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
fitMonoExp(
  x,
  y,
  uy,
  method = "optim",
  dataType = 2,
  nb_chains = 4,
  nb_warmup = 500,
  nb_iter = nb_warmup + 500
)

Arguments

x

a numeric vector

y

a numeric vector of responses

uy

a numeric vector of uncertainty on 'y'

method

choice of optimization method in c('optim','sample')

dataType

an numeric (1 or 2) defining the type of data

Details

Bayesian inference of the parameters of an exponential model assuming an uncorrelated normal noise y(x) ~ normal(m(x),uy(x)); m(x) = theta[1] + theta[2]*exp(-dataType*x/theta[3]).

Value

A list containing

best.theta

a vector of optimal parameters

cor.theta

correlation matrix of optimal parameters

method

choice of optimization method

fit

a stanfit object containg the results of the fit

Author(s)

Pascal PERNOT


ppernot/FitOCTlib documentation built on April 11, 2020, 1:55 a.m.