hi, iam trying to create a population where each individual is sampled at different time, i want one sample to be taken for each individual from time points between 1 to 12,
iam not able to use rand function, as it generates one random value and samples that particular value for all individual , can you please help me with this regards, Thank you
event1 = DosageRegimen(213,time = 0, ii=12,addl =1, ss=1)
#defining covariates
cov() = (; wt = rand(2.5:35),
age = rand(1:12))
#population
pop1 = Population(map(
i-> Subject(; id=i, events = event1, covariates = cov()),
1:42))
timepoints = rand(1:12,42)
#simobs
sim2 = simobs(model1,pop1,param1, obstimes= timepoints)