Displaying 1 result from an estimated 1 matches for "fromdad".
2008 Apr 13
3
Matched pairs with two data frames
...,4.9,5.2,6.5))
print(treat)
print(control)
matched.data.frame <- ?????? #Match "treat" "control" by age school
#My SPSS syntax would be similar to this:
MATCH FILES FILE="treat" /IN=fromtreat
/FILE="control" /IN=fromcontrol
/BY age school.
SELECT IF fromdad AND fromfam. #select data, set filter
The /IN= option creates a 0/1 variable that indicates the
"source" of the data
The resultand matched data frame should have
the following structure:
age school out1 out2 fromtreat fromcontrol
1 10 9.5 1.1 1 1
1 10 2.3 2.0 1 1
.......