diff --git a/docs/404.html b/docs/404.html index a271a88..8c80bbf 100644 --- a/docs/404.html +++ b/docs/404.html @@ -32,7 +32,7 @@ fistools - 1.2.10 + 1.2.13 diff --git a/docs/CODE_OF_CONDUCT.html b/docs/CODE_OF_CONDUCT.html index 7005b09..fd27571 100644 --- a/docs/CODE_OF_CONDUCT.html +++ b/docs/CODE_OF_CONDUCT.html @@ -17,7 +17,7 @@ fistools - 1.2.10 + 1.2.13 diff --git a/docs/LICENSE-text.html b/docs/LICENSE-text.html index a5e282d..a1b1450 100644 --- a/docs/LICENSE-text.html +++ b/docs/LICENSE-text.html @@ -17,7 +17,7 @@ fistools - 1.2.10 + 1.2.13 diff --git a/docs/LICENSE.html b/docs/LICENSE.html index 4f3c1a6..026975f 100644 --- a/docs/LICENSE.html +++ b/docs/LICENSE.html @@ -17,7 +17,7 @@ fistools - 1.2.10 + 1.2.13 diff --git a/docs/authors.html b/docs/authors.html index 3caa924..7e26b88 100644 --- a/docs/authors.html +++ b/docs/authors.html @@ -17,7 +17,7 @@ fistools - 1.2.10 + 1.2.13 @@ -70,13 +70,13 @@

Citation

Devisscher S, Pallemaerts L, Delva S, Cartuyvels E, Bollen M (2024). fistools: Tools & data used for wildlife management & invasive species in Flanders. -R package version 1.2.10. +R package version 1.2.13.

@Manual{,
   title = {fistools: Tools & data used for wildlife management & invasive species in Flanders},
   author = {Sander Devisscher and Lynn Pallemaerts and Soria Delva and Emma Cartuyvels and Martijn Bollen},
   year = {2024},
-  note = {R package version 1.2.10},
+  note = {R package version 1.2.13},
 }
diff --git a/docs/index.html b/docs/index.html index c56faed..894be7d 100644 --- a/docs/index.html +++ b/docs/index.html @@ -33,7 +33,7 @@ fistools - 1.2.10 + 1.2.13 diff --git a/docs/pkgdown.yml b/docs/pkgdown.yml index 5298252..d4b830f 100644 --- a/docs/pkgdown.yml +++ b/docs/pkgdown.yml @@ -2,4 +2,4 @@ pandoc: 2.9.2.1 pkgdown: 2.1.1 pkgdown_sha: ~ articles: {} -last_built: 2024-10-10T13:48Z +last_built: 2024-11-13T15:22Z diff --git a/docs/reference/CRS_extracter.html b/docs/reference/CRS_extracter.html index 473bed0..c9cfc91 100644 --- a/docs/reference/CRS_extracter.html +++ b/docs/reference/CRS_extracter.html @@ -19,7 +19,7 @@ fistools - 1.2.10 + 1.2.13 diff --git a/docs/reference/UUID_List.html b/docs/reference/UUID_List.html index 468268f..4d3061c 100644 --- a/docs/reference/UUID_List.html +++ b/docs/reference/UUID_List.html @@ -17,7 +17,7 @@ fistools - 1.2.10 + 1.2.13 diff --git a/docs/reference/apply_grtsdb.html b/docs/reference/apply_grtsdb.html index 2e9cfca..533a626 100644 --- a/docs/reference/apply_grtsdb.html +++ b/docs/reference/apply_grtsdb.html @@ -18,7 +18,7 @@ fistools - 1.2.10 + 1.2.13 diff --git a/docs/reference/boswachterijen.html b/docs/reference/boswachterijen.html index 01477ec..eb01a85 100644 --- a/docs/reference/boswachterijen.html +++ b/docs/reference/boswachterijen.html @@ -18,7 +18,7 @@ fistools - 1.2.10 + 1.2.13 diff --git a/docs/reference/calculate_polygon_centroid.html b/docs/reference/calculate_polygon_centroid.html index 0dfe8a8..3148238 100644 --- a/docs/reference/calculate_polygon_centroid.html +++ b/docs/reference/calculate_polygon_centroid.html @@ -17,7 +17,7 @@ fistools - 1.2.10 + 1.2.13 diff --git a/docs/reference/check.html b/docs/reference/check.html index 0a430d6..1a8cea0 100644 --- a/docs/reference/check.html +++ b/docs/reference/check.html @@ -17,7 +17,7 @@ fistools - 1.2.10 + 1.2.13 diff --git a/docs/reference/cleanup_sqlite.html b/docs/reference/cleanup_sqlite.html index 254c575..9c0e208 100644 --- a/docs/reference/cleanup_sqlite.html +++ b/docs/reference/cleanup_sqlite.html @@ -17,7 +17,7 @@ fistools - 1.2.10 + 1.2.13 diff --git a/docs/reference/col_content_compare.html b/docs/reference/col_content_compare.html index fe77da1..55f56d3 100644 --- a/docs/reference/col_content_compare.html +++ b/docs/reference/col_content_compare.html @@ -19,7 +19,7 @@ fistools - 1.2.10 + 1.2.13 diff --git a/docs/reference/colcompare.html b/docs/reference/colcompare.html index f106ee0..2015d3c 100644 --- a/docs/reference/colcompare.html +++ b/docs/reference/colcompare.html @@ -17,7 +17,7 @@ fistools - 1.2.10 + 1.2.13 diff --git a/docs/reference/collect_osm_features.html b/docs/reference/collect_osm_features.html index 89f66b3..631b464 100644 --- a/docs/reference/collect_osm_features.html +++ b/docs/reference/collect_osm_features.html @@ -23,7 +23,7 @@ fistools - 1.2.10 + 1.2.13 diff --git a/docs/reference/download_dep_media.html b/docs/reference/download_dep_media.html index a17140e..4980453 100644 --- a/docs/reference/download_dep_media.html +++ b/docs/reference/download_dep_media.html @@ -18,7 +18,7 @@ fistools - 1.2.10 + 1.2.13 diff --git a/docs/reference/download_gdrive_if_missing.html b/docs/reference/download_gdrive_if_missing.html index 10585db..4709ab0 100644 --- a/docs/reference/download_gdrive_if_missing.html +++ b/docs/reference/download_gdrive_if_missing.html @@ -19,7 +19,7 @@ fistools - 1.2.10 + 1.2.13 diff --git a/docs/reference/download_seq_media.html b/docs/reference/download_seq_media.html index 4ed9c0c..14037d3 100644 --- a/docs/reference/download_seq_media.html +++ b/docs/reference/download_seq_media.html @@ -18,7 +18,7 @@ fistools - 1.2.10 + 1.2.13 diff --git a/docs/reference/drg_example.html b/docs/reference/drg_example.html index 9ca6625..64114a4 100644 --- a/docs/reference/drg_example.html +++ b/docs/reference/drg_example.html @@ -17,7 +17,7 @@ fistools - 1.2.10 + 1.2.13 diff --git a/docs/reference/index.html b/docs/reference/index.html index 97fabd2..23a94b6 100644 --- a/docs/reference/index.html +++ b/docs/reference/index.html @@ -17,7 +17,7 @@ fistools - 1.2.10 + 1.2.13 @@ -85,6 +85,22 @@

Download functions download_seq_media()

Download sequence media

+ +

Plotting functions

+

+ + +

qd_pci1()

+ +

Potential conflict index (first variant)

+ +

qd_pci2()

+ +

Potential conflict index (second variant)

+ +

qd_pci2_D()

+ +

Distance matrix for qd_pci2

Datasets

diff --git a/docs/reference/install_sp.html b/docs/reference/install_sp.html index 2a14e36..6a90178 100644 --- a/docs/reference/install_sp.html +++ b/docs/reference/install_sp.html @@ -17,7 +17,7 @@ fistools - 1.2.10 + 1.2.13 diff --git a/docs/reference/label_converter.html b/docs/reference/label_converter.html index 81fba77..80d6e06 100644 --- a/docs/reference/label_converter.html +++ b/docs/reference/label_converter.html @@ -17,7 +17,7 @@ fistools - 1.2.10 + 1.2.13 diff --git a/docs/reference/label_selecter.html b/docs/reference/label_selecter.html index 9cb6095..c7ca4be 100644 --- a/docs/reference/label_selecter.html +++ b/docs/reference/label_selecter.html @@ -17,7 +17,7 @@ fistools - 1.2.10 + 1.2.13 diff --git a/docs/reference/lib_crs.html b/docs/reference/lib_crs.html index d9bf420..2072e4f 100644 --- a/docs/reference/lib_crs.html +++ b/docs/reference/lib_crs.html @@ -17,7 +17,7 @@ fistools - 1.2.10 + 1.2.13 diff --git a/docs/reference/qd_pci1.html b/docs/reference/qd_pci1.html new file mode 100644 index 0000000..cc50712 --- /dev/null +++ b/docs/reference/qd_pci1.html @@ -0,0 +1,115 @@ + +Potential conflict index (first variant) — qd_pci1 • fistools + + +
+
+ + + +
+
+ + +
+

questionnaire data analysis: potential conflict index

+
+ +
+
qd_pci1(x, scale_values = c(-2:2), x_is_table = FALSE)
+
+ +
+

Arguments

+ + +
x
+

vector with scores of the respondents

+ + +
scale_values
+

vector with levels; default: -2:2

+ + +
x_is_table
+

if TRUE, x is table with the distribution of the scores

+ +
+
+

Value

+

PCI-score (potential for conflict index)

+
+
+

See also

+

Other plotting: +qd_pci2(), +qd_pci2_D()

+
+ +
+

Examples

+
if (FALSE) { # \dontrun{
+ set.seed(201)
+ Xv <- sample(-2:2, size = 100, replace = TRUE) #random responses
+ Yv <- rep(c(-2,2),50) #most extreme difference
+ Zv <- rep(2,100) #minimal difference
+ #qd_pci1
+ qd_pci1(Xv, scale_values = -2:2, x_is_table = FALSE) # 0.4
+ qd_pci1(Yv, scale_values = -2:2, x_is_table = FALSE) # 1
+ qd_pci1(Zv, scale_values = -2:2, x_is_table = FALSE) # 0
+} # }
+
+
+
+
+ +
+ + +
+ + + + + + + + diff --git a/docs/reference/qd_pci2.html b/docs/reference/qd_pci2.html new file mode 100644 index 0000000..8fc6092 --- /dev/null +++ b/docs/reference/qd_pci2.html @@ -0,0 +1,136 @@ + +Potential conflict index (second variant) — qd_pci2 • fistools + + +
+
+ + + +
+
+ + +
+

Calculates the potential conflict index based on the distance matrix between responses.

+
+ +
+
qd_pci2(
+  x,
+  scale_values = c(-2:2),
+  x_is_table = FALSE,
+  m = 1,
+  p = 1,
+  print = FALSE
+)
+
+ +
+

Arguments

+ + +
x
+

vector with scores of the respondents

+ + +
scale_values
+

vector with levels; default: -2:2

+ + +
x_is_table
+

if TRUE, x is table with the distribution of the scores

+ + +
m
+

correction; default: m = 1

+ + +
p
+

power; default: p = 1

+ + +
print
+

flag; if TRUE print results

+ +
+
+

Value

+

PCI-score (potential for conflict index)

+
+
+

See also

+

Other plotting: +qd_pci1(), +qd_pci2_D()

+
+ +
+

Examples

+
if (FALSE) { # \dontrun{
+set.seed(201)
+Xv <- sample(-2:2, size = 100, replace = TRUE) #random responses
+Yv <- rep(c(-2,2),50) #most extreme difference
+Zv <- rep(2,100) #minimal difference
+#qd_pci2 - using D2 (m=1)
+qd_pci2(Xv, scale_values = -2:2, x_is_table = FALSE, m = 1, p = 1) # 0.37
+qd_pci2(Yv, scale_values = -2:2, x_is_table = FALSE, m = 1, p = 1) # 1
+qd_pci2(Zv, scale_values = -2:2, x_is_table = FALSE, m = 1, p = 1) # 0
+qd_pci2(Xv, scale_values = -2:2, x_is_table = FALSE, m = 2, p = 1) # 0.31
+qd_pci2(Yv, scale_values = -2:2, x_is_table = FALSE, m = 2, p = 1) # 1
+qd_pci2(Zv, scale_values = -2:2, x_is_table = FALSE, m = 2, p = 1) # 0
+} # }
+
+
+
+ +
+ + +
+ + + + + + + + diff --git a/docs/reference/qd_pci2_D.html b/docs/reference/qd_pci2_D.html new file mode 100644 index 0000000..29f42dd --- /dev/null +++ b/docs/reference/qd_pci2_D.html @@ -0,0 +1,116 @@ + +Distance matrix for qd_pci2 — qd_pci2_D • fistools + + +
+
+ + + +
+
+ + +
+

Calculates distance matrix for the function qd_pci2

+
+ +
+
qd_pci2_D(x, m = 1, p = 1)
+
+ +
+

Arguments

+ + +
x
+

vector with the scores of the respondents

+ + +
m
+

m value in the formula (see details)

+ + +
p
+

power value in the formula (see details)

+ +
+
+

Value

+

single value containing pci index

+
+
+

Details

+

$$Dp_{x,y} = (|r_{x} - r_{y}|) - (m-1))^{p}$$ +$$if sign(r_{x} \neq r_{y}) \\ +else d_{x,y} = 0$$ +Dp_x,y = (|r_x - r_y| - (m-1))^p

+
+
+

See also

+

Other plotting: +qd_pci1(), +qd_pci2()

+
+ +
+

Examples

+
if (FALSE) { # \dontrun{
+#'set.seed(201)
+Xv <- sample(-2:2, size = 100, replace = TRUE) #random responses
+qd_pci2(Xv, scale_values = -2:2, x_is_table = FALSE, m = 1, p = 1) # 0.37
+} # }
+
+
+
+ +
+ + +
+ + + + + + + + diff --git a/docs/reference/rename_ct_files.html b/docs/reference/rename_ct_files.html index 2f8cc6a..fe1c323 100644 --- a/docs/reference/rename_ct_files.html +++ b/docs/reference/rename_ct_files.html @@ -21,7 +21,7 @@ fistools - 1.2.10 + 1.2.13 diff --git a/docs/sitemap.xml b/docs/sitemap.xml index 19d341c..a45086d 100644 --- a/docs/sitemap.xml +++ b/docs/sitemap.xml @@ -24,6 +24,9 @@ /reference/label_converter.html /reference/label_selecter.html /reference/lib_crs.html +/reference/qd_pci1.html +/reference/qd_pci2.html +/reference/qd_pci2_D.html /reference/rename_ct_files.html