R语言DSAIRM包 simulate_basicvirus_modelexploration函数使用说明

返回R语言DSAIRM包函数列表


功能\作用概述:

此函数模拟基本病毒模型ODE,用于参数函数返回一个数据帧,其中包含已更改的参数和结果(请参阅详细信息)。


语法\用法:

simulate_basicvirus_modelexploration(
U = 1e+05,
I = 0,
V = 1,
n = 10000,
dU = 0.1,
dI = 1,
dV = 2,
b = 2e-05,
p = 5,
g = 1,
tstart = 0,
tfinal = 100,
dt = 0.1,
samples = 10,
parmin = 1,
parmax = 10,
samplepar = "p",
pardist = "lin"
)


参数说明:

U : :未感染细胞的起始值:数字

I : :感染细胞的起始值:数字

V : :病毒的起始值:数字

n : :新未感染细胞补充率:数字

dU : :未感染细胞的死亡率:数字

dI : :受感染细胞的死亡率:数字

dV : :清除病毒的速率:数字

b : :病毒感染细胞的速率:数字

p : :受感染细胞产生病毒的速率:数字

g : :病毒单位的可能转换系数:数字

tstart : :模拟开始时间:数字

tfinal : :最终模拟时间:数字

dt : :返回结果的次数:数字

samples : :要在pmin和pmax之间运行的值的数目:数字

parmin : :可变参数的下限值:数字

parmax : :可变参数的上限值:数字

samplepar : :要更改的参数名称:字符

pardist : :参数值的间距,可以是“lin”或“log”:字符


示例\实例:

# To run the simulation with default parameters just call the function:
## Not run: res < - simulate_basicvirus_modelexploration()
# To choose parameter values other than the standard one, specify them, like such:
res < - simulate_basicvirus_modelexploration(samples=5, samplepar='dI', parmin=1, parmax=10)
# You should then use the simulation result returned from the function, like this:
plot(res$dat[,"xvals"],res$data[,"Vpeak"],xlab='Parameter values',ylab='Virus Peak',type='l')