Displaying 1 result from an estimated 1 matches for "leaderattribut".
Did you mean:
leaderattribute
2009 Dec 22
3
vector indexing problem in multilevel data: assigning a specific value to all group members
..., I have a group leader
(identified by a binary vector) and some attribute for all group
members. I want to create a new vector that holds the attribute of the
group leader for each individual in the data frame (code at the bottom
of the post):
personId groupId groupLeader someAttribute leaderAttribute
1 1 17 0 0.145833333 NA
2 2 17 1 0.218750000 NA
3 3 17 0 0.089743590 NA
4 4 22 0 0.003875969 NA
5 5 22 0 0.086486486...