How can I loop through variables in SPSS? I want to avoid code duplication

后端 未结 7 1719
失恋的感觉
失恋的感觉 2021-01-03 02:31

Is there a \"native\" SPSS way to loop through some variable names? All I want to do is take a list of variables (that I define) and run the same procedure for them:

<
7条回答
  •  猫巷女王i
    2021-01-03 03:06

    Here's a page from UCLA's Academic Technology Services that describes looping over lists of variables. Quote,

    "Because we are looping through more than one variable, we will need to use Python."

    In my experience, UCLA ATS is probably the site with the best coverage of all of the major statistical computing systems. If they say you need Python... you probably need Python.

    Er... sorry for being that guy, but maybe it's time to switch to a different stats system.

提交回复
热议问题