# NOT RUN {
## simulation
pars <- c(mu = 50.0, nu = 30.0, sigma = 0.03)
z <- SimulateThomas(pars, seed = 117)
## estimation
## need long c.p.u time in the minimization procedure
# }
# NOT RUN {
init.pars <- c(mu = 40.0, nu = 40.0, sigma = 0.05)
z1 <- EstimateThomas(z$offspring$xy, init.pars)
# Parameter mu nu sigma
# Initial value 40.0000 40.0000 0.0500
# MPLE 46.7657 27.2079 0.0279
# }
# NOT RUN {
## Palm intensity
par1 <- c(50.0, 30.0, 0.03) # pars
par2 <- c(46.7657, 27.2079, 0.0279) # z1$mple
PalmThomas(z$offspring$xy, par1, par2)
# }
Run the code above in your browser using DataLab