spss

cox proportional hazard regression in SPSS using reference group

北城以北 提交于 2021-02-11 15:15:35
问题 I am running cox proportional hazard regression in SPSS to see the association of 'predictor' with risk of a disease in a 10 years follow-up. I have another variable 'age_quartiles' with values 1,2,3,4 and want to use '1' as reference to get HRs for 2,3, and 4 relative to '1'. When I put this variable in Strata I still get one 'HR' as follows ('S_URAT_07' is the predictor with continuous values); Question: How do I get HRs for the predictor for the event based on 'age_quartiles' 2,3 and 4 and

effect vs. predict function

跟風遠走 提交于 2021-02-07 17:32:48
问题 I'm simultaneously trying to understand R's predict() function and the 'effects' package effect() function. Essentially, I'm running a regression to test the interaction of two dichotomous IVs on a DV while controlling for two continuous covariates. In my actual dataset, the interaction is significant and so now I would like to plot the interaction. Because I have covariates in my model, I should plot the means after controlling for these other variables (i.e. estimated marginal means in SPSS

SPSS: how to find text in text?

心不动则不痛 提交于 2021-01-29 04:20:27
问题 In my SPSS-dataset I have a string-variable QuestionA containing the answer to a certain question. However, instead of just one answer, it is possible to check more than one answer. For example, if one checks answers 02, 05 and 07 it is saved in the variable QuestionA as the string "02;05;07". I would like to create a variable for specific answer 02. Let's call that variable Answer02. It should contain a 0 if QuestionA does not contain 02 anywhere in its text, and a 1 if QuestionA actually

Adding same data for same value of variable(i.e ID)

女生的网名这么多〃 提交于 2021-01-28 04:52:28
问题 I have two sets of data files in .sav (EMR.sav and APP.sav) What I want to do, it merge the two data of EMR and APP, to do "comparison of steps by sex". The data of EMR is as follows: pid sex 306 1 866 1 896 1 921 2 The data of APP would be something like this(the A_id would equal to pid in EMR): A_id A_calorie A_distance 866 124 14 866 24 24 866 13 35 866 12 23 866 23 0 921 101 23 921 12 13 921 19 24 921 200 235 921 232 241 The result I want to get is the two data files to merge and have:

SAS PROC IMPORT Multiple SAV Files- Force SPSS Value Labels to Create UNIQUE SAS Format Names

放肆的年华 提交于 2021-01-07 02:52:14
问题 Sometimes if I import multiple SAV files into the SAS work library, one variable imported later on overwrites the display text (i.e., the format) of an earlier imported variable with a similar name. I've determined that this is because the later dataset's variable produces a format name for the custom format (from SPSS Values Labels) that is identical to format name from the earlier variable, even though the variables have different definitions in the Value Labels attributes in the SAV files.

SAS PROC IMPORT Multiple SAV Files- Force SPSS Value Labels to Create UNIQUE SAS Format Names

微笑、不失礼 提交于 2021-01-07 02:52:04
问题 Sometimes if I import multiple SAV files into the SAS work library, one variable imported later on overwrites the display text (i.e., the format) of an earlier imported variable with a similar name. I've determined that this is because the later dataset's variable produces a format name for the custom format (from SPSS Values Labels) that is identical to format name from the earlier variable, even though the variables have different definitions in the Value Labels attributes in the SAV files.