Completed

Code a variable in dyadic dataset and put in my monadic dataset

I have a monadic dataset of alliances where I am trying to predict secret alliances and I claim that prior experience with alliances, prior secret alliances, and having previously made an alliance with another state in the alliance in the past increases the probability of a state making a secret alliance in the future.

I have already coded the previous alliance and previous secret alliance variables with temporal constraints of 20, 25, and 30 years. So there are three different variables here. What I need is a variable indicating whether the state in question has made a previous alliance with one of the other states in an alliance within the past 10, 15, 20, 25, or 30 years (so five different variables).

I think it is a pretty straightforward thing to do and should go pretty quickly (but it is above my coding abilities). The most difficult thing about it is that the alliance dataset would be dyadic (pairs of alliances), whereas the alliance I am working off of is monadic (one observation for each member of each alliance). However, the dataset has unique identifiers for each alliance, so that should merge easily. So the data would ideally need to be coded in the dyadic dataset and then the info from that merged with the state and alliance number in the monadic datset I have built.

So, if the US has an alliance with Canada in 1972, the questions I need answered are if the US signed an alliance with Canada in the past 10, 15, 20, 25, or 30 years. In the dyadic dataset, there is an entry for the US-Can alliance in 1972.

Ideally, I'd like to see this done in Stata and get the code.

Also, one other thing that would take a few minutes is I would like to know the temporal distance between different secret alliances to see if time is a factor. So, if the US signed a secret alliance on 11/3/1908 and another one on 5/4/1928, what is the time difference between these two dates? While I know how to do this if it is within the same observation, I don't know how to do this if it is in different observations (some kind of a loop or egen command, perhaps).

I need a couple of variables coded in one dataset and then merged into another.

I don't think it would take more than twenty minutes for someone who knows the code. It would actually probably take less time than that.

Preferably, I'd like to have it by Friday.

Basically, I know how to build the variables I need across the same observation, but not when it comes to different observations.

Skills: Coding

See more: huawei command number, unique alphanumeric random code, generate unique alpha numeric code, number words can write day, php create unique alpha numeric code, enter unique alpha numeric code, control number pages can print windows, variable data image merge printing, url flash code variable goole banners, number users can invited registered user wordpresscom, number users can invited registered user wordpress, max number messages can sendin myspace day, number users can invited wordpress, copy data web site table excel sheet vb code, fbml code variable, monadic parser command line, gsm command number sms sim card, code variable, google pagerank number yahoo linkdomain command number, matlab code variable step size nlms algorithm

About the Employer:
( 1 review ) San Diego, United States

Project ID: #18345221

Awarded to:

Hassanmurtza

I am STATA EXPERT I can perform this task EFFICIENTLY & ACCURATELY. I have a strong and proven track record of doing DATA ANALYSIS, STATISTICAL ANALYSIS, SURVEY ANALYSIS AND FORECASTING FUTURE OUTCOMES. I have work More

$100 USD in 1 day
(0 Reviews)
0.0

4 freelancers are bidding on average $81 for this job

RushService

Feel fee to contact me for Code a variable in dyadic dataset and put in my monadic [login to view URL] me message to discuss further more details .We provide the comments,images,videos,demos and live sessions in order to More

$150 USD in 1 day
(2 Reviews)
2.7
slavand0405

Hello, nice to meet you. I saw your description, so I think I'm sure I can deliver your project with the best quality within the timeline. I have 100% job completion rate as well. I'd like to discuss with you soon. More

$50 USD in 1 day
(0 Reviews)
0.0
codetech8058

Hello Sir, I Read Job Description and I AM READY FOR START WORK RIGHT NOW, PLEASE REPLY I am very much interested to work in your project. i have 6 years experiences in website design and website development. i am expe More

$25 USD in 1 day
(0 Reviews)
0.0