Learn R Programming

EquiTrends (version 1.0.0)

sim_check: Checking input for the sim_paneldata function

Description

Checking input for the sim_paneldata function

Usage

sim_check(N, tt, beta, p, gamma, eta, lambda, het, phi, sd, burnins)

Value

A list with two elements: a logical object error indicating if an error is encountered and a message (a character string) corresponding to the error. If error is TRUE, message contains an error message. If error is FALSE, message is an empty string.

Arguments

N

The number of cross-sectional units in the panel-data

tt

The number of time periods in the panel-data

beta

The vector of coefficients for the placebo variables. Must be of size tt.

p

The number of additional regressors

gamma

The vector of coefficients for the additional regressors

eta

The vector of fixed effects. Must be of size N.

lambda

The vector of time effects. Must be of size tt.

het

The heteroskedasticity parameter. Must be 0 or 1: het = 1 indicates that the error terms are generated under heteroskedasticity, het = 0 indicates the error terms are generated under homoscedasticity.

phi

The AR(1) parameter for the error terms. Must be in the interval [0,1).

sd

The standard deviation of the error terms. Must be a positive number.

burnins

The number of burn-ins for the AR(1) process. Must be a positive integer.