Generate a panel with M individuals, each individual is observed for different spans of times. Before expanding, generate individual specific normal distribution standard deviation. All individuals share the same mean, but have increasing standard deviations.
Format
A data frame with 9 rows and 5 variables:
- ID
Individual ID
- income
Simulated income
- Q
Number of observed periods for each individual
- sd
Individual-specific income standard deviation
- mean
Individual-specific income mean
Examples
data(simu_income_v5n9)
print(simu_income_v5n9)
#> # A tibble: 8 × 5
#> ID income Q sd mean
#> <int> <dbl> <dbl> <dbl> <dbl>
#> 1 1 1000. 3 0.01 1000
#> 2 1 1000. 3 0.01 1000
#> 3 1 1000. 3 0.01 1000
#> 4 2 1046. 3 100. 1000
#> 5 2 873. 3 100. 1000
#> 6 2 931. 3 100. 1000
#> 7 3 911. 2 200 1000
#> 8 3 1245. 2 200 1000