reg_mazi: regressing function for barra

Description Usage Arguments Value

Description

the regression satisfies the specific one constriant optimization. mtsfr_i SHOULD WENT THROUGH GF_CAP, GF_SECTOR before input.

Usage

1
reg_mazi(mtsfr_i, y, fnames, subset_reg = NULL)

Arguments

y

string name for y.

fnames

string vector for factor names.

subset_reg

If not null, the column in mtsfr_i should include 'subset_reg_flag' to indicate the subset to regress.

Value

A list, including three values, frtn, res, est_rtn(estimated values).


raphael210/QDataGet documentation built on May 26, 2019, 11:02 p.m.