楼主: quwukong
3750 5

[问答] R语言stargazer使用 [推广有奖]

  • 0关注
  • 1粉丝

本科生

66%

还不是VIP/贵宾

-

威望
0
论坛币
0 个
通用积分
1.2001
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
653 点
帖子
45
精华
0
在线时间
132 小时
注册时间
2015-6-9
最后登录
2024-11-8

楼主
quwukong 发表于 2020-4-13 11:30:36 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
各位好,小弟最近在用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"

请问这是哪里出错了呢?





二维码

扫码加我 拉你入群

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

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

关键词:STAR R使用 R语言 TAR coefficients

沙发
llb_321 在职认证  发表于 2020-4-13 12:59:46
"text"和no.space之间没加上逗号,嘿嘿,R语言就是这么任性

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

板凳
llb_321 在职认证  发表于 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列表里。

报纸
nieqiang110 学生认证  发表于 2020-4-14 08:35:29
看看stargazer说明文档,不是所有的模型都可以用这个输出

地板
caozhaowen 在职认证  发表于 2020-4-15 00:19:05
type既然是text,, 那out 就不能为html而应为txt。还有其它错。

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

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-20 16:06