# Loading preprocessed EEG data for statistical analyses in MNE

**URL:** <https://mne.discourse.group/t/loading-preprocessed-eeg-data-for-statistical-analyses-in-mne/6486>\
**Category:** Support & Discussions\
**Tags:** eeg, statistics\
**Created:** [March 7, 2023, 2:20pm UTC](https://mne.discourse.group/t/loading-preprocessed-eeg-data-for-statistical-analyses-in-mne/6486 "2023-03-07T14:20:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nils27](https://avatars.discourse-cdn.com/v4/letter/n/a3d4f5/32.png) [@Nils27](https://mne.discourse.group/u/Nils27)\
**Post date:** [March 7, 2023, 2:20pm UTC](https://mne.discourse.group/t/loading-preprocessed-eeg-data-for-statistical-analyses-in-mne/6486/1 "2023-03-07T14:20:06Z")

</div>

Hi all,

I am new to MNE and was wondering if it is possible to load already preprocessed EEG data in MNE to do some sophisticated statistical analysis like non-parametric permutation statistics. In more detail, I did a time-frequency analysis with the Brain Vision Analyzer 2 and want now to load my averaged FFT data into MNE to do the statistics.

Would be excellent if someone could explain how to do it.

Thanks and best  
Nils

- MNE version: e.g. 1.3
- operating system: Windows 10

---

<div class="post-metadata">

**Author:** ![dasdiptyajit](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/dasdiptyajit/32/4796_2.png) [@dasdiptyajit](https://mne.discourse.group/u/dasdiptyajit)\
**Post date:** [April 21, 2023, 12:31pm UTC](https://mne.discourse.group/t/loading-preprocessed-eeg-data-for-statistical-analyses-in-mne/6486/2 "2023-04-21T12:31:25Z")

</div>

Hi @Nils27,

What kind of file extension do you have?

In general, yes. Processed data via another software can be processed further using MNE.  
In your particular case, you have to load the processed data using one of the following APIs ( please check your data file extension to use the appropriate API):

[https://mne.tools/dev/reading\_raw\_data.html](https://mne.tools/dev/reading_raw_data.html)

Once the data is loaded, you can process your data further (i.e., statistics) using MNE.

Hope it helps.

best,

---

<div class="post-metadata">

**Author:** ![Nils27](https://avatars.discourse-cdn.com/v4/letter/n/a3d4f5/32.png) [@Nils27](https://mne.discourse.group/u/Nils27)\
**Post date:** [May 12, 2023, 8:44am UTC](https://mne.discourse.group/t/loading-preprocessed-eeg-data-for-statistical-analyses-in-mne/6486/3 "2023-05-12T08:44:02Z")

</div>

Hi Diptyajit,

Thank you very much for answering.

The EEG data was recorded with the BrainVisionRecorder and raw file extensions are . vhdr and .vmrk. The further pre-processing and power analyis (FFT) was done with the BrainVisionAnalyzer2 and pre-processed data was exported as .dat file.  
So I would like to load the .dat files into MNE for further statistical analyses.

Do you think that is possible and a suitable way to do so?

Thanks and best,  
Nils
