Learn R Programming

plmmr (version 4.3.0)

estimate_eta: Estimate eta (to be used in rotating the data)

Description

This function is called internally by plmm()

Usage

estimate_eta(n, s, U, y, incpt_flag)

Value

a numeric value with the estimated value of eta, the variance parameter

Arguments

n

The number of observations

s

The non-zero eigenvalues of K, the realized relationship matrix

U

The eigenvectors of K associated with s

y

Continuous outcome vector

incpt_flag

Logical: Does the model require fitting an intercept?