Hi,

I am trying to run simulations from the command line. My final model (.MDL) is a simple one compartment (following) model. I would like to run a simulation with a different dose level from the command line. so I created a dummy table for simulation as .csv file. Now, the question is how I should change the following script (PML) in the model file below to be able to simulate the new dose by command and receive the sim table as an output?

test(){

cfMicro(A1, Cl / V, first = (Aa = Ka))

dosepoint(Aa)

C = A1 / V

error(CEps = 28.5596588388192)

observe(CObs = C + CEps * sqrt(1 + C^2 * (CMultStdev/sigma())^2))

stparm(Ka = tvKa * exp(nKa))

stparm(V = tvV * exp(nV))

stparm(Cl = tvCl * exp(nCl))

stparm(CMultStdev = tvCMultStdev)

fixef(tvKa = c(, 0.60176277128161, ))

fixef(tvV = c(, 0.0144284881142417, ))

fixef(tvCl = c(, 0.0299291076746268, ))

fixef(tvCMultStdev = c(, 0.458258322029198, ))

ranef(diag(nV, nCl, nKa) = c(1.0100196, 0.92041129, 0.9488175))

}

Best

Amir