Hello all:
I am trying through loop through a string of karyotype to identify occurrence of "-1" through "-22" corresponding to autosomal monosomies using a loop. My loop code is picking -18 as a matches for -1 and -18. How do I restrict the loop appropriately? Sorry the data is not -dataex-able since many entries are really long strings.
CLONE1:41,XY,del(5)(q33q35),-6,-7,dic(11;12)(p11.2;p13),dic(17;20)(p11.2;p11.2),-18,-22[15]CLONE2:42,idem,+8[4]CLONE3:82,idemx2[2]
foreach num of numlist 1(1)22{
gen loss_`num' = ustrregexm(kar, "-`num'") if !missing(kar)
}
Related Posts with Looping identify autosomal monosomies | regexm
Multilevel mixed-effects logistic regression with interactionI want to run the following logistic regression models but with each age group (i.age) as an interac…
Significance level based on the Wilcoxon signed rank testDear all, this is my first post and first of all, I must say, thank you all for providing so much i…
Panel Data : Insufficient Observations (Singletons or separated by a fixed effect)Good day, I am using Stata 16 to run a fixed effect on effect Non Tariff Measures ( ADP QR SG SPS T…
Principal Component Analysis (Creating an Index using Multiple Scores)Hello, everyone. I am computing an index using Principal Component Analysis. After running the PCA c…
Decomposing regression into within and between effectsConsider the following baseline model: yijk = beta * xijk + errorijk where i indicates a child, j i…
Subscribe to:
Post Comments (Atom)
0 Response to Looping identify autosomal monosomies | regexm
Post a Comment