calculate_sigma2: Calculates sum of squared errors, divided by NT

View source: R/03_IFE_algorithm_functions.R

calculate_sigma2R Documentation

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))

Arguments

e

matrix with error terms

NN

N

TT

T

Value

numeric

Examples

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

RCTS documentation built on May 31, 2023, 9:20 p.m.

Related to calculate_sigma2 in RCTS...