Skip to content

Estimation of the SCR peak delay #475

Answered by zen-juen
BaggioMarco asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @BaggioMarco! Apologies for the late response, we must have missed this by accident 😢 You can do this quite quickly with neurokit, here's how using one of our example datasets.

# Example with real data
data = nk.data("bio_eventrelated_100hz")

# Process the data
df, info = nk.bio_process(eda=data["EDA"], sampling_rate=100)
events = nk.events_find(data["Photosensor"], threshold_keep='below',
                                       event_conditions=["Negative", "Neutral", "Neutral", "Negative"])
epochs = nk.epochs_create(df, events, sampling_rate=100, epochs_start=-0.1, epochs_end=6.9)

# Analyze
features = nk.eda_eventrelated(epochs)

The SCR_Peak_Amplitude_Time then gives the timepoint …

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by DominiqueMakowski
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@zen-juen
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants