bootsvar: Bootstrap variance estimator of structural parameters.

View source: R/PCODE.R

bootsvarR Documentation

Bootstrap variance estimator of structural parameters.

Description

Obtaining an estimate of variance for structural parameters by bootstrap method.

Usage

bootsvar(data, time, ode.model,par.names,state.names, likelihood.fun = NULL,
       par.initial, basis.list, lambda = NULL,bootsrep,controls = NULL)

Arguments

data

A data frame or a matrix contain observations from each dimension of the ODE model.

time

A vector contain observation times or a matrix if time points are different between dimensions.

ode.model

An R function that computes the time derivative of the ODE model given observations of states variable and structural parameters.

par.names

The names of structural parameters defined in the 'ode.model'.

state.names

The names of state variables defined in the 'ode.model'.

likelihood.fun

A likelihood function passed to PCODE in case of that the error termsdevtools::document()do not have a Normal distribution.

par.initial

Initial value of structural parameters to be optimized.

basis.list

A list of basis objects for smoothing each dimension's observations. Can be the same or different across dimensions.

lambda

Penalty parameter.

bootsrep

Bootstrap sample to be used for estimating variance.

controls

A list of control parameters. Same as the controls in pcode.

Value

boots.var The bootstrap variance of each structural parameters.


pCODE documentation built on Sept. 8, 2022, 9:06 a.m.