Learn R Programming

panelhetero (version 1.0.1)

simulation: Generate artificial data

Description

The `simulation()` function enables to generate artificial data from an AR(1) model with random coefficients. The function is used in the package vignette.

Usage

simulation(N, S)

Value

An N times S matrix of panel data

Arguments

N

The number of cross-sectional units

S

The length of time series

Examples

Run this code
panelhetero::simulation(N = 300, S = 50)

Run the code above in your browser using DataLab