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?
Using Binary Explanatory Variables in Panel Dataset Regression AnalysisHello, I am using Stata 15.1 on Windows 10. I have an Unbalanced Panel Data set on crime rate (con…
price controlHi, my data includes expenditure and I matched it with prices using a time variable which indicated …
stata graph and equationsif i have xt = 1.004 * xt-1 + ut and yt = 1.04 * yt-1 + vt where ut and vt are normally distributed…
Controlling for variables in stata Code: * Example generated by -dataex-. To install: ssc install dataex clear input int totalR byte(s…
Using Binary Explanatory Variables in Panel Dataset Regression AnalysisHello, I am using Stata 15.1 on Windows 10. I have an Unbalanced Panel Data set on crime rate (con…
Subscribe to:
Post Comments (Atom)
0 Response to gen var basen on frequencies?
Post a Comment