\Header{Psim}{Simulate Binomial Spatial Point Process}
\keyword{spatial}{Psim}
\begin{Description}\relax
Simulate Binomial spatial point process.\end{Description}
\begin{Usage}
\begin{verbatim}
Psim(n)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{n}] number of points

\end{ldescription}
\end{Arguments}
\begin{Details}\relax
relies on the region being set by \code{ppinit} or \code{ppregion}.\end{Details}
\begin{Value}
list of vectors of \code{x} and \code{y} coordinates.\end{Value}
\begin{Section}{Side Effects}
uses the random number generator.\end{Section}
\begin{References}\relax
Ripley, B. D. (1981) \emph{Spatial Statistics.} Wiley.

Venables, W. N. and Ripley, B. D. (2002)
\emph{Modern Applied Statistics with S.} Fourth edition.  Springer.\end{References}
\begin{SeeAlso}\relax
\code{\Link{SSI}}, \code{\Link{Strauss}}\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
towns <- ppinit("towns.dat")
par(pty="s")
plot(Kfn(towns, 10), type="s", xlab="distance", ylab="L(t)")
for(i in 1:10) lines(Kfn(Psim(69), 10))
\end{ExampleCode}
\end{Examples}

