carrying variables in member data from one member to another

Moderators: statman, Analyst Techy, andris, Fierce, GerineL, Smash

tunca
Posts: 1
Joined: Tue Dec 10, 2013 7:56 pm

carrying variables in member data from one member to another

Postby tunca » Tue Dec 10, 2013 8:07 pm

In the member data, educational attainment of each member (father, mother, son, daughter, etc.) is present: educ variable.
I want to create two new variables called feduc (father's education) and meduc (mother's education) which can be done by attaining father's and mother's education as feduc and meduc to the son's and daughter's line.

in other words, I want to carry the value of a variable of one member to another variable belonging to another member in the member data.

how can I do this???

thanks...
GerineL
Moderator
Posts: 1477
Joined: Tue Jun 10, 2008 4:50 pm

Re: carrying variables in member data from one member to ano

Postby GerineL » Fri Dec 13, 2013 2:29 pm

Not quite sure what you want, specifically, don't really understand what your data looks like and what you want to achieve.

I am not familiar with your dataset "the member data".

I think you might need if-functions, so look into that.

e.g.

if (member = "father") feduc = educ.
if (member = "mother") meduc = educ.
execute.

but depends on what your vars look like etc.

Who is online

Users browsing this forum: No registered users and 2 guests

cron