User Input List for Regression AnalysisI have an input box where users can select columns to be run in a regression report. (Long story on why I want to do this.) This part works great. I then insert the list of columns into a list. When I try to put the list or even just a few of the column names into the regression report. It doesn’t work. What should I do to make this work?
The user input list readout looks like this: {"Column 1", "Column 2", "Column 3"}
platform = dt << Fit Model(
Y( :Char(variable)),
Effects(
What should go here?????
),
Personality( "Generalized Regression" ),
Generalized Distribution( "Normal" ),
Run(
Fit( Estimation Method( Two Stage Forward Selection ), Validation Method( AICc ), Enforce Heredity )
)
);Advanced Statistical ModelingConsumer and Market ResearchContent OrganizationData Exploration and VisualizationDesign of ExperimentsMass CustomizationPredictive Modeling and Machine LearningQuality and Process EngineeringRe: User Input List for Regression AnalysisPlace your list within an Eval() function and you should get what you want
myList = {<YOUR list="" of="" columns="">};
platform = dt << Fit Model(
Y( :Char( variable ) ),
Effects( Eval( myList ) ),
Personality( "Generalized Regression" ),
Generalized Distribution( "Normal" ),
Run(
Fit(
Estimation Method( Two Stage Forward Selection ),
Validation Method( AICc ),
Enforce Heredity
)
)
);</YOUR>