simulation: Generate artificial data

View source: R/simulation.R

simulationR Documentation

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)

Arguments

N

The number of cross-sectional units

S

The length of time series

Value

An N times S matrix of panel data

Examples

panelhetero::simulation(N = 300, S = 50)


tkhdyanagi/panelhetero documentation built on June 28, 2023, 1:48 a.m.