Thanks for explaining the graphical model results, ecolby. I had suspected this might be the case, but wasn't sure.
Here's our PML code:
test(){
deriv(A1=-(CLD/V1)*A1 + (CLD/V2)*A2-(CLS/V1)*A1-(CLH/V1)*A1)
deriv(A2=(CLD/V1)*A1-(CLD/V2)*A2)
deriv(AS=(CLS/V1)*A1-(CLSH/VS)*AS)
deriv(AH=(CLH/V1)*A1+(CLSH/VS)*AS)
#this model has one-way clearance arrows from the central compartment to the liver and spleen compartments
#CLSH= clearance from spleen to liver. This is the added connection in this model
#AS= mass in spleen, CLS= clearance from plasma to spleen, CLH= clearance from plasma to liver, AH=mass in liver
C = A1/V1
C2 = A2/V2
CS = AS/VS
CH = AH/VH
#Declaring dosing to A1
dosepoint(A1)
#Error Model- changed to match 1 compartment
error(CEps=1)
observe(CObs=C*(1+CEps))
error(CEpsS=1)
observe(CObsS=CS*(1+CEpsS))
error(CEpsH=1)
observe(CObsH=CH*(1+CEpsH))
# covariates
covariate (CLDI) # individual CLD
covariate (V1I) # individual V1
covariate (V2I) # individual V2
#Parameter Model
stparm(V1=(tvV1))
stparm(V2=(tvV2))
stparm(CLD=(tvCLD))
stparm(VS=(tvVS))
stparm(VH=(tvVH))
stparm(CLS=(tvCLS))
stparm(CLH=(tvCLH))
stparm(CLSH=(tvCLSH))
fixef(tvV1=V1I) #fixed to covariate
fixef(tvV2=V2I) # fixed to covariate
fixef(tvCLD=CLDI) #fixed to covariate
fixef(tvVS=c(,.1,))
fixef(tvVH=c(,1,))
fixef(tvCLS=c(,.01,))
fixef(tvCLH=c(,.01,))
fixef(tvCLSH=c(,.001,))
}
Do you see any synthax errors?
Thanks again for all your help.