The US Federal Reserve's Survey of Consumer Finances microdata includes components of net worth, but not the measure itself.
The codebook for the 2016 SCF (latest) states:
Summary variables (e.g., NET WORTH) are not included in the main data set...However, as a convenience to users, we have included on the SCF web site a program written in the SAS language
That SAS program defines net worth as:
NETWORTH=ASSET-DEBT; IF (NETWORTH<=.Z) THEN PUT Y1= &PID= FIN= NFIN= DEBT= LIQ= CDS= NMMF= STOCKS= BOND= RETQLIQ= SAVBND= CASHLI= OTHMA= OTHFIN= VEHIC= HOUSES= ORESRE= NNRESRE= BUS= OTHNFIN= MRTHEL= RESDBT= OTHLOC= CCBAL= INSTALL= ODEBT=;
DEBT are also not in the SCF microdata; they're calculated in the SAS macro.
Is there pseudocode to calculate net worth from the SCF microdata? I don't have a SAS license so I'm looking to reproduce it in Python.