由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - question about longitudinal data
相关主题
请教一道作业题求助:SAS使用问题(读数据)
longitudinal data analysis里面,GEE model 和 mixed model两个方法各有什么优越性吗?SAS 高手帮忙看看这个数据能用lifetest吗?
请教一类数据的处理方法问一个简单的SAS问题,多谢
請教許多data 快速import and transpose的方法mysql 问题
再问一个sas输出的问题 (export)请教如何用SAS处理这个RANDOM SAMPLING的问题
SAS ADV passed!!![合集] SAS的问题
请教SAS 问题求教 SAS数据转化
data reading question in SAS怎样用R定位变量的位置
相关话题的讨论汇总
话题: dv话题: iv话题: cov1话题: cov2话题: time
进入Statistics版参与讨论
1 (共1页)
s****a
发帖数: 296
1
Hello, sorry I cannot type in Chinese here. Please bear with me.
I have a question about analyzing longitudinal data.
Say I have repeated meaurements on both dependent(DV) and independent (IV)
variables.
My data in long-format looks like:
Subject time DV IV Cov1 Cov2
1 0 y10 x10 a10 b10
1 1 y11 x11 a11 b11
1 2 y12 x12 a12 b12
1 3 y13 x13 a13 b13
2 0 y20 x20 a20 b20
2 1 y21 x21 a21 b21
2 2 y22 x22 a22 b22
2 3 y23 x23 a23 b23
3 0 y30 x30 a30 b30
3 1 y31 x31 a31 b31
3 2 y32 x32 a32 b32
3 3 y33 x33 a33 b33
My study question is the relation between IV and the longitudinal change of
DV, adjusting for time-varying covariates Cov1 and Cov2
I know one way of modeling in SAS is:
DV=IV time IV*time Cov1 Cov2
And in this model, each variable has 4 time points(measurements).
However, if I wanna directly model the change of DV as the outcome and the
baseline DV (at time 0) as one of the covariates,
does that mean I have to transpose data to a format like: ?
Subject time DV IV Cov1 Cov2 bl_DV bl_IV bl_Cov1 bl_Cov2
1 1 y11 x11 a11 b11 y10 x10 a10 b10
1 2 y12 x12 a12 b12 y10 x10 a10 b10
1 3 y13 x13 a13 b13 y10 x10 a10 b10
2 1 y21 x21 a21 b21 y20 x20 a20 b20
2 2 y22 x22 a22 b22 y20 x20 a20 b20
2 3 y23 x23 a23 b23 y20 x20 a20 b20
3 1 y31 x31 a31 b31 y30 x30 a30 b30
3 2 y32 x32 a32 b32 y30 x30 a30 b30
3 3 y33 x33 a33 b33 y30 x30 a30 b30
Then how will my model look like in SAS?
If the data should not be transposed like this, how it should be like? And
what's the SAS code then?
Thank you very much.
r*****y
发帖数: 199
2
What SAS procedure are you using? To my knowledge, you can analyze
repeated measure using both GLM and Mixed, each of which requires
different data structure.
s****a
发帖数: 296
3
I use mixed

【在 r*****y 的大作中提到】
: What SAS procedure are you using? To my knowledge, you can analyze
: repeated measure using both GLM and Mixed, each of which requires
: different data structure.

D**g
发帖数: 739
4
Are you sure that all the covariates and independent variable are time-
varying? Are those covariates categorical or continuous?

【在 s****a 的大作中提到】
: I use mixed
s****a
发帖数: 296
5
Yes. All the variables were measured in all time points. Some covariates
were categorical, some were continuous.

【在 D**g 的大作中提到】
: Are you sure that all the covariates and independent variable are time-
: varying? Are those covariates categorical or continuous?

D**g
发帖数: 739
6
I guess you'd better think about how to interpret the results first before
you run the model if you have many time varying things. For example, it
may be ok to run a model with data set as what you transposed, but the
interpretation will be very difficult. You may need to simplify your
analysis. You can read Don Hedecker's book or check his website. http://www.uic.edu/classes/bstt/bstt513/index.html

【在 s****a 的大作中提到】
: Yes. All the variables were measured in all time points. Some covariates
: were categorical, some were continuous.

z**********i
发帖数: 12276
7
http://www.ats.ucla.edu/stat/sas/library/mixedglm.pdf

【在 s****a 的大作中提到】
: Hello, sorry I cannot type in Chinese here. Please bear with me.
: I have a question about analyzing longitudinal data.
: Say I have repeated meaurements on both dependent(DV) and independent (IV)
: variables.
: My data in long-format looks like:
: Subject time DV IV Cov1 Cov2
: 1 0 y10 x10 a10 b10
: 1 1 y11 x11 a11 b11
: 1 2 y12 x12 a12 b12
: 1 3 y13 x13 a13 b13

s****a
发帖数: 296
8
看來我還是沒有找到問題的答案。不過還是非常感謝樓上熱心的同學們。
s****a
发帖数: 296
9
看來我還是沒有找到問題的答案。不過還是非常感謝樓上熱心的同學們。
1 (共1页)
进入Statistics版参与讨论
相关主题
怎样用R定位变量的位置再问一个sas输出的问题 (export)
SAS中如何只保留变量名中含有reading的变量啊SAS ADV passed!!!
How to sort the columns in SAS?请教SAS 问题
如何将SAS DATA中的变量名改名(不知道原变量名的前提下)data reading question in SAS
请教一道作业题求助:SAS使用问题(读数据)
longitudinal data analysis里面,GEE model 和 mixed model两个方法各有什么优越性吗?SAS 高手帮忙看看这个数据能用lifetest吗?
请教一类数据的处理方法问一个简单的SAS问题,多谢
請教許多data 快速import and transpose的方法mysql 问题
相关话题的讨论汇总
话题: dv话题: iv话题: cov1话题: cov2话题: time