7.3 Temporal Sampling
In the parameters we specify a list, with the temporal variable time, the grouping variable with which the temporal sampling occurs group, the between group variance (as a proportion) in sampling times variance and the within group sample size n:
pop_data <- simulate_population(
data_structure = make_structure("day(100) + individual(100)",repeat_obs=1),
parameters = list(
individual = list(
vcov = 0.1
),
day=list(
covariate=TRUE,
beta=0.4
),
residual = list(
vcov = 0.8
)
),
sample_type = "temporal",
sample_param = list(
time = c("day"),
group = c("individual"),
variance = c(0.1,0.2),
n=4),
)
sample_data <- get_sample_data(pop_data)