楼主: hustnicole
5339 9

请教非线性函数的极大似然估计 [推广有奖]

  • 0关注
  • 0粉丝

大专生

13%

还不是VIP/贵宾

-

威望
0
论坛币
45 个
通用积分
0
学术水平
4 点
热心指数
5 点
信用等级
4 点
经验
462 点
帖子
64
精华
0
在线时间
8 小时
注册时间
2007-7-7
最后登录
2015-6-25

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
现有非线性函数的参数要估计,需用极大似然法,使用什么软件可以实现啊
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:极大似然估计 似然估计 极大似然 非线性 极大似然法 函数 非线性 极大似然估计

回帖推荐

飘洒 发表于9楼  查看完整内容

用R中的nlm函数就可以解决,你可以看看这个函数的具体帮组信息!

adobephoebus 发表于3楼  查看完整内容

Type ?nls in R for more details!Examples from R help     DNase1 <- subset(DNase, Run == 1)     ## using a selfStart model     fm1DNase1 <- nls(density ~ SSlogis(log(conc), Asym, xmid, scal), DNase1)     summary(fm1DNase1)     ## using conditional linearity     fm2DNase1 <- ...

本帖被以下文库推荐

沙发
annie_123 发表于 2008-5-14 19:23:00 |只看作者 |坛友微信交流群
R can do it.

使用道具

藤椅
adobephoebus 发表于 2008-5-14 22:44:00 |只看作者 |坛友微信交流群

NLS in R

Type ?nls in R for more details!

Examples from R help

     DNase1 <- subset(DNase, Run == 1)

     ## using a selfStart model
     fm1DNase1 <- nls(density ~ SSlogis(log(conc), Asym, xmid, scal), DNase1)
     summary(fm1DNase1)

     ## using conditional linearity
     fm2DNase1 <- nls(density ~ 1/(1 + exp((xmid - log(conc))/scal)),
                      data = DNase1,
                      start = list(xmid = 0, scal = 1),
                      alg = "plinear", trace = TRUE)
     summary(fm2DNase1)

     ## without conditional linearity
     fm3DNase1 <- nls(density ~ Asym/(1 + exp((xmid - log(conc))/scal)),
                      data = DNase1,
                      start = list(Asym = 3, xmid = 0, scal = 1),
                      trace = TRUE)
     summary(fm3DNase1)

     ## using Port's nl2sol algorithm
     fm4DNase1 <- nls(density ~ Asym/(1 + exp((xmid - log(conc))/scal)),
                      data = DNase1,
                      start = list(Asym = 3, xmid = 0, scal = 1),
                      trace = TRUE, algorithm = "port")
     summary(fm4DNase1)

     ## weighted nonlinear regression
     Treated <- Puromycin[Puromycin$state == "treated", ]
     weighted.MM <- function(resp, conc, Vm, K)
     {
         ## Purpose: exactly as white book p. 451 -- RHS for nls()
         ##  Weighted version of Michaelis-Menten model
         ## ------------------------------------------------------------
         ## Arguments: 'y', 'x' and the two parameters (see book)
         ## ------------------------------------------------------------
         ## Author: Martin Maechler, Date: 23 Mar 2001, 18:48

         pred <- (Vm * conc)/(K + conc)
         (resp - pred) / sqrt(pred)
     }

     Pur.wt <- nls( ~ weighted.MM(rate, conc, Vm, K), data = Treated,
                   start = list(Vm = 200, K = 0.1),
                   trace = TRUE)
     summary(Pur.wt)

     ## The two examples below show that you can fit a model to
     ## artificial data with noise but not to artificial data
     ## without noise.
     x <- 1:10
     y <- x                                  # perfect fit
     yeps <- y + rnorm(length(y), sd = 0.01) # added noise
     nls(yeps ~ a + b*x, start = list(a = 0.12345, b = 0.54321),
          trace = TRUE)
     ## Not run:
     nls(y ~ a + b*x, start = list(a = 0.12345, b = 0.54321),
          trace = TRUE)
     ## End(Not run)      

使用道具

板凳
mdeng 发表于 2009-5-6 00:32:00 |只看作者 |坛友微信交流群
stata 就可以做 

使用道具

报纸
jnuredcrystal 在职认证  发表于 2010-2-3 14:14:54 |只看作者 |坛友微信交流群
我觉得matlab也可以做
比较无知,请大家多指点!

使用道具

地板
jnuredcrystal 在职认证  发表于 2010-2-3 14:15:32 |只看作者 |坛友微信交流群
我觉得matlab也可以做
比较无知,请大家多指点!

使用道具

7
jnuredcrystal 在职认证  发表于 2010-2-3 14:16:37 |只看作者 |坛友微信交流群
我觉得matlab也可以做
比较无知,请大家多指点!

使用道具

8
jnuredcrystal 在职认证  发表于 2010-2-3 14:19:34 |只看作者 |坛友微信交流群
我觉得matlab也可以做
比较无知,请大家多指点!

使用道具

9
飘洒 发表于 2010-2-4 22:08:18 |只看作者 |坛友微信交流群
用R中的nlm函数就可以解决,你可以看看这个函数的具体帮组信息!
It is not entirely satisfying but the alternatives are worse!
统计人

使用道具

10
xx_xx 发表于 2010-4-14 10:35:57 |只看作者 |坛友微信交流群
acslx也可以做

使用道具

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

本版微信群
加好友,备注cda
拉您进交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-4-19 12:52