powered by
Generates datasets with random data for modelling including a dependent variable, independent variables and X,Y coordinates.
random.test.data(nrows = 10, ncols = 10, vars.no = 3, dep.var.dis = "normal", xycoords = TRUE)
a dataframe
an integer referring to the number of rows for a regular grid
an integer referring to the number of columns for a regular grid
an integer referring to the number of independent variables
a character referring to the distribution of the dependent variable. Options are "normal" (default) and "poisson"
a logical value indicating whether X,Y coordinates will be created (default) or not.
Stamatis Kalogirou <stamatis.science@gmail.com>
The creation of a random dataset was necessary here to provide examples to some functions. However, random datasets may be used in simulation studies.
RDF <- random.test.data(12,12,3)
Run the code above in your browser using DataLab