You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: eegERP.Rmd
+7-4Lines changed: 7 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -805,7 +805,7 @@ Record the number of factors retained and % variance accounted for by that numbe
805
805
1. Return to `Main` and click `Save`.
806
806
Save the tsPCA file in the `5-PCA` folder.
807
807
808
-
## PCA Component Selection
808
+
## PCA Component Selection and Extraction
809
809
810
810
Here, the goal is to select the PCA component that corresponds to the ERP component of interest, and the extraction that supports the intended interpretability of the component.
811
811
@@ -831,7 +831,7 @@ Go to `Window` and input the following:
831
831
If the waveform is negative-going at the peak channel, and you are interested in the positive-going dipole, you would select the peak positive channel to identify the PCA-estimated amplitude of the positive-going waveform on that PCA component.
832
832
Nevertheless, even though you are selecting the PCA-estimated amplitude for a given channel at a given electrode, there are now "virtual channels"; the estimates include the contributions of all channels and all timepoints <u>to the extent that</u> they load onto the PCA component of interest.
833
833
Thus, even if you select to window a PCA component from only 1 channel at 1 timepoint, it is using ALL channels and timepoints in the estimation—this is not the case if windowing the raw ERP waveforms.
834
-
- Save the files generated from the AutoPCA in the `6-PCA Components` folder using the following naming convention: "task_condition_age" (e.g.,`ob_tgt_all`).
834
+
- Save the files generated from the AutoPCA in the `6 - PCA Components` folder using the following naming convention: "erp_task_condition_age_component" (e.g.,`erp_ob_tgt_all_P3`).
835
835
1. To view all of the tsPCA components, click `View` and input the following
836
836
- select the appropriate file (e.g., `ob_tgt_all`)
837
837
- select `gave`
@@ -841,6 +841,9 @@ Go to `Window` and input the following:
841
841
- You can check this in one of two ways:
842
842
- Visually examine grand averages between age ranges
843
843
- Apply the PCA from one age group and apply it to another age group and examine whether the results hold up using cross-validation in EPToolkit
844
+
1. It is generally useful to keep track of the extraction process for each PCA component.
845
+
Our current procedure for doing so is keeping a `PCA_ComponentInfo.txt` file in the `6-PCA Components` folder.
846
+
* Relevant information may include the timing used to window a component and the electrodes that load onto the component of interest at a given threshold
844
847
845
848
## Identifying Electrodes that Load Onto PCA Component
846
849
1. Go to `Window`
@@ -875,10 +878,10 @@ If you are only interested in the grand average data and not individual subjects
875
878
- This will remove the individual subject data from the dataset and leave the grand average information
876
879
1. Click `Done`
877
880
1. If you renamed the datafile, EP Toolkit should generate a popup message asking whether you would like to rename your dataset OR generate a new dataset using the new name (leaving the original dataset untouched).
878
-
From the options presented, clikc `New` to generate a new file and preserve the original
881
+
From the options presented, click `New` to generate a new file and preserve the original
879
882
1. The editor window should close, returning you to the EP Toolkit pane that asks you to select a dataset to edit.
880
883
From here, click `Main` to return to EP Toolkit "home"
881
-
1. Once in the main window, clikc `Save`
884
+
1. Once in the main window, click `Save`
882
885
- Set the save format to `Text (.txt)`
883
886
- Click the grand average data (e.g., `ob_tgt_gav`) to save it
884
887
- A file explorer window should open, prompting you to select the appropriate save location and give your file a name
0 commit comments