Skip to content
A GREGWT implementation on R
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
R
data
man
.gitignore
DESCRIPTION
LICENSE
NAMESPACE
README.rst

README.rst

R GREGWT

Author: Esteban Munoz
Version: 0.7.3
Date: Sat 19 Mar 2016 06:27:35 PM CET

Implementation of GREGWT in R.

Install the development version on GREGWT

Using the devtools library

library(devtools)
install_github("emunozh/GREGWT")

Prepare data for simulation

Simulation.Data <- prepareData(
    GREGWT.census, GREGWT.survey,
    # census parameters
    pop_benchmark=c(2,12),
    census_categories=seq(2,24),
    # survey parameters
    survey_id=FALSE,
    survey_categories=seq(1,3)
)

Parameters:

Running GREGWT

Rewheight the survey to area area_code

Weights.GREGWT <- GREGWT(data_in=Simulation.Data, area_code="02")

Create a synthetic population (under development)

Prepare a survey to be used by an agent based simulation model

Synthetic.pop <- Synthetize(data_in=Weights.GREGWT)

Data

Two datasets are provided in this package.

  1. Census data from 2011 aggregated to municipalities GREGWT.census. Original data set downloaded from [1].

    data("GREGWT.census")
  2. A reformatted version of the public available micro-census of year 2010 (CAMPUS-File) This survey data contains (10179) records and corresponds to the (3.5%) of the official micro census data for scientific use (1% of the total German population) GREGWT.survey. Original data set downloaded from [2].

    data("GREGWT.survey")
[1]https://ergebnisse.zensus2011.de
[2]http://www.forschungsdatenzentrum.de/bestand/mikrozensus/cf/2010/fdz_mikrozensus_cf_2010_ascii-csv.zip
You can’t perform that action at this time.