plotrcam0(VGAM)
plotrcam0()所属R语言包:VGAM
Main effects plot for a Row-Column Association Model (RCAM)
主要影响图的行列关联模型(RCAM)
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Produces a main effects plot for Row-Column Association Models (RCAMs).
产生主效应图的行列关联模型(RCAMs)。
用法----------Usage----------
plotrcam0(object, centered = TRUE, whichplots = c(1, 2),
hline0 = TRUE, hlty = "dashed", hcol = par()$col, hlwd = par()$lwd,
rfirst = 1, cfirst = 1,
rtype = "h", ctype = "h",
rcex.lab = 1, rcex.axis = 1, rtick = FALSE,
ccex.lab = 1, ccex.axis = 1, ctick = FALSE,
rmain = "Row effects", rsub = "",
rxlab = "", rylab = "Row effects",
cmain = "Column effects", csub = "",
cxlab= "", cylab = "Column effects",
rcol = par()$col, ccol = par()$col, ...)
参数----------Arguments----------
参数:object
An rcam object. This should be of rank-0, i.e., main effects only and no interactions.
rcam对象。这应该是排名-0,即主要只影响并没有相互作用。
参数:whichplots
Numeric, describing which plots are to be plotted. The row effects plot is 1 and the column effects plot is 2. Set the value 0, say, for no plots at all.
数字,描述要绘制的图。该行的效果图是1和列的效果图是2。设定值0,说,没有在所有的图。
参数:centered
Logical. If TRUE then the row and column effects are centered (but not scaled) by scale. If FALSE then the raw effects are used (of which the first are zero by definition).
逻辑。如果TRUE的行和列的影响居中(但不缩放)scale。如果FALSE然后原料的使用效果(其中第一个是定义为零)。
参数:hline0, hlty, hcol, hlwd
hline0 is logical. If TRUE then a horizontal line is plotted at 0 and the other arguments describe this line. Probably having hline0 = TRUE only makes sense when centered = TRUE.
hline0是逻辑。如果TRUE,然后一条水平线绘制在0和其他参数的描述这条线。可能有hline0 = TRUE只是有道理的,当centered = TRUE。
参数:rfirst, cfirst
rfirst is the level of row that is placed first in the row effects plot, etc.
rfirst是行,是摆在第一行中的效应图等。
参数:rmain, cmain
Character. rmain is the main label in the row effects plot, etc.
字符。 rmain是主要的行中的标签效应图等。
参数:rtype, ctype, rsub, csub
See the type and sub arguments of plot.
请参阅type和sub参数plot。
参数:rxlab, rylab, cxlab, cylab
Character. For the row effects plot, rxlab is xlab and rylab is ylab; see par. Ditto for cxlab and cylab for the column effects plot.
字符。对于该行的影响图,rxlab是xlab和rylab是ylab;看到par。同上cxlab和cylab列效应图。
参数:rcex.lab, ccex.lab
Numeric. rcex.lab is cex for the row effects plot label, etc.
数字。 rcex.lab是cex的行效应图标签等。
参数:rcex.axis, ccex.axis
Numeric. rcex.axis is the cex argument for the row effects axis label, etc.
数字。 rcex.axis是cex行的影响轴标签等参数
参数:rtick, ctick
Logical. If rtick = TRUE then add ticks to the row effects plot, etc.
逻辑。如果rtick = TRUE然后添加刻度线行效应图等
参数:rcol, ccol
rcol give a colour for the row effects plot, etc.
rcol给行效应图的颜色,
参数:...
Arguments fed into both plot calls.
都plot调用的参数送入。
Details
详细信息----------Details----------
This function plots the row and column effects of a rank-0 RCAM. As the result is a main effects plot of a regression analysis, its interpretation when centered = FALSE is relative to the baseline (reference level) of a row and column, and should also be considered in light of the link function used. Many arguments that start with "r" refer to the row effects plot, and "c" for the column effects plot.
此功能显示的行和列的一个等级0 RCAM的影响。由于其结果是主效应图的回归分析时,其解释centered = FALSE是相对于基线(参考电平)的行和列,也应考虑所使用的连接功能。许多论点开始用"r"的参考的行效应图,和"c"的列效应图。
值----------Value----------
The original object with the post slot assigned additional information from the plot.
原来的对象post插槽指定的附加信息的图。
注意----------Note----------
This function should be only used to plot the object of rank-0 RCAM. If the rank is positive then it will issue a warning.
此功能只应该用于绘制对象的职级0 RCAM。如果秩是正的,那么它会发出警告。
Using an argument ylim will mean the row and column effects are plotted on a common scale; see plot.window.
使用参数ylim将意味着该行和列绘制效果的通用比例;看到plot.window。
(作者)----------Author(s)----------
T. W. Yee,
A. F. Hadi.
参见----------See Also----------
moffset Rcam, rcam.
moffsetRcam,rcam。
实例----------Examples----------
alcoff.e <- moffset(alcoff, "6", "Monday", postfix = "*") # Effective day[生效日期]
fit0 <- rcam(alcoff.e, family = poissonff)
## Not run: par(oma = c(0, 0, 4, 0), mfrow = 1:2) # For all plots below too[#不运行:PAR(OMA = C(0,0,4,0),mfrow = 1:2),对于所有的图太]
ii = plot(fit0, rcol = "blue", ccol = "orange",
lwd = 4, ylim = c(-2, 2), # A common ylim[一个常见的ylim]
cylab = "Effective daily effects", rylab = "Hourly effects",
rxlab = "Hour", cxlab = "Effective day")
ii@post # Endowed with additional information[赋有附加信息]
## End(Not run)[#(不执行)]
# Negative binomial example[负二项分布的例子]
fit1 <- rcam(alcoff.e, negbinomial, trace = TRUE)
## Not run: plot(fit1, ylim = c(-2, 2)) [#不运行图(FIT1,ylim = C(-2,2))]
# Univariate normal example[单因素正常的例子]
fit2 <- rcam(alcoff.e, normal1, trace = TRUE)
## Not run: plot(fit2, ylim = c(-200, 400)) [#不运行图(FIT2,ylim = C(-200,400))]
# Median-polish example[中位数和波兰的例子]
fit3 <- rcam(alcoff.e, alaplace2(tau = 0.5, intparloc = TRUE),
trace = TRUE)
## Not run: plot(fit3, ylim = c(-200, 250)) [#不运行:的图(FIT3,ylim = C(-200,250))]
# Zero-inflated Poisson example on "crashp" (no 0s in alcoff)[零膨胀泊松例如上的“crashp”(没有在alcoff 0)]
cbind(rowSums(crashp)) # Easy to see the data[容易看到的数据]
cbind(colSums(crashp)) # Easy to see the data[容易看到的数据]
fit4 <- rcam(Rcam(crashp, rbaseline = "5", cbaseline = "Sunday"),
zipoissonff, trace = TRUE)
## Not run: plot(fit4, ylim = c(-3, 3)) [#不运行图(FIT4,ylim = C(-3,3))]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|