"rho2hat"
.
"plot"(x, ..., do.points=FALSE)
"print"(x, ...)
"predict"(object, ..., relative=FALSE)
"rho2hat"
.
relative=FALSE
)
or the relative risk (relative=TRUE
) in the case
of a relative risk estimate.
predict.rho2hat
the value is a pixel image
(object of class "im"
).
For other functions, the value is NULL
.
print
,
predict
and
plot
for the class "rho2hat"
. An object of class "rho2hat"
is an estimate
of the intensity of a point process, as a function of two
given spatial covariates. See rho2hat
.
The method plot.rho2hat
displays the estimated function
$rho$ using plot.fv
, and optionally
adds a rug
plot of the observed values of the covariate.
In this plot the two axes represent possible values of the two covariates.
The method predict.rho2hat
computes a pixel image of the
intensity $rho(Z1(u), Z2(u))$
at each spatial location $u$, where $Z1(u)$
and $Z2(u)$ are the two spatial covariates.
rho2hat
r2 <- with(bei.extra, rho2hat(bei, elev, grad))
r2
plot(r2)
plot(predict(r2))
Run the code above in your browser using DataLab