cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Instantly extract effect sizes, F-ratios, and FDR-adjusted p-values from your models with the Calculate Effects Sizes extension, available now in the JMP Marketplace!
  • New to JMP? Join us Sept. 23-24 for the Early User Edition of Discovery Summit, tailor-made for new users. Register now for free!
  • Your voice matters! Tell us how you prefer to receive JMP updates, so we can tailor our communication to your needs. Take short survey.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
david_arteta
Level III

Create a subset by ID based on column maximum value

Hi group,

 

Using JMP 14, I have a dataset where I have measurements of an analyte on several individuals over different visits. I would like to subset the dataset keeping only the row for the last visit for each individual. How can I interactively do this (no scripting if possible)? I attach a simplified version of the dataset with only 4 individuals. The resulting dataset should have only 4 rows with the latest visit information.

1 ACCEPTED SOLUTION

Accepted Solutions
gzmorgan0
Super User (Alumni)

Re: Create a subset by ID based on column maximum value

  1.  Create a New Column, say Max Visit, with formula Col Maximum( :Visit, :ID )
  2. Select from the Main Menu > Rows > Row Selection > Select Where .... Visit equals, Compare Column, Max Visitimage.png
  3. Table > Subset > use the default settings OK produces the table below

image.png

View solution in original post

2 REPLIES 2
gzmorgan0
Super User (Alumni)

Re: Create a subset by ID based on column maximum value

  1.  Create a New Column, say Max Visit, with formula Col Maximum( :Visit, :ID )
  2. Select from the Main Menu > Rows > Row Selection > Select Where .... Visit equals, Compare Column, Max Visitimage.png
  3. Table > Subset > use the default settings OK produces the table below

image.png

david_arteta
Level III

Re: Create a subset by ID based on column maximum value

Thanks @gzmorgan0 for your quick and useful answer!

Recommended Articles