Description Usage Arguments Details Value References Examples

Simulation of the generalized Thomas model of type B.

1 | ```
SimulateTypeB(pars, seed = NULL, parents.distinct = FALSE, plot = TRUE)
``` |

`pars` |
a named vector of containing the values of the model parameters
( |

`seed` |
a positive integer, which is the seed for a sequence of uniform random numbers. The default seed is based on the current time. |

`parents.distinct` |
logical. If TRUE, points are distinguished by two
groups specified by parameters ( |

`plot` |
logical. If |

Consider the two types of the Thomas model with parameters
*(μ1, ν, σ1)* and
*(μ2, ν, σ2)*.
Parents' configuration and numbers of the offspring cluster sizes are
generated by the two types of uniformly distributed parents
*(x_i^k, y_i^k)* with
*i=1,2,...,Poisson(μk)* for *k=1,2*,
respectively.

Then, using series of different uniform random numbers *{U}* for
different *i* and *j*, each of the offspring coordinates
*(x_j^{k,i}, y_j^{k,i})* of the parents *(k,i)* with *k=1,2* and
*j=1,2,...,Poisson(ν)* is given by

*
x_j^{k,i} = x_i^k + r_k cos (2πU),*

*
y_j^{k,i} = y_i^k + r_k sin (2πU),*

where

*
r_k = σk √{ -2log(1-Uk) }, k = 1, 2,*

with different random numbers *{Uk, U}* for different
*k, i*, and *j*.

`parents` |
a list containing two components named " |

`offspring` |
a list containing two components named " |

U. Tanaka, Y. Ogata and K. Katsura,
Simulation and estimation of the Neyman-Scott type spatial cluster models,
*Computer Science Monographs* **No.34**, 2008, 1-44.
The Institute of Statistical Mathematics.

1 2 | ```
pars <- c(mu1 = 10.0, mu2 = 40.0, nu = 30.0, sigma1 = 0.01, sigma2 = 0.03)
SimulateTypeB(pars, seed = 257)
``` |

NScluster documentation built on March 19, 2018, 9:03 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.