Learn R Programming

RCTS (version 0.2.4)

calculate_sigma2: Calculates sum of squared errors, divided by NT

Description

Calculates sum of squared errors, divided by NT

Usage

calculate_sigma2(e, NN = nrow(e), TT = ncol(e))

Value

numeric

Arguments

e

matrix with error terms

NN

N

TT

T

Examples

Run this code
Y <- Y_dgp3
set.seed(1)
e <- matrix(rnorm(nrow(Y) * ncol(Y)), nrow = nrow(Y))
calculate_sigma2(e)

Run the code above in your browser using DataLab