Skip to content

rxode2 unexpected simulation #655

Answered by mattfidler
mattfidler asked this question in Q&A
Discussion options

You must be logged in to vote

@RichardHooijmaijers I believe this is expected behavior.

What happens is the values in the problem are initialized to NA; If they are not changed in the simulation then they would remain NA.

This means that all things related to ka if route == 1 would be NA as well.

I suppose a better model would be:

library(rxode2)
#> rxode2 2.1.2 using 8 threads (see ?getRxThreads)
#>   no cache: create with `rxCreateCache()`
library(dplyr)
#> 
#> Attaching package: 'dplyr'
#> The following objects are masked from 'package:stats':
#> 
#>     filter, lag
#> The following objects are masked from 'package:base':
#> 
#>     intersect, setdiff, setequal, union

# First fit with if statement to indicate diff…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mattfidler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant
Converted from issue

This discussion was converted from issue #654 on February 12, 2024 19:05.