Category Archives: Stats, Softwares, Syntax

How to calculate and use predicted Y-values in multiple regression

Here, I will explain how to use the so-called “Yhat” or predicted values of Y when doing regression (OLS, logistic and multilevel). (Update 2017) This article is based on my paper: Hu, M. (2017). An update on the secular narrowing of … Continue reading

Posted in IQ Survey & Analysis, Stats, Softwares, Syntax | Tagged | Comments Off on How to calculate and use predicted Y-values in multiple regression

Get (not so easily) introduced to R

I dislike R, unlike some other softwares I use, such as SPSS and Stata. It’s extremely error prone. But it’s free, and can do almost everything (e.g., a few things Stata cannot do and a lot of things SPSS/AMOS cannot … Continue reading

Posted in Stats, Softwares, Syntax | Comments Off on Get (not so easily) introduced to R

Get (easily) introduced to SPSS

I do not want to make multiple posts on this topic. So, this post will be updated little by little (if I learn something new). Here, we have a list of essential commands for creating variables, making basic (and advanced) … Continue reading

Posted in Stats, Softwares, Syntax | Tagged | Comments Off on Get (easily) introduced to SPSS

Get (easily) introduced to Stata

I do not want to make multiple posts on this topic. So, this post will be updated little by little (if I learn something new). Here’s the list of essential commands for creating variables, making basic (and advanced) statistical analyses.

Posted in Stats, Softwares, Syntax | Tagged | Comments Off on Get (easily) introduced to Stata

Skin Color, Verbal IQ, and Test of the Colorism Hypothesis in the GSS (syntax SPSS)

See related post here.

Posted in Stats, Softwares, Syntax | Tagged | Comments Off on Skin Color, Verbal IQ, and Test of the Colorism Hypothesis in the GSS (syntax SPSS)

Racial Differences in Forward-Backward Digit Span and Bias Item Analysis in the CNLSY79 (SPSS syntax)

see below.

Posted in Stats, Softwares, Syntax | Tagged | Comments Off on Racial Differences in Forward-Backward Digit Span and Bias Item Analysis in the CNLSY79 (SPSS syntax)

Gender and Race Differences in the Wordsum GSS : Test of Psychometric Bias with Logistic Regression (SPSS syntax)

See the related post here.

Posted in Stats, Softwares, Syntax | Tagged | Comments Off on Gender and Race Differences in the Wordsum GSS : Test of Psychometric Bias with Logistic Regression (SPSS syntax)

Structural relationship between g, parental SES, and achievement : Investigation of the g nexus (NLSY97 syntax)

I recommend to run multiple imputation by hand. I have just displayed what the syntax looks like, at the very end of this page. Before running this syntax, make sure that education and grade variables are configured as “scale” and … Continue reading

Posted in Stats, Softwares, Syntax | Tagged | Comments Off on Structural relationship between g, parental SES, and achievement : Investigation of the g nexus (NLSY97 syntax)

Psychometric bias regarding race differences in the NLSY-ASVAB : How much ? (NLSY79 syntax)

At the end of this page, I display a series of syntax for ASVAB subtest matrices (blacks, hispanics, whites, and then by gender within races). These commands will produce a new data file with means, standard deviations, variances, covariances, N, … Continue reading

Posted in Stats, Softwares, Syntax | Tagged | Comments Off on Psychometric bias regarding race differences in the NLSY-ASVAB : How much ? (NLSY79 syntax)

Psychometric bias regarding race differences in the NLSY-ASVAB : How much ? (NLSY97 syntax)

At the end of this page, I display a series of syntax for ASVAB subtest matrices (blacks, hispanics, whites, and then by gender within races). These commands will produce a new data file with means, standard deviations, variances, covariances, N, … Continue reading

Posted in Stats, Softwares, Syntax | Tagged | Comments Off on Psychometric bias regarding race differences in the NLSY-ASVAB : How much ? (NLSY97 syntax)

On the partial mediating role of processing speed between black-white differences, IQ and GPA (NLSY97 syntax)

Related article here.

Posted in Stats, Softwares, Syntax | Tagged | Comments Off on On the partial mediating role of processing speed between black-white differences, IQ and GPA (NLSY97 syntax)

On the partial mediating role of processing speed between black-white differences, IQ and GPA (NLSY79 syntax)

Related article here.

Posted in Stats, Softwares, Syntax | Tagged | Comments Off on On the partial mediating role of processing speed between black-white differences, IQ and GPA (NLSY79 syntax)

More income for more happiness ? Yes, but… (NLSY97, SPSS syntax)

Original article here. (Again, the use of weights versus no weights does not affect the results.)

Posted in Stats, Softwares, Syntax | Tagged | Comments Off on More income for more happiness ? Yes, but… (NLSY97, SPSS syntax)

Gender and BW gap changes over time in the GSS Wordsum (SPSS syntax)

GSS data for SPSS format available here (select cumulative data set). Unfortunately, it wasn’t possible to exclude “hispanic” in the white or even in the black sample in the analysis of gap over time. For one reason : HISPANIC variable has not … Continue reading

Posted in Stats, Softwares, Syntax | Tagged | Comments Off on Gender and BW gap changes over time in the GSS Wordsum (SPSS syntax)

Racial IQ gap by SES in the CNLSY79 (SPSS syntax)

Read the related page for syntax in other survey data.

Posted in Stats, Softwares, Syntax | Tagged | Comments Off on Racial IQ gap by SES in the CNLSY79 (SPSS syntax)

Racial IQ gap by SES in the HSLS 2009 (SPSS syntax)

Read the related page for syntax in other survey data.

Posted in Stats, Softwares, Syntax | Tagged | Comments Off on Racial IQ gap by SES in the HSLS 2009 (SPSS syntax)

Racial IQ gap by SES in the ECLS-K (SPSS syntax)

Read the related page for syntax in other survey data.

Posted in Stats, Softwares, Syntax | Tagged | Comments Off on Racial IQ gap by SES in the ECLS-K (SPSS syntax)

Racial IQ gap by SES in the Add Health (SPSS syntax)

Read the related page for syntax in other survey data.

Posted in Stats, Softwares, Syntax | Tagged | Comments Off on Racial IQ gap by SES in the Add Health (SPSS syntax)

Racial IQ gap by SES in the NLSF (SPSS syntax)

Read the related page for syntax in other survey data.

Posted in Stats, Softwares, Syntax | Tagged | Comments Off on Racial IQ gap by SES in the NLSF (SPSS syntax)

Racial IQ gap by SES in the NLSY97 (SPSS syntax)

Read the related page for syntax in other survey data.

Posted in Stats, Softwares, Syntax | Tagged | Comments Off on Racial IQ gap by SES in the NLSY97 (SPSS syntax)