similar to: Equivalent to Stata egen tag

Displaying 20 results from an estimated 600 matches similar to: "Equivalent to Stata egen tag"

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
2005 Jun 25
2
r equivalent of egen? Not tapply
I have a list that has about 50 elements, each 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
2012 Jan 24
1
Splitting up large set of survey data into categories
Hi, I am a total newbie to R so I apologize if the answer to my question is too obvious. I a data set of the following form: Date V1 V... VN Region Industry 22/03/1995 23:01:12 1 3 2 15 A 21/03/1995 21:01:12 3 3 1 9 C 1/04/1995 17:01:06 3 2 1 3 B
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
2002 Feb 19
1
ext3fs: Bad super block
I've got this poor ext3-partition which I can't access. I have tried a lot of things but it doesn't seem to solve the problem. I've got quite important files on that particular partition. I can't even get the block groups from my /dev/hda3 with dumpe2fs! It all happened after a crash. GRUB wouldn't give me the graphical UI. I decided I had to get my dosbootdisk and do an
2012 Mar 13
1
perl-DBD-MySQL, libmysqlclient.16 and 5.7 (FInal)
Hello, I have server CentOS 5.7. It has mysql-community installed. I need to run perl-based tool (mysqlreport) and it requires perl-DBD-MySQL (not a surprise) When I am trying to install perl-DBD-MySQL via yum -- it says it requires libmysqlclient.*15 *and it conflicts with libmysqlclient.*16 *which was installed as a part of mysql-community. I tried to make symbolic link and force DBD to work
2007 Feb 25
0
Fedora Core 6 dom0 with a win 2003 server domU; unkown PCI device
Hello, I''ve got xen installed on a box running Fedora Core 6. In addition I''m running a Windows 2003 server as a domU. Everything work fine and I am quite satisfied with the setup. However, in win 2003''s device manager there is a unknown PCI device that I not able to find a suitable driver for. Windows update can''t find one either. Is there a way to find what
2001 Dec 10
0
Reaching different subnets
Hi! I have a problem with samba, that I don't know if it's possible to solve. This is my network: <Subnet1>-Ethernet-<Gateway>-Ethernet-<Subnet2>-Internet Subnet1 is my own local network (bcast 192.168.1.255), Gateway is my own gateway machine (FreeBSD4.4, IPs: 192.168.1.1 and 193.13.35.101), Subnet2 is my neighbours (bcast 193.13.255.255). I can configure all
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 Feb 27
1
stata.get labels glm()
Dear R community, I would like to import data saved with Stata and then run a Probit model using R. My data comes from the World Values Surveys and in the Probit model I want to control for countries. So far I figured out that I should put "convert.factors = FALSE" when using stata.get() in order to import numeric values instead of label mappings, which is what I want for most of the
2008 Dec 12
1
Functions in R like lincom and nlcom of Stata
Hello all, Does anyone know if there exists any function in R that resembles the "lincom" and "nlcom" of STATA?. These functions computes point estimates, standard errors, significance levels, confidence intervals, etc. for linear and non linear combinations of previous estimated parameters. Down here you've got links to descriptions of the functions of STATA nlcom:
2005 Dec 14
0
SAS.xpt/STATA.dta, field descriptions, and dbWriteTable
Hello all, I have a large database (~100MB in 13 relational files) that made its way to me in two formats. The files were sent in both SAS xport and STATA, thanks, I am told, to stat-transfer. The two files, ostensibly, contain the same data, just in different formats. My goal: Move these files to MySQl without the help of SAS or STATA (which I do not have). The tools I am using are: 1.
2009 Dec 14
0
Calling R code from within STATA
Dear R Users, Do you know whether is possible to call R code from within STATA and how to do it? Also, do you know whether is there any way of doing the other way round, i.e. calling STATA from within R (possibly in a similar way that is possible to call WinBUGS from within R using the function "Bugs")?? Thanks, Manuel -- View this message in context:
2007 Jul 27
1
reading stata files: preserving values of variables converted to factors
Hi, I am a Stata user new to R. I am using read.dta to read a Stata file that has variables with value labels. read.dta converts them to factors, but seems to recode them with values from 1 to <number of factor levels> (looking at the output of unclass(<varname>)), so the original numerical values are lost. Using convert.factors=FALSE preserves the values, but seems to discard
2013 Nov 20
1
Binomial GLM in Stata and R
Hello, I'm not a Stata user so I'm trying to reproduce Stata results that are given to me in R. I would like to use a GLM with a complementary log-log function. The stata code I have is: glm c IndA fia, family(binomial s) link(cloglog) offset(offset) The R code is: glmt <- glm(data=dataset, c ~ IndA + fia, offset = offset, family = binomial(link = cloglog)) Which yields
2009 Dec 12
0
Call STATA code from within R
Dear R Users, Do you know whether is there any way of calling STATA from within R (possibly in a similar way that is possible to call WinBUGS from within R using the function "Bugs")?? Thanks, Manuel -- View this message in context: http://n4.nabble.com/Call-STATA-code-from-within-R-tp961885p961885.html Sent from the R help mailing list archive at Nabble.com.
2008 Jan 29
0
regression - cluster option in STATA - what in R?
My phd-student works in stata using cluster option in a regression model like this example: (from link: http://www.ats.ucla.edu/stat/stata/faq/clusterreg.htm) """ /* model 2 -- same as svy: regress with psu */ regress math homework, cluster(schid) """ I need to put som extra "blinded" data into the same model using R. This "cluster" option. Is
2009 Jul 08
1
clogit comparison between Stata and R
Hello all I'm moving back and forth between stata and R at the moment - of course, using R whenever possible :-) I'm running conditional logits on some panel data and I get slightly different results and different N in the two programs. In R I run clogit(trans.dem ~ I(avg.gle_rgdp.500/gle_rgdp) + log(gle_rgdp) + timesince.dem + I(timesince.dem^2) + timesince.dict + I(timesince.dict^2) +
2011 Mar 22
2
Popularity of R, SAS, SPSS, Stata, Statistica, S-PLUS updated
Greetings, I've just put out the latest version of "The Popularity of Data Analysis Software" at http://r4stats.com/popularity. This update includes complete data for 2010, the addition of number of blogs for each software, more coverage of Statistica, and, where possible, measures regarding the implementations of the SAS Language: Carolina and the World Programming System (WPS).