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?
GLS regression STATACurrently I'm working on the replication (variation in time) of Charles W. L. Hill, & Phan, P. (…
How do I generate a numerical variable from a string variable?I have a variable with city names and I want to create a new variable which a unique number for each…
FD-GMM vs sys-GMMDear all. Which kind of GMM method should I use to dynamic panel data? FD-GMM or sys GMM?Some people…
Model using lagged independent variable = model using forwarded dependent variable?Say two models using panel data Model 1: Yt = Xt-1 Model 2: Yt+1 = Xt Does these two models are the …
Question about datesI had a question about dates. Can someone suggest an efficient method to deal with this type of date…
Subscribe to:
Post Comments (Atom)
0 Response to gen var basen on frequencies?
Post a Comment