View source: R/downscale_pop.R
downscale_pop | R Documentation |
Downscaling of population data
downscale_pop(
targets,
times = NULL,
xmat,
betas,
xmat.coltypes = NULL,
xmat.proj = NULL,
xmat.dyn.fun = xmat.identity,
options = downscale_control_pop()
)
targets |
A dataframe with columns times, pop.type (optional), and value (all targets >= 0) |
times |
A character vector of time steps for downscaling. The first time step must be present in |
xmat |
A dataframe of explanatory variables with columns ns, ks and value. Defaults to NULL.
|
betas |
A dataframe of coefficients with columns ks, pop.type (optional), and value. Defaults to NULL.
|
xmat.coltypes |
A vector |
xmat.proj |
A dataframe with projections. Includes columns: |
xmat.dyn.fun |
A function providing updates for dynamic xmat columns. Takes as arguments |
options |
A list with solver options. Call |
A list containing
out.res
Dataframe with columns times, ns, pop.type & value (population allocation)
out.solver
A list of the solver output
ds.inputs
A list documenting all the downscale function inputs
dgp1 = sim_pop(1000)
res1 = downscale_pop(targets = dgp1$targets,xmat = dgp1$xmat,betas = dgp1$betas)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.