<?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: Fit Y by X with multiple y data and one control group in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Fit-Y-by-X-with-multiple-y-data-and-one-control-group/m-p/83995#M37729</link>
    <description>&lt;P&gt;Probably not quite what you want, but you could try using 'Favourites' with the Local Data Filter (and then perhaps journal the filtered results to get them in one place).&lt;/P&gt;
&lt;P&gt;To see this, run the code below to make a table, then run the saved script in the table:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Table( "Test",
	Add Rows( 100 ),
	New Script(
		"Oneway",
		Oneway(
			Y( :Response ),
			X( :Group ),
			Automatic Recalc( 1 ),
			Local Data Filter(
				Add Filter(
					columns( :Group ),
					Display( :Group, Size( 160, 105 ), List Display )
				),
				Favorites(
					"Group = Control, B, C, D"(Match( columns( :Group ),
						Where( :Group == {1, 2, 3, 4} )
					)),
					"Group = Control, E, F, G"(Match( columns( :Group ),
						Where( :Group == {1, 5, 6, 7} )
					))
				)
			)
		)
	),
	New Column( "Group",
		Numeric,
		"Nominal",
		Format( "Best", 12 ),
		Formula( Random Integer( 1, 7 ) ),
		Value Labels(
			{1 = "Control", 2 = "B", 3 = "C", 4 = "D", 5 = "E", 6 = "F", 7 = "G"}
		),
		Use Value Labels( 1 )
	),
	New Column( "Response",
		Numeric,
		"Continuous",
		Format( "Fixed Dec", 12, 2 ),
		Formula( Random Normal() )
	)
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Nov 2018 20:40:25 GMT</pubDate>
    <dc:creator>ian_jmp</dc:creator>
    <dc:date>2018-11-21T20:40:25Z</dc:date>
    <item>
      <title>Fit Y by X with multiple y data and one control group</title>
      <link>https://community.jmp.com/t5/Discussions/Fit-Y-by-X-with-multiple-y-data-and-one-control-group/m-p/83985#M37723</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have multiple different groups and one control. I would like to do one Fit Y by X analysi where I have the different groups on separate plots but have the control group comparator on every plot. For example Control grp A with grps B, C, D and control grp A with grps E, F, G. Hoping to do all in one without needing to use hide/exclude and plot multiple times.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;R.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2018 17:25:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Fit-Y-by-X-with-multiple-y-data-and-one-control-group/m-p/83985#M37723</guid>
      <dc:creator>JMPNOVICE509</dc:creator>
      <dc:date>2018-11-21T17:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: Fit Y by X with multiple y data and one control group</title>
      <link>https://community.jmp.com/t5/Discussions/Fit-Y-by-X-with-multiple-y-data-and-one-control-group/m-p/83995#M37729</link>
      <description>&lt;P&gt;Probably not quite what you want, but you could try using 'Favourites' with the Local Data Filter (and then perhaps journal the filtered results to get them in one place).&lt;/P&gt;
&lt;P&gt;To see this, run the code below to make a table, then run the saved script in the table:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Table( "Test",
	Add Rows( 100 ),
	New Script(
		"Oneway",
		Oneway(
			Y( :Response ),
			X( :Group ),
			Automatic Recalc( 1 ),
			Local Data Filter(
				Add Filter(
					columns( :Group ),
					Display( :Group, Size( 160, 105 ), List Display )
				),
				Favorites(
					"Group = Control, B, C, D"(Match( columns( :Group ),
						Where( :Group == {1, 2, 3, 4} )
					)),
					"Group = Control, E, F, G"(Match( columns( :Group ),
						Where( :Group == {1, 5, 6, 7} )
					))
				)
			)
		)
	),
	New Column( "Group",
		Numeric,
		"Nominal",
		Format( "Best", 12 ),
		Formula( Random Integer( 1, 7 ) ),
		Value Labels(
			{1 = "Control", 2 = "B", 3 = "C", 4 = "D", 5 = "E", 6 = "F", 7 = "G"}
		),
		Use Value Labels( 1 )
	),
	New Column( "Response",
		Numeric,
		"Continuous",
		Format( "Fixed Dec", 12, 2 ),
		Formula( Random Normal() )
	)
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2018 20:40:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Fit-Y-by-X-with-multiple-y-data-and-one-control-group/m-p/83995#M37729</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2018-11-21T20:40:25Z</dc:date>
    </item>
  </channel>
</rss>

