# NOT RUN {
## simulation
pars <- c(mu = 50.0, nu = 30.0, p = 1.5, c = 0.005)
z <- SimulateIP(pars, seed = 353)
## estimation
## need very long c.p.u time in the minimization procedure
# }
# NOT RUN {
init.pars <- c(mu = 55.0, nu = 35.0, p = 1.0, c = 0.01)
z1 <- EstimateIP(z$offspring$xy, init.pars, skip = 100)
# Parameter mu nu p c
# Initial value 55.0000 35.0000 1.0000 0.0100
# MPLE 48.3143 30.5047 1.6467 0.0079
# }
# NOT RUN {
## Palm intensity
par1 <- c(50.0, 30.0, 1.5, 0.005) # pars
par2 <- c(48.3143, 30.5047, 1.6467, 0.0079) # z1$mple
PalmIP(z$offspring$xy, par1, par2)
# }
Run the code above in your browser using DataLab