全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 R语言论坛
3672 5
2020-04-13
各位好,小弟最近在用R语言分析social network,想请教一个问题。
model fit的结果如下:

==========================
Summary of model fit
==========================
Formula:   net ~ bilinear(d = 2)
Attribute: edges
Model:     Bernoulli
MCMC sample of size 10000, draws are 5 iterations apart, after burnin of 1e+05 iterations.
Covariate coefficients posterior means:
                Estimate     2.5%   97.5% 2*min(Pr(>0),Pr(<0))  
(Intercept) -0.87426 -1.79340 -0.0653               0.0336 *
---
Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
Overall BIC:        264.9953
Likelihood BIC:     129.7524
Latent space/clustering BIC:     135.2429
Covariate coefficients MKL:
                    Estimate
(Intercept) -0.7042652

然后我想用stargazer导出结果,写了下面的code:
stargazer(model1, title = "results", align = F, type = "text" no.space = TRUE, out = "fit.html")

R语言报告: unexpected symbol in "stargazer(model1, title = "results", align = F, type = "text" no.space"

请问这是哪里出错了呢?





二维码

扫码加我 拉你入群

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

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

全部回复
2020-4-13 12:59:46
"text"和no.space之间没加上逗号,嘿嘿,R语言就是这么任性
二维码

扫码加我 拉你入群

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

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

2020-4-13 17:38:40
llb_321 发表于 2020-4-13 12:59
"text"和no.space之间没加上逗号,嘿嘿,R语言就是这么任性
感谢!
但是我加了逗号后,R语言报告Error: Unrecognized object type.
请问是不可以用 text 这种type吗?
二维码

扫码加我 拉你入群

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

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

2020-4-13 20:37:33
a character vector that specifies what type of output the command should pro-duce. The possible values are "latex" (default) for LaTeX code, "html" for HTML/CSS code, "text" for ASCII text output.
与type无关。
请问你用的什么model?看看在不在stargazer能够支持的model列表里。
二维码

扫码加我 拉你入群

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

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

2020-4-14 08:35:29
看看stargazer说明文档,不是所有的模型都可以用这个输出
二维码

扫码加我 拉你入群

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

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

2020-4-15 00:19:05
type既然是text,, 那out 就不能为html而应为txt。还有其它错。
二维码

扫码加我 拉你入群

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

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

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群