Profile likelihood
This code performs a profile likelihood for the parameter f_LDLc_pop.
library(lixoftConnectors)
initializeLixoftConnectors()
loadProject("path_to_project.mlxtran")
tested_values=rev(c(seq(0.5,0.975,by=0.025),0.99))
for(i in tested_values){
setPopulationParameterInformation(f_LDLc_pop = list(initialValue = i, method = "FIXED"))
runScenario()
LL=getEstimatedLogLikelihood()$importanceSampling[1]
df <- data.frame(param='f_LDLc_pop’, value=i, LL=LL)
}