Description Usage Arguments Details Value Author(s) References See Also Examples
This function takes the discrete temporal data as input, and apply finite difference method to compute the derivative of the solution curves. It then solves an algebraic equation based on the pairwise Euclidean inner products to estimate A, the system matrix.
1 | twostage1(Y, tstep)
|
Y |
An |
tstep |
The constant difference between two consecutive time points (the time step). Currently, this function does not work for data with variable time steps. |
This twostage method is called the simple two-stage method in our
manuscript. We also implemented a more accurate two-stage method based on
smoothing splines as twostage2
in this R package.
Ahat |
The estimated system matrix. |
S |
An |
L |
An |
x0 |
The initial condition. |
Xing Qiu
X. Qiu, T. Xu, B. Soltanalizadeh, and H. Wu. (2020+) Identifiability Analysis of Linear Ordinary Differential Equation Systems with a Single Trajectory. Submitted.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## load Example 3.1. In this example, yy1 are discrete and noisy
## observations of (A2, x0.A), which is practically identifiable.
data("example3.1")
tstep <- tt[2]-tt[1]
myfit1.simple <- twostage1(yy2, tstep)
myfit1.functional <- twostage2(yy1, tt)
## A2 is the true system matrix
round(A2,2)
## simple twostage method is not very accurate
round(myfit1.simple$Ahat,2); round(sum((myfit1.simple$Ahat - A2)^2),2)
## functional twostage method is much more accurate
round(myfit1.functional$Ahat,2); round(sum((myfit1.functional$Ahat - A2)^2),2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.