SAS中文论坛

 找回密码
 立即注册

扫一扫,访问微社区

查看: 1080|回复: 0
打印 上一主题 下一主题

Modeling Rates and Proportions in SAS – 6

[复制链接]

49

主题

76

帖子

1462

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1462
楼主
 楼主| 发表于 2012-4-22 11:16:00 | 只看该作者

Modeling Rates and Proportions in SAS – 6

From Wensui's blog on Sina

<span STYLE="font-weight: bold;">5. BETA REGRESSION
(贝塔模型)</SPAN><br />
<br />
Beta regression is a flexible modeling technique based upon the
2-parameter beta distribution and can be employed to model any
dependent variable that is continuous and bounded by 2 known
endpoints, e.g. 0 and 1 in our context. Assumed that Y follows a
standard beta distribution defined in the interval (0, 1) with 2
shape parameters W and T, the density function can be specified
as<br />
F(Y) = Gamma(W + T) / (Gamma(W) * Gamma(T)) * Y ^ (W &ndash; 1) * (1 &ndash; Y)
^ (T &ndash; 1)<br />
In the above function, while W is pulling the density toward 0, T
is pulling the density toward 1. Without the loss of generality, W
and T can be re-parameterized and translated into 2 other
parameters, namely location parameter Mu and dispersion parameter
Phi such that W = Mu * Phi and T = Phi * (1 &ndash; Mu), where Mu is the
expected mean and Phi is another parameter governing the variance
such that sigma ^ 2 = Mu * (1 &ndash; Mu) / (1 + Phi).<br />
<br />
Within the framework of generalized linear models (GLM), Mu and Phi
can be modeled separately with 2 overlapping or identical sets of
covariates X and Z, a location sub-model for Mu and the other
dispersion sub-model for Phi. Since the expected mean Mu is bounded
by 0 and 1, a natural choice of the link function for location
sub-model is logit such that LOG(Mu / (1 &ndash; Mu)) = X`B. With the
strictly positive nature of Phi, a log function seems appropriate
to serve our purpose such that LOG(Phi) = - Z`G, in which the
negative sign is only for the purpose of easy interpretation such
that the positive G represents a positive impact on the
variance.<br />
<br />
SAS does not provide the out-of-box procedure to estimate Beta
regression. While GLIMMIX procedure is claimed to accommodate Beta
modeling, it can only estimate a simple-form of Beta regression
without the dispersion sub-model. However, with the density
function of Beta distribution, it is extremely easy to model Beta
regression with NLMIXED procedure by specifying the log likelihood
function. In addition, for the data with a relatively small size,
Beta regression estimated with NLMIXED procedure converges very
well by setting initial values of parameter estimates equal to
parameters from TOBIT model in the previous session.<br />
<br />
<a href="http://blog.photo.sina.com.cn/showpic.html#url=http://s1.sinaimg.cn/orignal/a28fc28agbd31a4a1d170" TARGET="_blank"><img SRC="http://s1.sinaimg.cn/middle/a28fc28agbd31a4a1d170&amp;690" STYLE="margin: 0pt auto;display:block" HEIGHT="413" WIDTH="642" NAME="image_operate_25221333920993200" /></A><br />
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|手机版|Archiver|SAS中文论坛  

GMT+8, 2025-5-6 18:09 , Processed in 0.084743 second(s), 20 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表