[Homer-users] Regressors in homer2

Yucel, Meryem A. MYUCEL at mgh.harvard.edu
Thu Jun 1 11:00:34 EDT 2017
Search archives:

Hi Evin,

You can add hmrCreateAuxRegressor function before the hmrDeconvHRF_DriftSS function in your processing stream in Homer. You need to put the auxiliary measurements in the nirs files as aux variable beforehand to be able to use the function (sampling rate should match).
Each row of aux is a different aux input.
1)   Down/upsample aux to match nirs sampling rate (you can use one of the Matlab functions eg resample)
2)   Load .nirs file in Matlab
3)   Load aux
4)   Over-save .nirs file

hmrCreateAuxRegressor has 3 parameters that user needs to input. The first one is which row of aux you want to use as a regressor.  The second two are hpf and lpf parameters. Eg if you want to use the first row of aux as regressor and no filter you can input [1 0 5]. Then GLM function (hmrDeconvHRF_DriftSS) will add this row to the design matrix.

Hope this helps.

Meryem



From: homer-users-bounces at nmr.mgh.harvard.edu [mailto:homer-users-bounces at nmr.mgh.harvard.edu] On Behalf Of Evin Güler
Sent: Wednesday, May 31, 2017 9:56 AM
To: homer-users at nmr.mgh.harvard.edu
Cc: Jette Schack
Subject: [Homer-users] Regressors in homer2

Dear Homer2 users,
I am trying to figure out how to add regressors to our fNIRS measurements. We have a data-package of real-time continuous measurements of ear temperature, heart rate, blood pressure and finger spO2 (using the system from SomnoMedics) that we want to add as regressors. How is this done in homer2?
I understand that we also need to downsample (or in some cases upsample...), is there a support for this in homer2?

With regards,
Evin Güler
Motion Analysis Laboratory, Oslo HiOA

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/homer-users/attachments/20170601/361b3cb8/attachment.html 


More information about the Homer-users mailing list