Hi @Katz0801 ,
It's because the PCPP is a column reference, whereas
dt = Current Data Table();
pCPP1 = Column("X1");
pcpp1name=pcpp1<<get name;
pCPP1Target = 10;
term_expr=expr(PF << Term Value(pcpp_placeholder( pCPP1Target, Lock( 0 ), Show( 1 ) )););
substitute into (term_expr, expr(pcpp_placeholder), pcpp1name);
ColNames = dt << Get Column Names("String");
Preds = Filter Each ({ColName}, ColNames, Starts With(ColName, "Pred"));
For (i = 1, i <= N Items(Preds), i++,
PF = Profiler(
Y(Preds[i]),
:Preds[i] << Response Limits
);
term_Expr;
PF << Factor Settings << Remember Settings( "Target" );
);
the term value is looking for the text name of the X1 value, you can use 'Substitute Into' with an expression to get that in place.
“All models are wrong, but some are useful”