-
Notifications
You must be signed in to change notification settings - Fork 1
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
pdDiag()
has errors
#14
Comments
Hi @hrishikesh1985, This is because that |
This works though, lotri::lotri({
temax <- -9.91
ted50 <- 11.9
eta.emax ~ 7.389056
add.err <-12.7
})
#> Lotri Estimates (get with `lotriEst()`):
#> name lower est upper fix label backTransform
#> 1 temax -Inf -9.91 Inf FALSE <NA> <NA>
#> 2 ted50 -Inf 11.90 Inf FALSE <NA> <NA>
#> 3 add.err -Inf 12.70 Inf FALSE <NA> <NA>
#>
#> Matrix:
#> eta.emax
#> eta.emax 7.389056 Created on 2022-12-13 with reprex v2.0.2 Or if you still want a single element matrix, then: library(nlme)
library(lotri)
#> Warning: package 'lotri' was built under R version 4.2.2
lotri::lotri({
temax <- -9.91
ted50 <- 11.9
eta.emax ~ as.numeric(as.matrix(pdDiag(1)))
add.err <-12.7
})
#> Lotri Estimates (get with `lotriEst()`):
#> name lower est upper fix label backTransform
#> 1 temax -Inf -9.91 Inf FALSE <NA> <NA>
#> 2 ted50 -Inf 11.90 Inf FALSE <NA> <NA>
#> 3 add.err -Inf 12.70 Inf FALSE <NA> <NA>
#>
#> Matrix:
#> eta.emax
#> eta.emax 7.389056 Created on 2022-12-13 with reprex v2.0.2 |
|
Hi Matthew, as.numeric(as.matrix(pdDiag(1))) works !!! Thanks for the quick support and response as ever... |
From here:
nlmixrdevelopment/nlmixr#580 (comment)
Created on 2022-12-13 with reprex v2.0.2
from @hrishikesh1985
The text was updated successfully, but these errors were encountered: