由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - R code 问题
相关主题
请教一个Excel分段求和的问题关于R的Simplex的错误信息
真心请教各位统计高手一个关联序列生成问题R 问题:vcov()和cov.unscaled区别在哪里?
突然对直线拟合的R不明白起来了求助,R 画图
问关于C中调用R函数请大家说说用C/C++做统计模拟吧!
help with RR: quantcut
在SAS里面如何进行数组操作?在 R 里面如何循环调用变量名
R code question如何把model fitting statistics 读出来(R)
help in R为什么不能把ABLINE加到散点图中了
相关话题的讨论汇总
话题: 100话题: a101话题: calculate话题: sqrt话题: a1
进入Statistics版参与讨论
1 (共1页)
d******1
发帖数: 92
1
if I have generate a normal sample A with mean 0, variance 100, and size 100
, which is:
b<-rnorm(100,0,10)
if I want to calculate: sum(A1 to A100 )/sqrt(var(A1 to A100 )) as B1
and then calculate : sum(A2 to A101 )/sqrt(var(A2 to A101 )) as B2
and then calculate : sum(A3 to A102 )/sqrt(var(A3 to A103 )) as B3
as so on until do 100 times to get B100, and create B as vector of length
100
how to write R code , please help, wait to save my life
R*********r
发帖数: 225
2
没看懂,100个sample,哪里来的A101?

100

【在 d******1 的大作中提到】
: if I have generate a normal sample A with mean 0, variance 100, and size 100
: , which is:
: b<-rnorm(100,0,10)
: if I want to calculate: sum(A1 to A100 )/sqrt(var(A1 to A100 )) as B1
: and then calculate : sum(A2 to A101 )/sqrt(var(A2 to A101 )) as B2
: and then calculate : sum(A3 to A102 )/sqrt(var(A3 to A103 )) as B3
: as so on until do 100 times to get B100, and create B as vector of length
: 100
: how to write R code , please help, wait to save my life

1 (共1页)
进入Statistics版参与讨论
相关主题
为什么不能把ABLINE加到散点图中了help with R
怎样生成离散分布的随机数啊?有直接的方法吗,比如像randn()这样的函数在SAS里面如何进行数组操作?
R里面的函数set.seed() 的作用讨论R code question
R:matrixhelp in R
请教一个Excel分段求和的问题关于R的Simplex的错误信息
真心请教各位统计高手一个关联序列生成问题R 问题:vcov()和cov.unscaled区别在哪里?
突然对直线拟合的R不明白起来了求助,R 画图
问关于C中调用R函数请大家说说用C/C++做统计模拟吧!
相关话题的讨论汇总
话题: 100话题: a101话题: calculate话题: sqrt话题: a1