reggeom(xgobi)
reggeom()所属R语言包:xgobi
Geometry of Regression with Two Regressors
回归的几何形状与两个回归量
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Using XGobi for visualising the geometry of regression with two explanatory variables.
使用XGobi用于可视化的几何形状具有两个解释变量的回归。
The function reggeom has exactly the same arguments as xgobi(..), and it simply calls xgobi, but it has different default values for the arguments than the defaults of xgobi itself.
的功能reggeom正好有相同的参数,xgobi(..),它只是调用xgobi,但它有不同的默认值的参数比xgobi本身的默认值。
用法----------Usage----------
reggeom(matrx = matrix(c(0, 5780, -1156, 3468, 3468, 3468,
-867, 4335, 0, 0, -612, 4080, 5440, 2652, 3468, 3420, 3468,
0, 0, 4624, 3468, 3468, 0, 3468, 0, 3468, 4624, 2448, 1020,
1360, 3264, 3264, 3456, 3456, 0, 0, 0, 4624, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0), nrow = 17, ncol = 3),
collab = c("U", "V", "W"),
rowlab = c("o", "x1", "x2", "y", letters[2:8], "k", "m", "p", "q", "r", "s"),
colors = NULL, glyphs = NULL, erase = NULL,
lines = matrix(c(1, 6, 8, 1, 11, 7, 1, 1, 5, 6,
6, 15, 17, 8, 5, 9, 1, 9, 10,
6, 8, 2, 11, 7, 3, 4, 5, 4, 4,
15, 17, 5, 5, 9, 7, 9, 10, 3),
nrow = 19, ncol = 2),
linecolors = c("red", "yellow", "yellow", "yellow", "yellow",
"yellow", "orchid", "green", "green", "red", "skyblue",
"skyblue", "skyblue", "white", "white", "white", "slateblue",
"slateblue", "slateblue"),
resources = c("*showLines: True", "*showAxes: False", "*showPoints: False",
"*XGobi*PlotWindow.height: 500",
"*XGobi*PlotWindow.width: 500", "*XGobi*VarPanel.width: 50"),
title = "Regression Geometry", vgroups = c(1, 1, 1), std = "msd",
nlinkable = NULL, subset = NULL, display = NULL)
参数----------Arguments----------
参数:matrx
the default dataset is a matrix with three columns. The rows represent the dependent and the two independent variables, as well as fitted values and residuals in the regression on one or both regressors, and other auxiliary variables. Since the matrix has three columns, each variable is represented as a vector in 3-dimensional space.
默认数据集是一个有三列的矩阵。行表示的依赖性和两个独立的变量,以及回归中的一者或两者的回归量,以及其他辅助变量的拟合值和残差。由于矩阵有三列,每个变量表示为3维空间中的向量。
参数:collab
column labels for matrx, by default "U", "V", and "W", not very meaningful since the columns represent oblique directions in n-dimensional space.
列标签的matrx,默认情况下,"U","V"和"W",没有太大的意义,因为列代表n维空间中的斜方向。
参数:rowlab
character vector of labels for the variables; by default, "x1" and "x2" for the independent and "y" for the dependent variable, "o" for the origin, and other letters for the auxiliary variables.
字符变量的标签,默认情况下,“X1”和“X2”的独立和“y”为因变量,“O”的起源,和其他字母为辅助变量的向量。
参数:colors
as in xgobi all points are of the same color.
xgobi所有的点都相同的颜色。
参数:glyphs
as in xgobi all points are drawn with the same glyph.
xgobi绘制所有的点都具有相同的字形。
参数:erase
as in xgobi no points will be erased.
xgobi无分都将被删除。
参数:lines
the default lines argument displays some of the data in matrx as straight lines. The user may want to substitute different lines in order to emphasize or de-emphasize certain relationships, as in the example given below.
默认lines参数显示中的数据matrx为直线。用户可能希望来代替,以便强调或弱化一定的关系,如下面给出的例子的不同的线路。
参数:linecolors
The default line colors are:
默认的行的颜色是:
purplefor the dependent variable,
purplefor因变量,
yellowfor the two independent variables,
yellowfor两个独立的变量,
greenfor fitted values and residuals in the full regression,
greenfor在全回归的拟合值和残差,
redfor fitted values and residuals in the regression on the first independent variable only, and
redfor拟合值和残差在回归的第一个自变量只,
light blue,
淡蓝色的,
dark blue, and
深蓝色,
whitefor auxiliary lines.
whitefor辅助线。
参数:resources
by default, points and axes are not shown; only lines are.
默认情况下,点轴只有线。
参数:title
by default, "Regression Geometry"
默认情况下,"Regression Geometry"
参数:vgroups
by default, all three variables are in the same group.
默认情况下,所有三个变量是在同一个组。
参数:std
by default, the view is centered on the mean of the data.
默认情况下,视图的数据的平均值为中心的。
参数:nlinkable, subset, display
the same as in xgobi.
同样的如在xgobi。
Details
详细信息----------Details----------
If called without arguments, reggeom loads a dataset which represents the geometry of regression with two explanatory variables. The idea is to place the dataset into the rotation view in order to get an intuition of the geometry involved. reggeom should only then be called with arguments if specific built-in defaults must be overriden.
如果不带参数调用,reggeom加载的数据集,这两个解释变量回归的几何形状。我们的想法是将数据集到的旋转视图,以获得所涉及的几何形状的一种直觉。 reggeom应该只被称为参数是否存在特定的内置的默认值必须被重写。
The explanatory variables are x1=(5,0,0) and x2=(-1,4,0), and the target (dependent) variable is y=(3,3,4). However all coordinates are multiplied by 1156, with the effect that all the points passed as arguments to xgobi have integer coordinates.
解释变量是x1 =(5,0,0)和x2 =(-1,4,0),以及目标(相关)变量为:y =(3,3,4)。然而,所有的坐标都是乘以1156年,所有的点作为参数传递给xgobi具有整数坐标的效果。
值----------Value----------
As in the call of xgobi, the UNIX status upon completion, i.e. 0 if ok.
如同在xgobi,在UNIX status完成后,即0,如果确定的号召。
副作用----------Side Effects----------
As in xgobi.
至于在xgobi。
作者----------author----------
Hans Ehrbar ehrbar@econ.utah.edu
汉斯Ehrbar ehrbar@econ.utah.edu
参考文献----------References----------
<code>reggeom</code> can be considered a 3-dimensional visualization of the figures in Davidson, R. and MacKinnon, J. G. (1993) Estimation and Inference in Economics, Oxford University Press, p. 22.
The chapter “Additional Regressors” in Hans Ehrbar's on-line econometrics class notes http://www.econ.utah.edu/ehrbar/ecmet.pdf uses <code>reggeom</code> for teaching and has several exercise questions about it.
参见----------See Also----------
xgobi
xgobi
实例----------Examples----------
reggeom()
## The arguments given in this example are modifications of the default,[#在这个例子中给出的参数是修改默认的,]
## some lines dropped, some added, some line colors changed,[#一些线下降,增加了一些人,一些线路的颜色改变,]
## in order to emphasize the geometry of backfitting.[#为了强调几何的回切。]
reggeom(
lines= cbind(c(1,6,8,1,11,7,1,1,6,6,15,17,8,5,9, 5,6,14,15,16,14,15,5),
c(6,8,2,11,7,3,4,5,4,15,17,5,5,9,7,11,14,15,16,17,4,4,4)),
linecolors=c("red", rep("yellow",5), "orchid", "green",
"slateblue", rep("skyblue",3), rep("white",3), "skyblue",
rep("red",4), rep("slateblue", 2), "green"),
title="Regression Geometry - Backfitting")
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|