Data View
Rows are cases and columns are variables. Use it to inspect values, not to make undocumented manual changes.
Ageing, health & public statistics
Software first contact
A practical introduction to the Data Editor, Output Viewer and Syntax Editor for reproducible medical-statistics work.
Menus are useful for finding a procedure. The Paste button turns that choice into syntax you can save, inspect and rerun.
The workspace
Rows are cases and columns are variables. Use it to inspect values, not to make undocumented manual changes.
Names, labels, types, missing-value rules and measurement levels live here.
Tables, charts, warnings and model output appear here. Save it, but do not treat it as the analysis source.
The reproducible record: import, labels, transformations, tests and models in executable blocks.
Screen tour
Read in the cohort
Download the CSV and the complete .sps file into the same folder. The CSV remains the unchanged source; syntax creates the labelled SPSS copy.
Open gerostats_medical_statistics_spss.sps. If SPSS cannot find the CSV, replace the /FILE= value with its full path. This is safer than relying on an import wizard to guess types.
Select the complete GET DATA command and choose Run → Selection. Then run the labels and measurement-level commands.
Expect 720 rows and 16 variables. Confirm that med_review is labelled No/Yes, frailty_cat_6m is ordered and blank outcome cells remain missing rather than zero.
Clinical sense-check
A participant with no recorded six-month disability outcome has unknown outcome status—not “no disability”. That distinction changes the denominator and therefore the reported risk.
Working habit
Use a new syntax window for the analysis. If you open a menu to learn a procedure, choose Paste rather than OK. SPSS writes the command into the Syntax Editor; annotate it, save it and run the selected block. A full stop ends each command.
Put the CSV and syntax file in one project folder. The complete download defines every variable explicitly, so codes and decimal formats do not depend on import guesses.
* A comment begins with an asterisk and ends with a full stop.
GET DATA
/TYPE=TXT
/FILE='gerostats_medication_review_cohort.csv'
/ARRANGEMENT=DELIMITED
/FIRSTCASE=2
/DELIMITERS=","
/VARIABLES=
participant_id A7
age_years F3.0
/* Full variable list is in the download */.
DISPLAY DICTIONARY.
FREQUENCIES VARIABLES=sex med_review.
DESCRIPTIVES VARIABLES=age_years baseline_frailty.
Import, labels, checks, tests, regression, confounding and a saved labelled dataset.
Download the .sps fileThe same software-neutral data used in all three routes.
Download the CSVContinue
The Statistics Lab uses one synthetic older-adult cohort in Stata, SPSS and R. Start with the import and checking page, then follow the same statistical route in your chosen software.
Official resources
Official quick-start material, feature videos and tutorials.
Open IBM resourcesUse F1 inside a syntax block to open command-specific help.
Open IBM help guidanceOfficial definitions for chi-square, risk estimates and related statistics.
Open IBM documentation