Hi,
I am trying to split my time-varying education variable, didn't figure out something. In my data, each observation enters risk after age 14 until their first partnership( both are in the form of CMC-century month code). I am gonna create a variable based on years of schooling information of each observation. Each observation starts education at the age of 6. I grouped years of schooling as follow;
primary:1-4 (1 to 4 years of schooling)
lower secondary;5-10
upper secondary; 11-13
tertiary;13+
I am trying to find in which group an observation falls into before leaving the risk period ( from age 14 to first partnership). I have "birth" "origin14"(risk entrance) and "firstpart"(failure time) variable in CMC format.
gen educage=6+yearsofschooling
label variable educage "age at completion of education"
gen educcmc=educage*12+ birth
stsplit educsp, at(?) after (time=educcmc) here I both confused how I am gonna put my schooling group after "at(?)" and whether "after (time= ) should follow educcmc or origin14?
Thank you in advance
Related Posts with Episode splitting
Export adjusted ratios from dstdize commandDear all, Really appreciate if someone could kindly help me. I'm using Code: dstdize command to ca…
Problem with number of instrument with xtabond2Hello everyone, I am just new to managing panel series and I am working on the investigation of fina…
Necessary co-variate omitted due to collinearityHi everyone, I had a quick question. I am new to Stata, so please forgive me if this question seems…
Behavior analysis (relational or random variables?)Dear, good night! I read several topics, but I got more lost. I tried to make a tree to check a path…
Whether coefficients of before clustering and after clustering in using reg command is strange?Hi all, Today I run a simple reg for a panel dataset with a panel of units and time periods , I con…
Subscribe to:
Post Comments (Atom)
0 Response to Episode splitting
Post a Comment