Difference of estimated K functions
kdest
determines the difference in estimated K
functions for a set of cases and controls. Non-rejection
envelopes can also be produced.
kdest( x, case = 2, nsim = 0, level = 0.95, r = NULL, rmax = NULL, breaks = NULL, correction = c("border", "isotropic", "Ripley", "translate"), nlarge = 3000, domain = NULL, var.approx = FALSE, ratio = FALSE )
x |
A |
case |
The position of the name of the "case" group
in |
nsim |
An non-negative integer. Default is 0. The
difference in estimated K functions will be calculated
for |
level |
The level used for the non-rejection envelopes.
Ignored if |
r |
Optional. Vector of values for the argument r at which K(r)
should be evaluated. Users are advised not to specify this
argument; there is a sensible default. If necessary, specify |
rmax |
Optional. Maximum desired value of the argument r. |
breaks |
This argument is for internal use only. |
correction |
Optional. A character vector containing any selection of the
options |
nlarge |
Optional. Efficiency threshold.
If the number of points exceeds |
domain |
Optional. Calculations will be restricted
to this subset of the window. See Details of
|
var.approx |
Logical. If |
ratio |
Logical.
If |
Returns a kdenv
object. See documentation
for spatstat::Kest
.
Joshua French
Waller, L.A. and Gotway, C.A. (2005). Applied Spatial Statistics for Public Health Data. Hoboken, NJ: Wiley.
data(grave) kd1 = kdest(grave) plot(kd1, iso ~ r, ylab = "difference", legend = FALSE, main = "") kd2 = kdest(grave, nsim = 9, level = 0.8) plot(kd2)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.