<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: User Input List for Regression Report with Interactions in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/User-Input-List-for-Regression-Report-with-Interactions/m-p/437798#M68656</link>
    <description>&lt;P&gt;This solution seems like it could be really flexible. I am unfamiliar with expressions, so please bear with me.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried to have both the basic interactions (a * b) and more complex interactions (a * b^2) work at the same time and I can't seem to figure out how to make it work. Can you provide a little more guidance on this?&lt;/P&gt;</description>
    <pubDate>Wed, 17 Nov 2021 22:37:53 GMT</pubDate>
    <dc:creator>dkraeuter_sunne</dc:creator>
    <dc:date>2021-11-17T22:37:53Z</dc:date>
    <item>
      <title>User Input List for Regression Report with Interactions</title>
      <link>https://community.jmp.com/t5/Discussions/User-Input-List-for-Regression-Report-with-Interactions/m-p/436952#M68598</link>
      <description>&lt;P&gt;I have an input box where users can select columns to be run in a regression report. This part works great. I then insert the list of columns into a list. I would like to take the list of columns and make different interactions that can be inserted into a regression report. Specifically, I am interested in slightly more complicated interactions (i.e. Column 1 * Column 2 ^2) When I try to put anything but just the generic list in the regression report, it doesn’t run the report. What do I do to create these interactions in the report?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The user input list readout looks like this: {"Column 1", "Column 2", "Column 3"}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;platform = dt &amp;lt;&amp;lt; Fit Model(
    Y( :Char( variable ) ),
    Effects(
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// What should go here?????
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;    ),
    Personality( "Generalized Regression" ),
    Generalized Distribution( "Normal" ),
    Run(
        Fit(
            Estimation Method( Two Stage Forward Selection ),
            Validation Method( AICc ),
            Enforce Heredity
        )
    )
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 18:05:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/User-Input-List-for-Regression-Report-with-Interactions/m-p/436952#M68598</guid>
      <dc:creator>dkraeuter_sunne</dc:creator>
      <dc:date>2023-06-09T18:05:24Z</dc:date>
    </item>
    <item>
      <title>Re: User Input List for Regression Report with Interactions</title>
      <link>https://community.jmp.com/t5/Discussions/User-Input-List-for-Regression-Report-with-Interactions/m-p/437018#M68602</link>
      <description>&lt;P&gt;The Scripting Index has an example for Effects - copied in below.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Dogs.jmp" );
obj = Fit Model(
	Y( :LogHist0, :LogHist1, :LogHist3, :LogHist5 ),
	Effects( :drug, :dep1, :drug * :dep1 ),
	Personality( Manova ),
	Run( Response Function( Sum ) )
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 Nov 2021 16:30:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/User-Input-List-for-Regression-Report-with-Interactions/m-p/437018#M68602</guid>
      <dc:creator>Ressel</dc:creator>
      <dc:date>2021-11-16T16:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: User Input List for Regression Report with Interactions</title>
      <link>https://community.jmp.com/t5/Discussions/User-Input-List-for-Regression-Report-with-Interactions/m-p/437026#M68604</link>
      <description>&lt;P&gt;Here is one way to handle this&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);
dt=data table("big class");
variable = "Age";
// If you build your list as expressions the code below works
effectsList = {height, weight, weight * height};

Fit Model(
	Y( :char(variable) ),
	Effects( eval(effectsList) ),
	Personality( "Standard Least Squares" ),
	Emphasis( "Effect Leverage" ),
	Run(
		:char(variable) &amp;lt;&amp;lt; {Summary of Fit( 1 ), Analysis of Variance( 1 ),
		Parameter Estimates( 1 ), Scaled Estimates( 0 ),
		Plot Actual by Predicted( 1 ), Plot Regression( 0 ),
		Plot Residual by Predicted( 1 ), Plot Studentized Residuals( 0 ),
		Plot Effect Leverage( 1 ), Plot Residual by Normal Quantiles( 0 ),
		Box Cox Y Transformation( 0 )}
	)
);

/*
// If you build your list using strings
effectsList = {"height", "weight", "weight * height"};
// You can convert the elements back to expressions by
// using the Parse() function
For( i = 1, i &amp;lt;= N Items( effectsList ), i++,
	effectsList[i] = Parse( effectsList[i] );
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 Nov 2021 15:39:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/User-Input-List-for-Regression-Report-with-Interactions/m-p/437026#M68604</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-11-16T15:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: User Input List for Regression Report with Interactions</title>
      <link>https://community.jmp.com/t5/Discussions/User-Input-List-for-Regression-Report-with-Interactions/m-p/437086#M68612</link>
      <description>&lt;P&gt;Here is another way using expressions. There are more solutions based on expressions than just this example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

dt = Open( "$SAMPLE_DATA/Dogs.jmp" );

predictor = { :drug, :dep1 };
n = N Items( predictor );

effectExpr = Expr( Effects() );
For( x1 = 1, x1 &amp;lt; n, x1++,
	Insert Into( effectExpr, predictor[x1] );
	For( x2 = 2, x2 &amp;lt;= n, x2++,
		Eval(
			Substitute(
				Expr( Insert Into( effectExpr, Expr( xxx1 * xxx2 ) ) ),
				Expr( xxx1 ), predictor[x1],
				Expr( xxx2 ), predictor[x2]
			)
		)
	);
);
Show( Name Expr( effectExpr) );

Eval(
	Substitute(
		Expr(
			obj = dt &amp;lt;&amp;lt; Fit Model(
				Y( :LogHist0, :LogHist1, :LogHist3, :LogHist5 ),
				eee,
				Personality( Manova ),
				Run( Response Function( Sum ) )
			);
		),
		Expr( eee ), Name Expr( effectExpr )
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 Nov 2021 17:28:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/User-Input-List-for-Regression-Report-with-Interactions/m-p/437086#M68612</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2021-11-16T17:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: User Input List for Regression Report with Interactions</title>
      <link>https://community.jmp.com/t5/Discussions/User-Input-List-for-Regression-Report-with-Interactions/m-p/437798#M68656</link>
      <description>&lt;P&gt;This solution seems like it could be really flexible. I am unfamiliar with expressions, so please bear with me.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried to have both the basic interactions (a * b) and more complex interactions (a * b^2) work at the same time and I can't seem to figure out how to make it work. Can you provide a little more guidance on this?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 22:37:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/User-Input-List-for-Regression-Report-with-Interactions/m-p/437798#M68656</guid>
      <dc:creator>dkraeuter_sunne</dc:creator>
      <dc:date>2021-11-17T22:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: User Input List for Regression Report with Interactions</title>
      <link>https://community.jmp.com/t5/Discussions/User-Input-List-for-Regression-Report-with-Interactions/m-p/438116#M68675</link>
      <description>&lt;P&gt;JMP does not represent a higher order term in a linear predictor that way (e.g., X^2). It represents it as X*X, so your term would be A * B * B.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Nov 2021 18:51:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/User-Input-List-for-Regression-Report-with-Interactions/m-p/438116#M68675</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-18T18:51:22Z</dc:date>
    </item>
  </channel>
</rss>

