View source: R/random.test.data.R
random.test.data | R Documentation |
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)
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. |
The creation of a random dataset was necessary here to provide examples to some functions. However, random datasets may be used in simulation studies.
a dataframe
Stamatis Kalogirou <stamatis.science@gmail.com>
RDF <- random.test.data(12,12,3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.