I am attempting to develop an Industry Growth Factor (for Sales, OpInc, NetInc), but using the Regression Growth functions as opposed to the traditional method of
Gr%(OpInc(0,TTM),OpInc(N,TTM),N)
Unfortunately, given the available factors I am having a bit of trouble, and was hoping someone might have a workaround.
Note that SalesTTMInd, OpIncTTMInd, NetIncBXorTTMInd are not defined in the Factor Library, so to start we need to use the FSum function to create these Factors. So something like this
$OpIncTTMInd = FSum(
OpInc(0,TTM),#Industry)
The next step will be to wrap that in a regression function, e.g.
$OpIncIndRegGrTTM = Eval(LinReg("FSum(
OpInc(CTR*2,TTM),#Industry)", 10) ,RegGr%(2), NA)
In principle this should work, however the nested quotes seems to give the interpreter difficulties. When I attempt to run this function in the screener I get the following error:
ERROR: Encountered error in Rule 20: While computing Y with CTR=0 for LinReg: Could not find uid 44230 in function FSum – map size is 0
Anyone have a solution for this or another way to approach this problem?