Learn R Programming

spqdep (version 0.1.3.3)

cr_symb: A function to create symbols

Description

This function obtains the set of symbols to get the Q-statistic

Usage

cr_symb(k = k, m = m)

Value

A list with two types of symbols. Permutation and Combinations-totals

p_symbMatrix with symbols (permutations)
c_symbMatrix with symbols (combinations)

Arguments

k

number of categories

m

length of the m-surrounding

Author

Fernando Lópezfernando.lopez@upct.es
Román Mínguezroman.minguez@uclm.es
Antonio Páezpaezha@gmail.com
Manuel Ruizmanuel.ruiz@upct.es

Details

...

References

  • Ruiz M, López FA, A Páez. (2010). Testing for spatial association of qualitative data using symbolic dynamics. Journal of Geographical Systems. 12 (3) 281-309

See Also

m.surround

Examples

Run this code

# Example 1: Obtain symbols for k=2 classes and m-surroundings of size 5
symb25 <- cr_symb(2,5)
symb25$p_symb # Permutations symbols
symb25$c_symb # Combinations-totals symbols

Run the code above in your browser using DataLab