Displaying 20 results from an estimated 4000 matches similar to: "Functions in R like lincom and nlcom of Stata"
2010 Jun 09
1
equivalent of stata command in R
Dear all,
I need to use R for one estimation, and i have readily available stata command, but i need also the R version of the same command.
the estimation in stata is as following:
1. Compute mean values of relevant variables
. sum inno lnE lnM
Variable | Obs Mean Std. Dev. Min Max
-------------+--------------------------------------------------------
2010 Jun 09
1
equivalent of stata command in R
From: saint-filth@hotmail.com
To: saint-filth@hotmail.com
Subject: RE:
Date: Wed, 9 Jun 2010 09:53:20 +0000
OK! sorry thats my fault,
here the translations of the stata commands
1st step is to get the mean values of the variables, well that doesnt need explanation i guess,
2nd step is to estimate the model on panel data estimation method
which is:
2010 Jun 09
1
equivalent of stata command in R
Thanx for your response,
yeah, i know i didnst specified the indexes
when i wrote the 2nd mail, in fact in the 1st mail i wrote already that
i dont have problem with the estimation of the model... thats the
reason why i didnt write in fact since the issue is not to estimate the
model but to get the marginal effect,
anyway, i figured out that predict(), doesnt work for panel data...
and
well, my
2011 May 05
1
Confidence interval for difference in Harrell's c statistics (or equivalently Somers' D statistics)
Dear All,
I am trying to calculate a 95% confidence interval for the difference in two
c statistics (or equivalently D statistics). In Stata I gather that this
can be done using the lincom command. Is there anything similar in R?
As you can see below I have two datasets (that are actually two independent
subsets of the same data) and the respective c statistics for the variables
in both cases.
2014 Jan 23
2
Stata support in package foreign
As you know, Stata support in 'foreign' was frozen a while back at Stata
version 12. R-core has received a request from a grad student to 'give
top priority' to supporting Stata 13. That is not going to happen, not
least because none of us has access to Stata.
However, according to Stata's documentation both Stata 12 and 13 use
format 115, so foreign::read.dta should be
2009 Dec 16
1
Stata files
I have a client who uses Stata 11.
Can anyone advise me on ways of transferring data from this version of
Stata to R?
Reading the documentation for read.dta in package foreign it seems it
only allows for versions up to Stata 10. I don't know Stata at all but a
bit of poking around on their website led me to believe Stata 11
couldn't write in Stata 10 format. However Stata 11 can
2009 Jun 29
2
Large Stata file Import in R
Hi
I am using Stata 10 and I need to import a data set in stata 10 to R, I have
saved the dataset in lower versions of Stata as well by using saveold
command in Stata.
My RAM is 4gb and the stata file is 600MB, I am getting an error message
which says :
"Error: cannot allocate vector of size 3.4 Mb
In addition: There were 50 or more warnings (use warnings() to see the first
50)"
Thus
2006 Jan 16
2
importing from Stata
Hi,
I have a new job, and everyone here uses Stata. I won't give up on R,
but I must learn better how to exchange data between the two softwares.
I am now focusing on importing data from Stata to R, and I must confess
that I am a bit disappointed with the read.dta function from the foreign
package because IT typically happens that
(i) I get a big R file (for example, a 15Mb Stata file
2003 Oct 06
1
Re: Use of the Foreign package to import Stata files
Long ago (Sat, 2 Nov 2002), Bill Hart <w.hart at sbcglobal.net> wrote:
> An R newbie here. I am using R 1.6 currently and have
> (successfully, I think) installed the Foreign package.
> Tried to import a data file created with Stata 7.0
> SE. Had minor problems with syntax then R decided
> that my file was not really a Stata file. It rejected
> the file saying
2013 Oct 15
1
cluster option in stata for random intercept model in the R language?
Dear R-list,
I am currently working on a dataset with a colleague who uses stata.
We fit a random intercept model to the data (decisions clustered in participants) and get closely the same results in stata (using xtreg re) and R (using the lme4 or multilevel package).
Now in stata, there is an additional option for the regression to control for clustering; the vce(cluster clustvar) option,
2008 Apr 19
3
R question for Stata users
Hi...
In Stata, there is the ability to display scatter plots with data
points at the same (x,y)
location, using the 'jitter' command of the twoway scatter stata
command.
Anyone know of a way that I can do the equivalent thing in R?
For non-Stata readers, if jitter is enabled in stata, and n-points
would be at
the same (x,y) location, the points are offset a bit (according to
2012 Sep 27
2
equivalent of Stata "by construct"
I am evaluating a switch from Stata to R. I don't need to extensive Statistical methods, but the main reason I am exploring the switch is the coding flexibility in R (e.g. Stata does not support linear/quadratic programming). I have been going over the R syntax and I had a quick question:
In Stata, one has a very useful construction called "by", e.g.
by month signal: gen xxx =
2006 Jun 23
2
Tetrachoric correlation in R vs. stata
I hope someone here knows the answer to this since it will save me from
delving deep into documentation.
Based on 22 pairs of vectors, I have noticed that tetrachoric
correlation coefficients in stata are almost uniformly higher than those
in R, sometimes dramatically so (TCC=.61 in stata, .51 in R; .51 in
stata, .39 in R). Stata's estimate is higher than R's in 20 out of 22
2009 May 18
1
discrepancies between stata and r for a cox regression
Hello
I would like to develop the use of R.
Trying R and more particulary the cox model, I am surprised by discrepancies between results with stata and R for a cox model
With the same data base, I get a hazard ratio (4.82) that is not the same obtained with stata (4.52)
You will find attached the file leukemia.dta I used (Stata)
Here are the codes for R
library(foreign)
2004 Nov 11
1
polr probit versus stata oprobit
Dear All,
I have been struggling to understand why for the housing data in MASS
library R and stata give coef. estimates that are really different. I also
tried to come up with many many examples myself (see below, of course I
did not have the set.seed command included) and all of my
`random' examples seem to give verry similar output. For the housing data,
I have changed the data into numeric
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 Sep 01
1
Re gression - cluster option in STATA
Hello
In STATA there is command which has regression with clustering option. Can
anyone tell me what is the command for the same in R
for example in STATA
its regress Height Weight, cluster(id)
Thanks in Advance
Regards
Sunita
--
View this message in context: http://www.nabble.com/Regression---cluster-option-in-STATA-tp25241948p25241948.html
Sent from the R help mailing list archive at
2003 Mar 27
4
Multinomial logistic regression under R and Stata
Dear Colleagues
I have been fitting some multinomial logistic regression models using R
(version 1.6.1 on a linux box) and Stata 7. Although the vast majority
of the parameter estimates and standard errors I get from R are the same
as those from Stata (given rounding errors and so on), there are a few
estimates for the same model which are quite different. I would be most
grateful if
2004 May 10
1
Explaining Survival difference between Stata and R
Dear Everybody:
I'm doing my usual "how does that work in R" thing with some Stata
projects. I find a gross gap between the Stata and R in Cox PH models,
and I hope you can give me some pointers about what goes wrong. I'm
getting signals from R/Survival that the model just can't be estimated,
but Stata spits out numbers just fine.
I wonder if I should specify initial
2002 Nov 02
1
R: Use of the Foreign package to import Stata files
Hi,
An R newbie here. I am using R 1.6 currently and have
(successfully, I think) installed the Foreign package.
Tried to import a data file created with Stata 7.0
SE. Had minor problems with syntax then R decided
that my file was not really a Stata file. It rejected
the file saying 'Not created by Stata 5-7/SE'. Any
suggestions on how to convince R that this is really,
truly a Stata