Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI inference not working #229

Open
stefangachter opened this issue Jun 20, 2024 · 0 comments
Open

CI inference not working #229

stefangachter opened this issue Jun 20, 2024 · 0 comments
Assignees
Labels
bug gmwm2 Issues related to GMWM2 branch

Comments

@stefangachter
Copy link
Collaborator

The computation of the confidence intervals of the estimates is currently not available for mgmwm and fails in summary.gmwm for the gmwm2 branch. The following example fails at line

sumGyroAxis = summary(estimModelGyroAxis$fit, inference=TRUE)

with the error:

Error in eval(expr, envir = envir) : 
  matrix multiplication: incompatible matrix dimensions: 2x18 and 19x19

I suspect the error to happen in the arma::field<arma::mat> get_summary function. Any advice on how this error could be fixed? We would love to see CI inference working for gmwm2.

library(imudata)
library(gmwm)


titleLabel = 'ADIS 16405 IMU1'
xLabel = 'Time Scale (s)'
yLabel = list(Gyroscope='Variance ((deg/s)^2)')

data(adis_16405_imu1)

freq = attr(adis_16405_imu1, "freq")
dataGyroAxis = adis_16405_imu1[,1]

dataGyroAxisWv = wvar(dataGyroAxis)
plot(dataGyroAxisWv, split=FALSE, xlab=xLabel, ylab=yLabel, main=titleLabel)

model = WN() + RW()
estimModelGyroAxis = mgmwm(model, dataGyroAxisWv$wvar, freq=freq)
sumGyroAxis = summary(estimModelGyroAxis$fit, inference=TRUE)

capture.output(sumGyroAxis)
plot(estimModelGyroAxis, decomp=TRUE, xlab=xLabel, ylab=yLabel$Gyroscope)
@stefangachter stefangachter added bug gmwm2 Issues related to GMWM2 branch labels Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug gmwm2 Issues related to GMWM2 branch
Projects
None yet
Development

No branches or pull requests

3 participants