quasiDistributionDistanceSlater: Generate random grids and calculate 'Slater distances' for...

Description Usage Arguments Value Author(s) See Also Examples

View source: R/distance.R View source: R/dev-functions.r

Description

All Slater distances are returned as a vector. The valiues can be used e.g. to assess the distributions standard deviation.

Usage

1
2
3
4
5
6
7
8
quasiDistributionDistanceSlater(
  reps,
  nc,
  ne,
  range,
  prob = NULL,
  progress = TRUE
)

Arguments

nc

Number of constructs (default 10).

ne

Number of elements (default 15).

range

Minimal and maximal scale value (default c(1, 5)).

prob

The probability of each rating value to occur. If NULL (default) the distribution is uniform.

progress

Whether to show a progress bar.

rep

Number of grids to be produced (default is 3).

Value

A vector containing Slater distance values.

Author(s)

Mark Heckmann

See Also

randomGrids; distanceSlater; distanceHartmann.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
 
 vals <- quasiDistributionDistanceSlater(100, 10, 10, c(1,5), pro=T)
 vals
 sd(vals)
 hist(vals, breaks=50)
 

## End(Not run)

markheckmann/OpenRepGrid documentation built on April 30, 2021, 2:33 a.m.