plot_obs_predict: compare predicted curves (mean with 95% credible intervals)...

Description Usage Arguments

View source: R/plot_obs_predict.R

Description

compare predicted curves (mean with 95% credible intervals) to observed curves

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
plot_obs_predict(
  sfpca_data,
  optimal_model,
  data,
  time_name,
  response_name,
  unique_subject_id,
  subject_selected,
  ymin,
  ymax,
  x_lab,
  y_lab,
  title = "observed vs. predicted"
)

Arguments

sfpca_data:

The prepared data list from prepare_data() function

optimal_model:

optimal sfpca model

data:

original dataset

time_name:

time variable from original dataset

response_name:

response variable from origina dataset

unique_subject_id:

unique subject id identifier

subject_selected:

interested subject for plotting

ymin:

minimum value of y axis range

ymax:

maximum value of y axis range

x_lab:

label for x axis

y_lab:

label for y axis


biocore/bayestime documentation built on Nov. 15, 2020, 5:40 p.m.