Documente Academic
Documente Profesional
Documente Cultură
Clean Up
clear all
close all
clc
Honor Statement
On my honor, I have neither given nor received aid on this assignment, and I pledge that I am in compliance
with the VCU Honor System
Problem 1
load('Module2_drugdata');
% Use fminsearch to find best fit
param0 = [1, 1]; % initial guess
options = optimset();
store = zeros(7);
1
Juei-Sheng Chiu - Module 2, Com-
putational Methods (EGRB 215)
for i=1:7
figure(i);
plot(drug(i).Dose, drug(i).Efficacy, 'or',...
drug(i).Dose, drug(i).Toxicity, 'bx',...
drug(i).Dose, y_hate(i, :), 'm',...
drug(i).Dose, y_hatt(i, :), 'c');
% I think a 'good' drug should have a very quick rise in efficacy and a
% delayed rise in toxicity. Drug 2 fits this profile exactly - it is
% possible to get a 100% response with very little toxicity. At six or
% seven units, you can get 100% response and almost no toxicity.
% Therefore I recommend drug 2.
2
Juei-Sheng Chiu - Module 2, Com-
putational Methods (EGRB 215)
3
Juei-Sheng Chiu - Module 2, Com-
putational Methods (EGRB 215)
4
Juei-Sheng Chiu - Module 2, Com-
putational Methods (EGRB 215)
5
Juei-Sheng Chiu - Module 2, Com-
putational Methods (EGRB 215)