1: These are the syntax that I submitted for the actual assignment. If you copy
the whole text of descriptions and the name of labels, you run into the risk of
plagiarism! Paraphrase and show your creativity in these (ofc you do not need to
do it in the normal programming language)
Good luck with your assignments then!
Assignment 1 syntax
Syntax
* Encoding: UTF-8.
* TITLE: Assignment 1 syntax.
* DATE: 9.1.2021.
* STU NUMBER OF AUTHOR: ******.
* CONTEXT: Advanced Statistics course UvA.
*
*-------------------- Table of Contents -------------------------.
*
1) Filtering the Data
2) Data description
3) Data Analysis
4) Data interpretation
*-------------------- 1) Filtering the Data -------------------------.
* # SELECTING A SPECIFIC COUNTRY: Belgium (BEL)
*my last name first letter did not have the variable. Therefore, this is the alternative choice of
country.
, *temporary filter is applied to filter out
*new filter variable has 1 for the observations I keep and 0 for the other variables:
RECODE cnt
("BEL" = 1)
(else = 0)
INTO filtervar.
* Doublechecking the recoding.
CROSSTABS cnt BY filtervar.
* Apply the filter:.
FILTER BY filtervar.
* Deleting filter and variable that were made. I repeated using these in order to explore which
country would be applicable for this research until I found Belgium
FILTER OFF.
DELETE VARIABLES filtervar.
*-------------------- 2) Data Descriptives -------------------------.
* inspection of variables
*Check of the error values and missling value
*Descriptives to inspect range, distribution, mean of variables.
, *dependent variables are at the raw 266 of original data variable view
*independent variables are at the raw 294 of original data variable view
FREQUENCIES motivat emosupp.
DESCRIPTIVES VARIABLES = motivat emosupp
/STATISTICS = MEAN STDDEV MIN MAX.
*-------------------- 3) Data Analysis -------------------------.
* Scatterplot between Parental emotional support & Student Atttidudes, Preferences and
Selfrelated beliefs: Achieving motivation (WLE) to see the bivariate correlation
*Check again if there is any error on scatterplot by comparing the crosstable to the scatterplot.
*
* Hypotheses about Parental emotional support & Student Atttidudes, Preferences and
Selfrelated beliefs: Achieving motivation (WLE).
* H1: Student who get more emotional support from their parents have more attitudes of
motivation for achievement.
* H0: People who work more do not earn more per hour than people who work less.
*
*###these analysis are just my optional calculation, thus these are not explained in the text.
*
*#1: Bivariate analysis through crosstable and scatterplot graph.