sn.2logL.profile(sn)
sn.2logL.profile()所属R语言包:sn
Profile twice loglikelihood for skew-normal models
简介的两倍loglikelihood为歪斜正常模式
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Computation and plot of 1-dimensional and 2-dimensional profile 2*loglikelihood for skew-normal regression models.
1维和2维轮廓的计算和绘图的2 * loglikelihood歪斜正常的回归模型。
用法----------Usage----------
sn.2logL.profile(X=matrix(rep(1, n)), y,
param.range=c(sqrt(var(y)) * c(2/3, 3/2), -0.95, 0.95),
use.cp=TRUE, npts=51 %/% d, plot.it=TRUE, ...)
参数----------Arguments----------
参数:y
a numeric vector. Missing values (NA's) are not allowed.
一个数值向量。遗漏值(NA)是不允许的。
参数:X
a matrix of explanatory variables. It must have col(X) equal to length(y), and it must include a column of 1's if an intercept term is required. Missing values (NA's) are not allowed. If X is missing, a one-column matrix of 1's is created.
的解释变量的矩阵。它必须具有col(X)等于length(y)的,而且它必须包含一列的“1”,如果需要截距项。遗漏值(NA)是不允许的。 X如果丢失,创建一列矩阵的1。
参数:param.range
a numeric vector of length either 2 or 4. If the length is 2, the dimensional paramter d is set to 1, and a 1-dimensional profile is computed and plotted, for the shape or skewness parameter (depending on the parametrization adopted; see below); in this case the two value represent the minimum and maximum value for the range of the parameter. If the length of param.range is 4, the first two values determine the range of the scale parameter, the last two give the range of the shape (or skewness) parameter; in this case, d=2.
一个数字矢量的长度是2或4。如果长度为2,尺寸参数置d被设置为1,并计算一维中,绘制的形状或偏斜度参数(依赖于所采用的参数化,见下文),在这种情况下两个值表示的参数的范围内的最小和最大的值。 param.range如果长度为4时,前两个值确定尺度参数的范围内,最后两个得到的形状(或偏斜)的参数的范围内,在这种情况下,d=2。
参数:use.cp
logical value which selects the parametrization adopted. If use.cp=TRUE (default value), the centred parametrization is used, otherwise the direct parametrization is adopted.
选择参数化的逻辑值,通过。如果use.cp=TRUE(默认值),居中的参数化使用,否则直接参数化采用。
参数:npts
number of points (in the scalar case) or grid size (in the 2-dimensional case).
的点数(在标量的情况下)或网格的大小(在2维的情况下)。
参数:plot.it
logical value which determines if plotting takes place; default is T.
如果绘制逻辑值,它决定需要的地方;默认是T。
参数:...
any additional parameter is passed to sn.em. </table>
任何额外的参数传递给sn.em。 </ TABLE>
Details
详细信息----------Details----------
Likelihood maximization is performed by sn.em.
进行sn.em的可能性最大化。
See the reference below for explanation of the two possible parametrizations.
请参阅参考下面的说明两个可能的参数化。
值----------Value----------
A list containing the following components
一个列表,其中包含以下组件
<table summary="R valueblock"> <tr valign="top"><td>param1</td> <td> vectors of the parameters values where the function has been evaluated. If d=2, the second vector contains NAs. </td></tr> <tr valign="top"><td>param.names</td> <td> a character vector of two elements with the names of the param1 and param2. </td></tr> <tr valign="top"><td>2logL</td> <td> a vector or a matrix which represents twice the profile loglikelihood; this is in the "relative" version, i.e. setting the maximum value to be 0. </td></tr> <tr valign="top"><td>maximum</td> <td> a numeric value with the maximum which has been subtracted to obtain the "relative" version of 2logL. </td></tr></table>
<table summary="R valueblock"> <tr valign="top"> <TD> param1</ TD> <TD>向量的参数值的功能进行了评估。如果d=2,第二个向量包含:NA的。 </ TD> </ TR> <tr valign="top"> <TD> param.names</ TD> <td>一个字符的两个元素与param1的名字向量的和 X>。 </ TD> </ TR> <tr valign="top"> <TD> param2</ TD> <td>一个向量或矩阵,它代表两次的档案loglikelihood;这是在“相对”版本,即设置为0的最大值。 </ TD> </ TR> <tr valign="top"> <TD> 2logL</ TD> <td>一个数值的最大已减去获得“相对”版本的 maximum。 </ TD> </ TR> </ TABLE>
副作用----------Side Effects----------
If plot.it=TRUE, a plot of the profile twice relative loglikeliood is produced on a graphical device. If length(fixed.comp)=2, this plot takes the form of a contour plot whose contour lines correspond to confidence regions of approximate probability levels c(0.25, 0.5, 0.75, 0.90,0.95, 0.99).
如果plot.it=TRUE,一个图的轮廓两次相对loglikeliood是一个图形化的设备上。如果length(fixed.comp)=2,该图的等高线图的形式,其轮廓线对应的置信区间的近似概率水平c(0.25, 0.5, 0.75, 0.90,0.95, 0.99)。
参考文献----------References----------
Azzalini, A. and Capitanio, A. (1999). Statistical applications of the multivariate skew-normal distribution. J.Roy.Statist.Soc. B 61, 579–602.
参见----------See Also----------
sn.em, sn.mle
sn.em,sn.mle
实例----------Examples----------
data(ais, package="sn")
attach(ais)
a <- sn.2logL.profile(y=bmi)
a <- sn.2logL.profile(y=bmi, use.cp=FALSE, param.range=c(3,6,1,5))
a <- sn.2logL.profile(X=cbind(1,lbm), y=bmi, param.range=c(0,0.9),
npts=50)
#[]
data(frontier, package="sn")
a <- sn.2logL.profile(y=frontier, param.range=c(0.8,1.6,10,30),
use.cp=FALSE, npts=11)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|