| loess_optnum | R Documentation |
Function for determining optimal spatial data discretization for individual variables based on locally estimated scatterplot smoothing (LOESS) model.
loess_optnum(qvec, discnumvec, increase_rate = 0.05)
qvec |
A numeric vector of q statistics. |
discnumvec |
A numeric vector of break numbers corresponding to |
increase_rate |
(optional) The critical increase rate of the number of discretization.
Default is |
A two element numeric vector.
discnumoptimal number of spatial data discretization
increase_ratethe critical increase rate of the number of discretization
When increase_rate is not satisfied by the calculation, the discrete number corresponding
to the highest q statistic is selected as a return.
Note that sdsfun sorts discnumvec from smallest to largest and keeps qvec in
one-to-one correspondence with discnumvec.
qv = c(0.26045642,0.64120405,0.43938704,0.95165535,0.46347836,
0.25385338,0.78778726,0.95938330,0.83247885,0.09285196)
loess_optnum(qv,3:12)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.