全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 R语言论坛
6657 1
2009-05-30

rt
数据由非正态变为正态,johnson变换。R中有现成的命令吗
二维码

扫码加我 拉你入群

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

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

全部回复
2015-1-24 18:45:50
用Johnson包,现成儿的~  

# transforming to normality a random sample with beta distribution
x <- rbeta(30,2,3)
y <- RE.Johnson(x); print(y)

# working with the transformed variable
x <- runif(100)
y <- RE.Johnson(x)  $ transformed; print(y)

# working with the p-values
x <- rgamma(100,2,1)
y <- RE.Johnson(x) $ p; print(y)
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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