# Compute filteruniform1 s2 s1 compute s1s1 filter

• 104
• 100% (1) 1 out of 1 people found this document helpful

Course Hero uses AI to attempt to automatically extract content from documents to surface to you and others so you can study better, e.g., in search results, to enrich docs, and more. This preview shows page 42 - 47 out of 104 pages.

compute filter_\$=uniform(1)* #s_\$_2 < #s_\$_1.compute #s_\$_1=#s_\$_1 - filter_\$.compute #s_\$_2=#s_\$_2 - 1.else.compute filter_\$=0.end if.VARIABLE LABELS filter_\$ '125 from the first 2013 cases (SAMPLE)'.FORMATS filter_\$ (f1.0).FILTERBY filter_\$.EXECUTE.DESCRIPTIVES VARIABLES=Volume/STATISTICS=MEAN STDDEV.125 from the first 2013 cases(SAMPLE)N of Rows in Working DataFileUser defined missing valuesare treated as missing.DESCRIPTIVESVARIABLES=Volume/STATISTICS=MEANSTDDEV.
DescriptivesNotesOutput Created10-MAY-2021 20:15:20CommentsInputActive DatasetDataSet1FilterWeight<none>Split File<none>125Missing Value HandlingDefinition of MissingCases UsedAll non-missing data are used.SyntaxResourcesProcessor Time00:00:00.03Elapsed Time00:00:00.02Descriptive StatisticsNMeanStd. DeviationVolume12557473486.4039752346.375Valid N (listwise)125USE ALL.do if \$casenum=1.compute #s_\$_1=125.compute #s_\$_2=2013.end if.do if#s_\$_2 > 0.compute filter_\$=uniform(1)* #s_\$_2 < #s_\$_1.compute #s_\$_1=#s_\$_1 - filter_\$.compute #s_\$_2=#s_\$_2 - 1.else.compute filter_\$=0.end if.VARIABLE LABELS filter_\$ '125 from the first 2013 cases (SAMPLE)'.125 from the first 2013 cases(SAMPLE)N of Rows in Working DataFileUser defined missing valuesare treated as missing.DESCRIPTIVESVARIABLES=Volume/STATISTICS=MEANSTDDEV.
FORMATS filter_\$ (f1.0).FILTERBY filter_\$.EXECUTE.DESCRIPTIVES VARIABLES=Volume/STATISTICS=MEAN STDDEV.DescriptivesNotesOutput Created10-MAY-2021 20:15:21CommentsInputActive DatasetDataSet1FilterWeight<none>Split File<none>125Missing Value HandlingDefinition of MissingCases UsedAll non-missing data are used.SyntaxResourcesProcessor Time00:00:00.00Elapsed Time00:00:00.00Descriptive StatisticsNMeanStd. DeviationVolume12548142690.4031946954.527Valid N (listwise)125USE ALL.do if \$casenum=1.compute #s_\$_1=125.compute #s_\$_2=2013.end if.do if#s_\$_2 > 0.compute filter_\$=uniform(1)* #s_\$_2 < #s_\$_1.125 from the first 2013 cases(SAMPLE)N of Rows in Working DataFileUser defined missing valuesare treated as missing.DESCRIPTIVESVARIABLES=Volume/STATISTICS=MEANSTDDEV.
compute #s_\$_1=#s_\$_1 - filter_\$.compute #s_\$_2=#s_\$_2 - 1.else.compute filter_\$=0.end if.VARIABLE LABELS filter_\$ '125 from the first 2013 cases (SAMPLE)'.FORMATS filter_\$ (f1.0).FILTERBY filter_\$.EXECUTE.DESCRIPTIVES VARIABLES=Volume/STATISTICS=MEAN STDDEV.DescriptivesNotesOutput Created10-MAY-2021 20:15:21CommentsInputActive DatasetDataSet1FilterWeight<none>Split File<none>125Missing Value HandlingDefinition of MissingCases UsedAll non-missing data are used.SyntaxResourcesProcessor Time00:00:00.02Elapsed Time00:00:00.01Descriptive StatisticsNMeanStd. DeviationVolume12547543127.2033138638.880Valid N (listwise)125USE ALL.125 from the first 2013 cases(SAMPLE)N of Rows in Working DataFileUser defined missing valuesare treated as missing.DESCRIPTIVESVARIABLES=Volume/STATISTICS=MEANSTDDEV.
do if \$casenum=1.compute #s_\$_1=125.compute #s_\$_2=2013.end if.do if#s_\$_2 > 0.compute filter_\$=uniform(1)* #s_\$_2 < #s_\$_1.

Course Hero member to access this document

Course Hero member to access this document

End of preview. Want to read all 104 pages?

Course Hero member to access this document

Term
Fall
Professor
N/A
Tags
Mean, STATISTICS DESCRIPTIVES