I am running a 2-compartment linear model, when I don’t click closed form to use differential equations, the model is not converging with error message:
Initial parameter values result in -LL = NaN
Restart from new values
Error: Model Exception: Fortran Exception
NlmeErrorExit: close files and exit(0).
Additionally, initial estimates graphs have some subjects with negative concentrations. I change initial estimates to no avail.
However, when I run the exact same model in closed form, the model runs fine and I get descent fits and parameter estimates with good CV%.
I note in your dataset you have many rows with Conc=NA, some with duplicate time data for existing observations. It’s always good practice to prepare “clean” datasets, removing rows that do not contain any useful information for your analysis objectives. If you filter your dataset to remove the NA/duplicate concentrations, you will find that you get the same results for closed vs open format.