random.test.data {SpatialML} | R Documentation |
Radmom data generator
Description
Generates datasets with random data for modelling including a dependent variable, independent variables and X,Y coordinates.
Usage
random.test.data(nrows = 10, ncols = 10, vars.no = 3, dep.var.dis = "normal",
xycoords = TRUE)
Arguments
nrows |
an integer referring to the number of rows for a regular grid |
ncols |
an integer referring to the number of columns for a regular grid |
vars.no |
an integer referring to the number of independent variables |
dep.var.dis |
a character referring to the distribution of the dependent variable. Options are "normal" (default) and "poisson" |
xycoords |
a logical value indicating whether X,Y coordinates will be created (default) or not. |
Details
The creation of a random dataset was necessary here to provide examples to some functions. However, random datasets may be used in simulation studies.
Value
a dataframe
Author(s)
Stamatis Kalogirou <stamatis.science@gmail.com>
Examples
RDF <- random.test.data(12,12,3)
[Package SpatialML version 0.1.7 Index]