# Generate individual rhs-plot for predicted observations
res_path <- system.file("extdata","nm_example1_model_converted_ind.res",package="pmxNODE")
phi_path <- system.file("extdata","nm_example1_model_converted_ind.phi",package="pmxNODE")
data_path <- system.file("extdata","nm_example1.tab",package="pmxNODE")
est_parms <- indparm_extractor_nm(res_path,phi_path)
input_data <- read.table(data_path,skip=1,header=TRUE)[,c("ID","IPRED","TIME")]
colnames(input_data) <- c("ID","NNc","NNt")
rhs_plot <- ind_rhs_plot_nm(rhs="NNc + NNt",
x_var = "NNc",
inputs = input_data,
group = "ID",
est_parms=est_parms,
time_nn = c(FALSE, TRUE))
Run the code above in your browser using DataLab