prepare_data | R Documentation |
An auxiliary function to generate useful objects for the other functions in this package.
Function prepare_data
has the goal of receiving the database of the user to generate important variables that will be used in the MCMC.
And in the end to generate the synthetic coordinates.
In the input, the function receives the parameters: dataset
, coord
, limits
, grid
, continuous
.
prepare_data(dataset, coord, limits = c(), grid = 10, continuous = FALSE)
dataset |
A data frame with all the information except the coordinates |
coord |
An object with two columns indicating the longitude and latitude respectively of the elements in the dataset |
limits |
An object that is a vector of the dimensions where will be create the grids passed through the sequence of xmin, xmax, ymin, ymax. The default is create by using the maximum and the minimum of the coords object. |
grid |
The grid represents the quantities of divisions that will be made in the location. Bigger the grid, closer the synthetic coordinates are to the real coordinates. With a default result of (grid = 10) |
continuous |
An object that indicates which columns in the dataset correspond to continuous variables. The default is FALSE which means that there is none continuous variable. (Still not adapted for cases with more than one continuous variable) |
A list containing useful objects to the mcmc function.
NUNES, Letícia. Métodos de Simulação de Dados Geográficos Sintéticos Para Bases Confidenciais. *Dissertação de Mestrado*, [s. l.], 2018. Disponível em: :{http//est.ufmg.br/portal/arquivos/mestrado/dissertacoes/dissertacao_Leticia_Silva_Nunes.pdf
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.