C_S_fun: Computes the elementary polynomials for each row of the...

View source: R/C_S_fun.R

C_S_funR Documentation

Computes the elementary polynomials for each row of the input, by induction. This corresponds to the what the function C_S does to V in the DDL paper.

Description

Computes the elementary polynomials for each row of the input, by induction. This corresponds to the what the function C_S does to V in the DDL paper.

Usage

C_S_fun(V)

Arguments

V

the matrix of size n x T whose coefficients are used in the elementary symmetric polynomial. NAs can be used for unobserved values.

Value

a matrix of size n x (T + 1) whose value in the (i, j)-th position is C_(j-1)(X, beta) using the values of V = X' * beta in the i-th row. When j - 1 is larger than the number of non-NA values of V in the relevant row, the value NA is returned.


cgaillac/MarginalFElogit documentation built on Dec. 24, 2024, 3:23 p.m.