- Define a function that evaluates the negative log-likelihood (NLL) based on your cost function and forward simulation data. The NLL is typically the negative log of the likelihood function. Ensure that the function takes the parameter vector as an input and returns the NLL value.
- Use the "fmincon" function in MATLAB to minimize the NLL function. Set the optimization options appropriately, such as the parameter bounds and any constraints.
- Once you have the MLE parameter set, you can perform the profile likelihood analysis by varying one parameter at a time while keeping the other parameters fixed at their MLE values. For each parameter, define a range of values to explore.
- For each parameter value in the range, fix the parameter at that value and optimize the NLL function using "fmincon", keeping the other parameters fixed at their MLE values. Store the resulting NLL values.
- Repeat this process for all the parameters, creating a profile likelihood curve for each parameter. The profile likelihood curve represents the change in the NLL as a function of the parameter value, while other parameters are fixed.
- Analyze the profile likelihood curves to determine confidence intervals or regions of interest for each parameter. This can be done by finding the parameter values corresponding to a certain change in the NLL, such as a specific likelihood ratio test statistic.
Profile likelihood given the MLE parameter set, the cost function and forward simulation data?
6 ビュー (過去 30 日間)
As the title says-- what would you recommend I use?
I have seen sbioparameterci but it requires the 'fitResults' parameters to have been estimater from sbiofit, and I already have a vector of the MLE parameter set.
I have also seen the PESTO (parameter estimation toolbox) but it requires having ran multistart, which I have not, do have gotten the parameter set.
Thank you very much in advance.
回答 (1 件)
Piyush 2023 年 10 月 12 日
I understand that you want to find profile likelihood in MATLAB, and you have been provided with an MLE (Maximum Likelihood Estimation) parameter set, cost function and forward simulation data. You tried using specialized toolboxes like PESTO and specific functions like sbioparameterci but since they might have additional requirements and assumptions it did not serve your purpose well.
To address your issue, you can refer to the following steps which might serve as potential workaround:
The above-mentioned steps might require careful implementation and involve significant computation depending on the complexity of the model and the number of parameters. Consider using parallel computing or other optimization techniques to speed up the analysis if needed.
Hope this helps!