diffmich(simba)
diffmich()所属R语言包:simba
Calculate the difference in parameters of a Michaelis-Menten kinetik fitted to (PAM) data
计算它们的差在一个的Michaelis-Menten KINETIK参数嵌合(PAM)的数据
译者:生物统计家园网 机器人LoveR
描述----------Description----------
The function can be used to calculate the difference in the two parameters of the Michaelis-Menten Kinetik y=(a*x)/(b+x) between two datasets containg each two vectors. Through permutation it is possible to compute significance of the difference. fitmich is used to calculate the Michaelis-Menten fit to the data. With the corresponding plot method a plot of the actual difference in the parameters against a histogram of the permuted values can easily be achieved.
该函数可以被用于计算两个参数中的差异的Michaelis-Menten KINETIKy=(a*x)/(b+x)之间两个数据集containg每两个矢量。通过置换,这是可能的差异来计算的意义。 fitmich的Michaelis-Menten适合的数据被用来计算。随着相应的曲线的方法的曲线图,可以容易地实现对置换后的值的直方图中的参数的实际差异。
用法----------Usage----------
diffmich(x1, y1, x2, y2, permutations = 1000, a=3, b=0.5,
trace=FALSE, ...)
fitmich(x, y, a=3, b=0.5)
## S3 method for class 'diffmich'
plot(x, y, which=3, two=2, ...)
参数----------Arguments----------
参数:x1
Vector containing an independent variable, for instance PAR measurements.
Vector,其中包含一个独立的变量,例如PAR测量。
参数:y1
Vector containing a variable dependent on x1 (for instance ETR measurements). Must have the same length as x1.
Vector,其中包含一个变量依赖于x1(例如ETR测量)。作为x1必须具有相同的长度。
参数:x2
Vector containing a second independent variable (for instance PAR measurements).
Vector,其中包含第二个独立变量(例如PAR测量的)。
参数:y2
Vector containing a variable dependent on x2 (for instance ETR measurements). Must have the same length as x2.
Vector,其中包含一个变量依赖于x2(例如ETR测量)。作为x2必须具有相同的长度。
参数:permutations
Number of permutations.
的排列数目。
参数:a
start value for parameter a, defaults to 3, usually there is no change necessary, but if the function gets trapped in the first run, changing the parameters might solve the problem.
启动参数的值,默认为3,通常是没有必要的改变,但如果被困在第一次运行的功能,改变参数可能会解决这个问题。
参数:b
Start value for parameter b, defaults to 0.5.
启动参数b的值,默认为0.5。
参数:trace
set to TRUE for displaying the progress of the calculation
设置为TRUE,用于显示计算的进展
参数:...
Arguments to other functions (for instance to lm, which is used to calculate the regression lines)
参数传递给其他函数(例如lm,它被用来计算回归线)
参数:x
Vector containing an independent variable, for instance PAR measurements. Function fitmich is usually called only internally by diffmich. Plotting object in the plot method.
Vector,其中包含一个独立的变量,例如PAR测量。功能fitmich通常被称为内部diffmich。中图法绘制对象。
参数:y
Vector containing a variable dependent on x1 (for instance ETR measurements). Must have the same length as x1. Plotting object in the plotting method, optional when x has appropriate structure
Vector,其中包含一个变量依赖于x1(例如ETR测量)。作为x1必须具有相同的长度。绘图对象的绘图方法,选购时x有适当的结构
参数:which
Which histogram should be plotted? 1 triggers the histogram for parameter a, 2 the one for parameter b. It defaults to 3: both histograms are plotted. If it is changed from default the next argument (two) is automatically set to 1!
应绘制的直方图? 1触发参数,一个参数b的直方图。它默认为3:两个直方图绘制。如果更改默认情况下,下一个参数(two)会被自动设置为1!
参数:two
Should the histograms be printed on a divided display? And how? Can only be set if which is set to 3. Defaults to 2, which means that the display is divided in two halfs and the histogram-plots are plotted side by side. 3 causes histograms to be plotted one on top of the other. If two = 1, the display is NOT automatically divided. Might be useful if more than one diffmich-objekt is to be plotted on one display. Otherwise the function overrides the actual display settings.
如果印上一个分割显示直方图?怎么样?如果which设置为3,只可以设定。缺省值是2,这意味着显示被分成两个半区和直方图曲线绘制并排。 3原因直方图被绘制一个在另一个顶部上。如果two= 1,显示不是自动分割。可能是有用的,如果一个以上的diffmich-OBJEKT是被绘制在一个显示。否则,函数覆盖了实际的显示设置。
Details
详细信息----------Details----------
As the function was initially built to easily calculate the difference of parameters of the Michaelis-Menten Kinetik for PAM measurements, the independent vectors are meant to contain PAR values whereas the dependent vectors should represent ETR values. But you can use it for anything else which can be fitted with Michaelis-Menten. The vectors belonging together are formed into a data.frame. For each permutation run the rows are interchanged randomly between the two data.frames and the difference in the parameters is calculated and collected into a vector. The p-value is then computed as the ratio between the number of cases where the differences in Parameter exceed the difference in parameter of the inital configuration and the number of permutations.
由于初步建成功能很容易地计算出PAM测量米氏KINETIK的,参数的差异,是独立的向量包含PAR值,而因的向量应代表ETR值。但是,你可以使用它为别的可安装米氏。的向量属于在一起形成到data.frame。对于每个置换运行的行之间随机互换两个data.frames和计算参数中的差异,并收集成一个向量。然后,计算p-值的数目之间的比率的情况下,在参数的差异超过>初始配置和参数的排列数的差异。
As it uses a for loop it takes a while to calculate. So get a coffee while it is running, or set trace = TRUE to avoid boring moments ...
由于它采用的是for循环还需要一段时间来计算。所以在运行时,喝杯咖啡,或设置trace= TRUE,以避免枯燥的时刻...
值----------Value----------
Returns a diffmich-object with the function call, the difference in the two parameters and their significance. Furthermore the number of permutations. If you want to change the way fitmich is computed you can change the starting values. Per default it is calculated with starting values a=3 and b=0.5. There's no change needed unless the function gets trapped.
返回一个diffmich对象的函数调用,两个参数的差异及其意义。此外的排列数。如果你想改变的方式fitmich计算,你可以改变初始值。每默认情况下,它与初始值计算,A = 3和b = 0.5。有没有什么变化,除非被困的功能。
(作者)----------Author(s)----------
Gerald Jurasinski
参见----------See Also----------
nls, sample
nls,sample
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|