I have question regarding simulating under mentioned 1D Stochastic Differential Equation in R using Sim.DiffProc package:
dx1 = (b1*x1 − d1*x1) dt + Sqrt(b1*x1 + d1*x1) dW1(t)
I have taken this equation from book: Modeling with Ito Stochastic Differential Equations by E. Allen. In the deterministic and diffusion part of equation, b1 and d1 are model parameters representing birth and death rates (for single population approximation of two interacting populations compartment model). Relevant lines of my code are as under (note that i,ve used theta's to represent parameters in my code):
Code (1):
> fx gx fitmod fx gx fitmod