由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - 急问一个产生指数分布的问题,谢谢啦!
相关主题
problem in R again ... sorryR code question
如何SIMULATE CENSORING PROPROTION?请教一个SIMULATION的问题
问一道题exponential的题Object oriented programming in SAS
请问:指数分布随机变量和请问:simulation tool for haplotype with LD
请教一道simulation的问题问一个用simulation的问题
正态分布和指数分布共轭么?sas simulation big dataset problem
[合集] simulation in SAS in Clinical trialsimulation问题请指教
a simulation problemsimulation for longitudinal data
相关话题的讨论汇总
话题: group话题: 指数分布话题: treated话题: simulation话题: so
进入Statistics版参与讨论
1 (共1页)
c****s
发帖数: 63
1
题目如下:
To produce two groups (group =1 is the treated group and group =0 is
untreated). I would like to set up the simulation so that group =1
experiences outcome =1 at a faster rate than group =0. We do not need to
have loss to follow up right now, so we can treat the days variable as the
time to the event.
We want to set up the simulation so that the time to event occurs at a
faster rate in the treated group. I think I can use the exponential
distribution, or we may have to program a hazard
l********s
发帖数: 430
2
group<-c(rep(0,100),rep(1,100))
time<-c(rexp(100,1),rexp(100,2))
1 (共1页)
进入Statistics版参与讨论
相关主题
simulation for longitudinal data请教一道simulation的问题
怎样照这样一个归一化函数。正态分布和指数分布共轭么?
一般的统计仿真实验和monte carlo simulation是一回事吗?[合集] simulation in SAS in Clinical trial
怎么做a/b simulationa simulation problem
problem in R again ... sorryR code question
如何SIMULATE CENSORING PROPROTION?请教一个SIMULATION的问题
问一道题exponential的题Object oriented programming in SAS
请问:指数分布随机变量和请问:simulation tool for haplotype with LD
相关话题的讨论汇总
话题: group话题: 指数分布话题: treated话题: simulation话题: so