楼主: 快乐女神
1316 0

[Splus与R初级班] Splus&R初高级 [推广有奖]

  • 0关注
  • 0粉丝

VIP

高中生

85%

还不是VIP/贵宾

-

威望
0
论坛币
174 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
453 点
帖子
16
精华
0
在线时间
42 小时
注册时间
2009-2-1
最后登录
2017-5-1

楼主
快乐女神 发表于 2009-9-25 11:45:04 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
老师,您好!
我在用R做project时遇到几个问题,请帮忙解决一下!
1.  一个数据集中有20个变量,对其中四个变量进行分析(
chol, copper, trig and platelet
)。What transformations could you use to make
these more bell-shaped(更偏向于正态分布)? 附件中有数据。

2. 填充缺失值。原来用的都是均值或中位数填缺,但是这里用到了另外一种方法:We will
investigate missing values through a practice called “missing in the margins”. We will investigate missing values through a practice called “missing in the
margins”.
Replace the missings with a value that is outside the range of the variable, but close enough so that when plotted, it will not look too far off (e.g. the variable log(chol) falls roughly between 4.7 and 7.5 - so you can replace the missings with a value of 3)。This plot will have a lot of overplotting in the missings.  Now jitter the missing values for each of the four variables  by adding noise to them  (in R: you can use the jitter() function, or add random normal noise using rnorm()).   Make sure the variance that you add keeps the missings separate from the rest of the data.  See plot below for an example of how this might look.

有些费解,不知道如何用R去实现。


麻烦老师抽时间尽快帮我解答一下,谢谢咯
二维码

扫码加我 拉你入群

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

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

关键词:PLUS Plu Variables transform formation 数据

附件: 你需要登录才可以下载或查看附件。没有帐号?我要注册

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

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2025-12-25 10:45