# NOT RUN {
## simulation
pars <- c(mu = 50.0, nu = 30.0, a = 0.3, sigma1 = 0.005, sigma2 = 0.1)
z <- SimulateTypeA(pars, seed=575)
## estimation
## need very long c.p.u time in the minimization procedure
# }
# NOT RUN {
init.pars <- c(mu=60.0, nu=40.0, a=0.5, sigma1=0.01, sigma2=0.1)
z1 <- EstimateTypeA(z$offspring$xy, init.pars, skip=100)
# Parameter mu nu a sigma1 sigma2
# Initial value 60.0000 40.0000 0.5000 0.0100 0.1000
# MPLE 51.2441 25.1439 0.3431 0.0054 0.0824
# }
# NOT RUN {
## Palm intensity
par1 <- c(50.0, 30.0, 0.3, 0.005, 0.1) # pars
par2 <- c(51.2441, 25.1439, 0.3431, 0.0054, 0.0824) # z1$mple
PalmTypeA(z$offspring$xy, par1, par2)
# }
Run the code above in your browser using DataLab