predict.interv_fit: Extracting point estimates of the interpolated process

Description Usage Arguments Value Examples

View source: R/mlintervals.R

Description

For new values of t provided whitin the scope of the model, the corresponding Maximum LIkelihood estimated value of the process is returned

Usage

1
2
## S3 method for class 'interv_fit'
predict(object, t, se.fit = FALSE, ...)

Arguments

object

an object of class interv_fit

t

a numeric vector; values must lay between 0 and N, where N corresponds to the lenght of the data vector on which the model was estimated

se.fit

boolean value; if TRUE standard errors of the estimates are returned along the point estimates

...

further arguments that will not be processed

Value

Object returned depends on the parameter se.fit. If set to FALSE, a numerical vector is returned, elsewise a data.frame is returned with a column of estimates and a column with their SEs

Examples

1
2
3
M= c(0, 1, -1, 2, 4)
mod= interv_fit(M, t_0= 0, t_end= 1)
predict(mod, c(0, .25, .5, .75, 1))

c-foschi/mlintervals documentation built on July 1, 2020, 1:25 a.m.