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
How can I add the the decomposition of the R² in "between" and "within" to a a table (xtreg) ?I am studying the relationship between university rankings (dependant variable) and academic freedom…
renaming multi-variables using foreachHi, I am asking this clarification after going through STATA doc and some of the web content. Altho…
How to reshape data with dates as variable names?Greetings everyone, I need your help reshaping my district-level daily temperature data from a wide…
command table with option markvar(newvar) creates error __000001 not foundWhy do the commands table and table twoway with the option markvar(newvar)create the error "__000001…
ds - how to display fullnamesDear Statalisters - I have a large dataset and am looking to list out the names of all my string va…
Subscribe to:
Post Comments (Atom)
0 Response to Looping identify autosomal monosomies | regexm
Post a Comment