# NOT RUN {
Pred1 = rnorm(10, mean = 50, sd = 100);
Pred2 = rnorm(10, mean = 50, sd = 30);
Pred3 = rnorm(10, mean = 50, sd = 80);
Pred4 = rnorm(10, mean = 50, sd = 100);
# }
# NOT RUN {
<!-- % -->
# }
# NOT RUN {
# Predictions based on ten observations, at four different time points
Prediction = cbind(Pred1, Pred2, Pred3, Pred4);
# }
# NOT RUN {
<!-- % -->
# }
# NOT RUN {
Var1 = matrix(10000, 10);
Var2 = matrix(900, 10);
Var3 = matrix(1600, 10);
Var4 = matrix(10000, 10);
# }
# NOT RUN {
<!-- % -->
# }
# NOT RUN {
# Corresponding prediction variances
Variance = cbind(Var1, Var2, Var3, Var4);
# }
# NOT RUN {
<!-- % -->
# }
# NOT RUN {
# Corr = 0 by default
datassim(X = Prediction, Var = Variance);
# }
# NOT RUN {
<!-- % -->
# }
# NOT RUN {
# Corr = 0.5
datassim(Prediction, Variance, 0.5);
# }
# NOT RUN {
<!-- % -->
# }
# NOT RUN {
Corr = cor(Prediction);
datassim(Prediction, Variance, Corr);
# }
# NOT RUN {
<!-- % -->
# }
Run the code above in your browser using DataLab