cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
Choose Language Hide Translation Bar

User Input List for Regression Analysis

I 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 )

       )

);
2 REPLIES 2
txnelson
Super User

Re: User Input List for Regression Analysis

Place 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
		)
	)
);
Jim

Re: User Input List for Regression Analysis

This works well for my initial list. What if I want to have interactions between two factors? (i.e. myList[1] * myList[2])