SCM

Forum: open-discussion

Monitor Forum | Start New Thread Start New Thread
RE: Plotting niHR and iHR [ Reply ]
By: Abraham Otero on 2021-05-31 07:15
[forum:48982]
A relative bandtolerance of 0.01 is too small. I recommend that you use absolute bandtolerance (relative = FALSE) and then you can perfectly leave 0.01 Hz of margin for each band.

RE: Plotting niHR and iHR [ Reply ]
By: Tomas Fariña on 2021-05-28 12:13
[forum:48981]
Thanks. First problema solved.

I have another problem when running the wavelet analysis.

> CalculatePowerBand(hrv.data , indexFreqAnalysis = 2, type = "wavelet", wavelet = "la8", bandtolerance = 0.01, relative = TRUE, ULFmin = 0, ULFmax = 0.03, VLFmin = 0.03, VLFmax = 0.05,LFmin = 0.05, LFmax = 0.15, HFmin = 0.15, HFmax = 0.4 )

Calculating power per band
Using Wavelet analysis

Error in BoundModwpt(x, wf = wavelet, n.levels = depth, targets) :
Too many depth levels in the wavelet transform.


RE: Plotting niHR and iHR [ Reply ]
By: Abraham Otero on 2021-05-25 15:45
[forum:48975]
The issue is with the input file. Initially, you have three decimals when measuring the RRs (good) then go down to two decimals (scarce...) and from 1000 onwards to one decimal (insufficient for HRV). You have to check how you have generated/exported the file.

RE: Plotting niHR and iHR [ Reply ]
By: Tomas Fariña on 2021-05-25 15:13
[forum:48974]
The code is the one I found in the tutorial.

hrv.data = CreateHRVData()
hrv.data = SetVerbose(hrv.data, FALSE )

hrv.data = LoadBeatAscii(hrv.data, "ECG_Pac3_rr_ing.csv")

hrv.data = BuildNIHR(HRVData)

hrv.data = FilterNIHR(hrv.data)
hrv.data = SetVerbose(hrv.data,TRUE)

hrv.data = InterpolateNIHR(hrv.data, freqhr = 4)

PlotNIHR(HRVData, main = "niHR")
PlotHR(HRVData,main="iHR")

RE: Plotting niHR and iHR [ Reply ]
By: Tomas Fariña on 2021-05-25 15:09
[forum:48973]

ECG_Pac3_rr_ing.csv (9) downloads
This is the csv.file-

RE: Plotting niHR and iHR [ Reply ]
By: Abraham Otero on 2021-05-25 11:19
[forum:48971]
Can you send us your code and/or the file with the RRs you are loading?

Plotting niHR and iHR [ Reply ]
By: Tomas Fariña on 2021-05-25 10:39
[forum:48970]
I have a register of 3408 observations (RRs). I create the date, load from my csv. file and BuildNIHR , filter and interpolate. When I plot it I get a curious plot: normal till 1000 seconds
I have the same problem when I plot the power bands.

Any idea what happening and how to solve it??

Thanks.

PD: I have more captions of the problem but I could not upload them.

Thanks to:
Vienna University of Economics and Business Powered By FusionForge