全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
700 1
2022-04-12

Stata打印文本时,奶牛说:“R2_a=0.2087”…
海豚说:…

net install cowsay,from(https://raw.githubusercontent.com/mdroste/stata-cowsay/master/)
set  more off
sysuse auto,clear
qui  reg price mpg
#d ;
local animal
cow
pig
benny
bigcat
smallpig
snowman
frog
monkey
signbunny
facecat
behindcat
stretchycat
anxiouscat
longtailcat
cat
trilobite
shark
buffalo
grumpycat
smallcat
yoda
mushroom
endlesshorse
bat
bat2
turkey
daemon
duckling
duck
owl;
#d cr

foreach  m of local animal{
cowsay "R2_adjust is `e(r2_a)'",animal(`m')
}

欢迎大家在本帖下接龙哦,测试不同animal的效果,统一格式举例如下:

cowsay "经管之家Stata专版欢迎您!",animal(monkey)

请从以下动物中任选一种替换上述代码中的monkey选项,

cow
pig
benny
bigcat
smallpig
snowman
frog
monkey
signbunny
facecat
behindcat
stretchycat
anxiouscat
longtailcat
cat
trilobite
shark
buffalo
grumpycat
smallcat
yoda
mushroom
endlesshorse
bat
bat2
turkey
daemon
duckling
duck
owl
二维码

扫码加我 拉你入群

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

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

全部回复
2022-4-12 14:39:01
666
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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