fit: Call Julia code to fit the values

View source: R/fit.R

fitR Documentation

Call Julia code to fit the values

Description

Call Julia code to fit the values

Usage

fit(rtigerobj, max.iter , eps,
trace, all = TRUE, random = FALSE,
specific = FALSE, nsamples = 20,
post.processing = TRUE)

Arguments

rtigerobj

an RTIGER object.

max.iter

maximum number of iterations to acomplish by the EM.

eps

differnece threshold to halt the EM.

trace

logical value whether to trace the changes in the parameters along the iterations.

all

logical value whether to use all data to fit the model.

random

if all FALSE use random samples.

specific

if all FALSE use specific samples.

nsamples

if random TRUE, how many samples to use.

post.processing

logical value, whether to run post.processing process.

Value

RTIGER object

Examples

## Not run: 
data("fittedExample")
sourceJulia()
myfit = fit(myDat, max.iter = 2, eps=0.01,
            trace = TRUE, all = TRUE,
            random = FALSE, specific = FALSE,
            nsamples = 20, post.processing = TRUE)


## End(Not run)

RTIGER documentation built on March 31, 2023, 5:41 p.m.