I am trying to write a procedure that have the following input: expr, xdata,ydata. [dependent variables list]
I want a procedure to calculate Rsquare following the method described in
But I want the proc to take any abitary function and be able to identify the dependent variable...how can I approach it? what function can I use to match [dependent variable list] in expr??