Adding line to split data on graph builderHi,
I have the following data set below where red data points are some fails that I would like to screen out. Right now the way I am doing this is roughly calculating a trend line (see image below) and finding its equation. Then I create a new column and use JMP formula to basically check if data point is below line and if it is it updates the new column with a 1 and if it is above it marks new column as a 0. This is a pretty manual process and I was wondering if there was a way you could draw a line in graph builder the would autogenerate its equation and select all units below the line and if possible also create a new column?

AnalyticsGraphicsRe: Adding line to split data on graph builderHi,
Is this a typical distribution of your "Pass" and "Fail" data? If it is, it might be quite difficult to identify a rational process to separate the two populations because these broadly overlap (i.e. no apparent trend in distribution above and below your "decision" line). If it is not representative, could you provide a more contrasted example that could guide a possible approach?
Best,
TS
Re: Adding line to split data on graph builderHere is how I would do it
- Create a new binning column and specify the following formula
If( Selected( Row State( Row() ) ),
1,
0
)
- Go to your graph and then select from the tool bar, the lasso tool

- Use the lasso selection tool to capture all of the data points you want declare as bad data points

- Note that all of the rows in the data table that are associated with the selected point, are selected and the value in the new bin column has been set to 1.

- Now right click on the Header for the bin column and select Col Info
- In the Col Info window, click on the Remove button to delete the formula, thus turning the bin values into static values

Re: Adding line to split data on graph builderBTW, since Selected() is a Boolean function, the If() function is superfluous. This expression is all that you need for the column formula:
Selected( Row State( Row() ) )
Re: Adding line to split data on graph builderI created a column "Line" with a line function, created another column "Bin":


the graph shown below:

Re: Adding line to split data on graph builderHow did you plot the line to split the points afterwards? I am able to get the overlay colors based on the new bin but just not the dashed line you have in graph builder.