How do i create a new variable based on known frequencies.
Fx i have been send a list on frequencies in my control group having tissue type 1,2,3,4,5,6,7. Now i want to create a variabel in stata that has 300 with type 1, 55 with type 2, 234 with type 3 and so on. so that i can make chi squared and many other tests afterwards.
Hope someone can help!
- Caroline
Related Posts with gen var basen on frequencies?
Testing of adjusted Kaplan-Meier survivalHow to test for adjusted kaplan-meier survival analysis ? I am able to create adjusted KM graph but …
Marginsplots for different values of xHello, first post so apologies if something similar has been asked before. I'm investigating the rel…
Comparing two probit models with clustered standard errorsHey everyone, I would like to compare two probit models (that are nested) to see whether the additi…
Panel Data Analysis: Growth rates or levels?Hi Statalist-community! I am currently writing a seminar paper. I am estimating the effect of the s…
Generating data according to a patternHello list, I am trying to generate data according to the following pattern: Obs A B C ------------…
Subscribe to:
Post Comments (Atom)
0 Response to gen var basen on frequencies?
Post a Comment