楼主: 道心种魔
1609 1

[问答] 怎么用R语言解决一道应用题? [推广有奖]

  • 0关注
  • 1粉丝

大专生

75%

还不是VIP/贵宾

-

威望
0
论坛币
2341 个
通用积分
0.8500
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
5008 点
帖子
23
精华
0
在线时间
74 小时
注册时间
2007-1-2
最后登录
2025-4-3

楼主
道心种魔 发表于 2011-12-7 20:21:41 |AI写论文
60论坛币

We often describe our emotional reaction to social rejection as “pain.”  A clever study suggests that the “pain” caused by social rejection really is pain, in the sense that it causes activity in brain areas known to be activated by physical pain. Here are data for 13 subjects on degree of social distress and extent of brain activity:

subject.png

Make a scatterplot of brain activity against social distress. There is a positive linear association, with correlation r = 0.878. Is this correlation significantly greater than 0? Use a permutation test using 1000 permuted samples.  Construct a histogram of all the permuted correlation statistics.

请会的帮忙做一下。

关键词:R语言 应用题 correlation Association Permutation 应用题

沙发
xiaobing212 发表于 2011-12-8 13:06:45
用DAAG包里的twot.permutation,试试看?

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

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2026-1-1 03:37