|
Dear Lister(s)
I have data collected from field at different data as follows. S_DAT FREQUENCY 20080408 49 20080409 15 20080410 69 Something was wrong with first day's data in design, so I have to recode first day's data. Could I use the following SPSS syntax to recode first days's data and then do frequency to all data including all datas. Any suggestions will be appreciated. Thanks! Hans Chen =================================== USE ALL. COMPUTE filter_$=(S_DAT=20080408). VARIABLE LABEL filter_$ 'S_DAT=20080408 (FILTER)'. VALUE LABELS filter_$ 0 'Not Selected' 1 'Selected'. FORMAT filter_$ (f1.0). FILTER BY filter_$. EXECUTE . RECODE Q19 (1=2) (2=1). EXECUTE . freq var=all. execute. =================================== ===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD |
|
This is an empirical question that can be easily tested so you ought to try
it. When you do that you'll find that the answer is no. Filtering only affects which cases are analyzed by procedures such as FREQUENCIES. Use DO IF instead. -----Original Message----- From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Hans Chen Sent: Saturday, April 12, 2008 5:55 PM To: [hidden email] Subject: Re: Recode the First Day's Data Dear Lister(s) I have data collected from field at different data as follows. S_DAT FREQUENCY 20080408 49 20080409 15 20080410 69 Something was wrong with first day's data in design, so I have to recode first day's data. Could I use the following SPSS syntax to recode first days's data and then do frequency to all data including all datas. Any suggestions will be appreciated. Thanks! Hans Chen =================================== USE ALL. COMPUTE filter_$=(S_DAT=20080408). VARIABLE LABEL filter_$ 'S_DAT=20080408 (FILTER)'. VALUE LABELS filter_$ 0 'Not Selected' 1 'Selected'. FORMAT filter_$ (f1.0). FILTER BY filter_$. EXECUTE . RECODE Q19 (1=2) (2=1). EXECUTE . freq var=all. execute. =================================== ===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD ===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD |
| Free forum by Nabble | Edit this page |
