GitLab at IIASA

generateFakeFSSData_DE.Rd 2.57 KiB
Newer Older
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/generateFakeFSSData_DE.R
\name{generateFakeFSSData_DE}
\alias{generateFakeFSSData_DE}
\title{This function provides a fake sample data set which has the form of the German FSS data. It is important to verify before if the national RDC provides the data
in the form as desired by this function to have a proper fake data set.}
\usage{
generateFakeFSSData_DE(
  nobs = 270000,
  years = c(1999, 2003, 2007, 2010, 2013, 2016, 2020),
  C0codes = NULL
)
}
\arguments{
\item{nobs}{Number of observations approximately to be generated}

\item{years}{Years of survey}

\item{C0codes}{Optional variables to be generated, only meaningful for continues variables.}
}
\value{
Retruns a fake data set based on German FSS data.
}
\description{
This function provides a fake sample data set which has the form of the German FSS data.
}
\details{
This function is written for the German Farm Structure Survey data as it was provided in the year 2021.This means, that the generated data will be in a form that fits
to the variables that are used from 2010 onwards - C0 codes.

In its basic form this function generates data for the years 1999, 2003, 2007, 2010, 2013, 2016 and 2020. For 2013, it is only a sample of the population. The automatically
generated variables comprise 4 regional variables, 7 general variables and 7 production based variables.

\emph{Regional variables}:
\itemize{
  \item C0010U1: NUTS1
  \item C0010UG5: NUTS2
  \item C0010UG4: NUTS3
  \item AGS: LAU
}
The regional variables are reasonable, but far away from correct numbers.

\emph{General variables}:
\itemize{
 \item C0008U1: year of survey
 \item nr: farm id
 \item C0072: weighting factor - generated also for non-sample farms - only relevant for sample farms - weighted sum of a specific variable does not lead to the population sum!
 \item C0025: "N" population or "S" sample farm
 \item C0041: legal status - single farm, unincorporate farm (both as private farm) and corporate farm
 \item C0045: 1 full-time farm, 2 part-time farm, NA neither
 \item C0060UG1: farm type - aggregated to some relevant farm types in Germany
}
\emph{Production variables}:
\itemize{
 \item C0240: total utilized agricultural area
 \item C0231, C0232, C0233, C0234: grass land activities
 \item C0210: arable land
 }
These variables are coherent as grass land and arable land sum up to total land.

Any additional variables provided via C0codes argument are not coherent to these production variables.
}
\examples{
\dontrun{
FSS_data_DE <- generateFakeFSSData_DE()
}
}
\author{
Sebastian Neuenfeldt
}