Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- JMP User Community
- :
- Discussions
- :
- Discussions
- :
- Standardize reaction time data by participant

Topic Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Standardize reaction time data by participant

May 18, 2018 10:26 AM
(247 views)

Dear community,

how do I standardize a variable (in this case reaction time data) by another variable (participant)? I tried by looking at the distribution of the first variable by the second variable but did not find such a function and the normal standardize function does not give the option to do it by another variable. Every help would be very much appreiciated!

Thanks in advance and kind regards,

juliaaline

1 REPLY 1

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Re: Standardize reaction time data by participant

All you need to do to solve this issue, is to use the formula for standardizing the data. The formula for the standardization contains column functions that have the "By" calculation. So here is an example script that does what you want. It is standardizing to a mean of 100 and and std of 10

```
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt << New Column( "standard by sex",
formula(
new mean = 100;
new STD = 10;
((:height - Col Mean( :height, :sex )) / Col Std Dev( :height, :sex )) * new STD
+new mean;
)
);
```

Jim