search for: egen

Displaying 11 results from an estimated 11 matches for "egen".

Did you mean: eben
2011 Jan 16
1
Equivalent to Stata egen tag
What are the R equivalents to the Stata command egen tag and egen count? egen station_week_tag = tag(station week) Thank you
2012 Dec 10
3
equivalent of group command of the egen function in Stata
Dear R listers, I am trying to create a new variable that uniquely identifies groups of observations in a dataset. So far I couldn't figure out how to do this in R. In Stata I would simply type: egen newvar = group(dim1, dim2, dim3) Please, find below a quick example to show what I am dealing with: I have a dataset with 4 variables: var <- runif(50) ## a variable that I want to group dim1 <- factor(rep(1:3, length.out= 50), labels = c("x","y","z") ) ## 3...
2005 Jun 25
2
r equivalent of egen? Not tapply
...ach repeated many times (a list of states by observation). I want to create a vector with the same length with the same value repeated over and over again within states. The value I want is the number of observations that are in the same state as each observation. In stata, this is simply egen statesum = count(state), by(state). What is the r equivalent? tapply just gives me 50 observations. No luck yet trying apply, lapply, etc. Thomas Davidoff Assistant Professor Haas School of Business UC Berkeley Berkeley, CA 94720 phone: (510) 643-1425 fax: (510) 643-7357 davidoff@haa...
2012 Jan 24
1
Splitting up large set of survey data into categories
...Now I would like to analyze the data in the data.frame by Region, Industry, Date (I would like to collapse the whole think to weekly data) and by the three different answering options {1,2,3} in V1...VN. In stata which I used before i did this step by step with a loop over all questions (V1...VN): egen pos_`X'=total(`X'==1), by(industry week_year); egen pos_`X'=total(`X'==2, by(industry week_year). This step-by-step procedure works because stata, even if the dates are displayed as weeks, doesn't aggregate the values immediately. Unfortunately there seems to be no command which...
2005 Jun 25
1
group means: split and unsplit
Took me a while but I figured out how to put in common values of group means/counts, etc. to do the same thing as egen. lapply with split and then unsplit. Thomas Davidoff Assistant Professor Haas School of Business UC Berkeley Berkeley, CA 94720 phone: (510) 643-1425 fax: (510) 643-7357 davidoff@haas.berkeley.edu http://faculty.haas.berkeley.edu/davidoff [[alternative HTML version deleted]]
2002 Feb 19
1
ext3fs: Bad super block
...hopefulle not lost data. Does anyone have a suggestion for how to save those important files? Lincoln (who hopes to be able to get some sleep tonight!) ________________________________________ Denne mail er scannet for virus med eTrust EZ Armor - Markedets bedste sikkerhedsprodukt! Hent din egen version gratis! Klik http://www.provideit.dk/sol/ Få din egen webmail på http://www.sol.dk - gratis og med dig overalt!
2007 Feb 25
0
Fedora Core 6 dom0 with a win 2003 server domU; unkown PCI device
...e any clues. I also tried to disable the sound emulatioy, but the unknown PCI device was still present. Additional info: mem=1024M cpu=any disk=loop-images soundhw=es1370 Any help is appreciated. Regards, Frodem ------------------------------------------------------------------------- Få din egen, gratis e-postadresse på Start.no _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
2001 Dec 10
0
Reaching different subnets
...workgroups in Subnet2 from Subnet1, but not a single computer. I have no access to browse any workgroup. What I first want to know is if this is possible at all? If it is, I want to know how to do it :).. Kindest Regards Johan Svensson ____________________________________________ Skaffa dig en egen @snuttis.com adress NU! http://www.snuttis.com Vill du hyra reklam-plats här? Kontakta: sponsor@snuttis.com
2013 Feb 07
5
appending and merging data frames
I know that the basic approach to append or merge data frames is using the rbind and merge commands. However, if I understand things correctly, for both commands one needs to do quite some additional programming to get e.g. behavior as with the Stata append and morge commands or to achieve some things which I think users need quite frequently. E.g. for appending, the data frame must have
2007 Mar 13
5
can´t access share by name, but on ip
Hi All ! i?m running Clearcase (IBM Rational) and have some strange problems ... when i use Samba ver 3.21b i can?t access the samba share by name (\\servername\sambashare) but i can access it on ip (\\192.168.1.100\sambashare\) i?m running debug level 10 and it seems like it can?t authenticate when access on netbios/dns/host name but on ip it can ? when running samba ver 3.23b from
2011 Jan 17
2
How to still processing despite bug errors?
...!! (Sarah Goslee) > 58. Re: rootogram for normal distributions (Deepayan Sarkar) > 59. effects packages for mixed model? (array chip) > 60. Using summaryBy with weighted data (Solomon Messing) > 61. Re: Using summaryBy with weighted data (Joshua Wiley) > 62. Equivalent to Stata egen tag (Denis Kazakevich) > 63. data frame column name change (eric) > 64. R looks for a folder not specified (l.chhay) > 65. Re: Selecting the first occurrence of a value after an > occurrence of a different value (surreyj) > 66. Re: data frame column name change (Jorge Ivan V...