Displaying 20 results from an estimated 10000 matches similar to: "two questions for R beginner"
2010 Feb 17
2
non-linear contrained optimization
All,
I have searched the previous help boards and discovered the problem
with Rdonlp2 - Specifically, its non-availability. I thought that this
was my solution, but perhaps there is a better way that you all could
help me with. I imagine that this problem is trivial to people such
as the experts on this mailing list.
I am trying to solve this problem over and over again in a simulation:
2009 Aug 19
4
Several simple but hard tasks to do with R
Hello everybody. I've been learning R for about a month to do a
econometric study and now i'm stuck with some problems to make R do the
things I want. Here I give the list of things I wanna do from the most
simple to the more complex (for me of course):
1. Make a log. I've been using Stata and there i have a great tool to
register what the program do: the log file, wich it's a
2006 Jan 01
20
A comment about R:
Readers of this list might be interested in the following commenta about R.
In a recent report, by Michael N. Mitchell
http://www.ats.ucla.edu/stat/technicalreports/
says about R:
"Perhaps the most notable exception to this discussion is R, a language for
statistical computing and graphics.
R is free to download under the terms of the GNU General Public License (see
http://www.r-project.
2007 Aug 15
2
Loading JMP Files
Hi,
I know how to use SPSS and JMP, and have quite a few
JMP files I would like to use in R. I converted them
to .xpt files, downloaded the 'foreign' library then
tried this command:
>read.xport("D:\\Databases\nameoffile.xpt")
to which I get:
>Error in lookup.xport(file) : unable to open file
I have read FAQ lists and Google searched and cannot
figure out what I'm
2012 Nov 13
5
Getting information encoded in a SAS, SPSS or Stata command file into R.
Dear folks ?
I have a large (26 gig) ASCII flat file in fixed-width format with about 10
million observations of roughly 400 variables. (It is 51 years of Current
Population Survey micro data from IPUMS, roughly half the fields for each
record). The file was produced by automatic process in response to a data
request of mine.
The file is not accompanied by a human-readable file giving the
2007 Jan 30
2
R and S-Plus got the different results of principal component analysis from SAS, why?
Dear Rusers,
I have met a difficult problem on explaining the differences of principal
component analysis(PCA) between R,S-PLUS and SAS/STATA/SPSS, which wasn't
met before.
Althought they have got the same eigenvalues, their coeffiecients were
different.
First, I list my results from R,S-PLUS and SAS/STATA/SPSS, and then show
the original dataset, hoping sb. to try and explain it.
2010 Jun 20
6
Popularity of R, SAS, SPSS, Stata...
Hi All,
I've been fiddling around with various ways to estimate the popularity
of R, SAS, SPSS, Stata, JMP, Minitab, Statistica, Systat, BMDP, S-PLUS,
R-PLUS and Revolution R. It's not an easy task. You can see what I've
come up with so far at http://r4stats.com/popularity . I'm sure people
will have plenty of ideas on how to improve this, so please let me know
what you think.
2003 Dec 16
6
Resampling Stats software
Hi,
I am new to R (I have most of my experience in SAS and SPSS). I was
wondering if anyone has used both Resampling Stats and R, and could comment
on strengths/relationships. Also, I have no clue on how to do the various
examples from the book "Resampling: The New Statistics" in R. Can anyone
give me some possible starting points? Or websites/books?
Thanks,
Brandon
2004 Aug 19
6
Is R good for not-professional-statistician, un-mathematical clinical researchers?
Alternate title: How can I persuade my students that R is for them?
Alternate title: Can R replace SAS, SPSS or Stata for clinicians?
I am teaching introductory statistics to twelve physicians and two veterinarians
who have enrolled in a Mentored Clinical Research Training Program. My course is the
first in a sequence of three. We (the instructors of this sequence) chose to teach
R rather than
2011 Aug 26
3
elegant way to check if 2 values are in 3 columns?
Dear all,
I'm trying to rerun some data linkage exercises in R (they are designed
to be done in SPSS, SAS or STATA)
The exercise in question is to relabel the column "treat" to "1", if
"yearsep" is smaller than 1988 and columns "proc1"-"proc3" contain the
values 56.36 or 59.81.
My pathetic solution to do this in R currently looks like
2009 Dec 28
2
WHO Anthro growth curve macros and R
Hi all,
I've got a project where I have to calculate weight-for-age Z-scores,
preferably using the WHO standards.
WHO have been very nice to publish macros for doing this in both
STATA,SPSS, SAS and Splus formats
(see http://www.who.int/childgrowth/software/en/), but for some reason
have chosen not to use the free R alternative to Splus.
In the Splus zipfile there are nine datafiles with a
2017 Jun 27
2
Problema en lectura de datos. Memoria insuficiente
Gracias Eric
Actualmente no tengo SPSS instalado en mi computador ni tengo licencia. El
survey solo tiene los datos en formato SPSS o en formato de STATA (.dta).
Creo que estos últimos se pueden leer con read.dta, de la library(foreign).
Pero entiendo que darán el mismo problema
2017-06-26 17:08 GMT-05:00 eric <ericconchamunoz en gmail.com>:
> Hola antonio, cuando tengo que leer datos
2023 Mar 30
1
Problems with foreign
Good day
My name is Jos? Oscar, I'm from Mexico and I have some questions about
foreign in your write.foreig( ) function. We know that this function
generates the inputs to be able to run them or execute them in another
program like SPSS, SAS or Stata. In these cases, when creating an example
file, a matrix and using the function to execute the .sps file directly
from SPSS, I don't care or
2018 Feb 12
3
RStudio, Spss, SAS, Stata, txt
Estimados
Hoy instale RStudio, y por sorpresa o desconocimiento de mi parte, veo que
hay la posibilidad de importar datos excel, spss, sas, stata, texto,
recuerdo consultas en la lista al respecto, posiblemente mucho se
soluciones con las herramientas propuestas por RStudio.
Javier Rubén Marcuzzi
[[alternative HTML version deleted]]
2020 Oct 27
1
Exporting SPSS Dataset to STATA format
*Dear Sir/Madam,*
* Subject : Exporting SPSS Dataset to STATA format*
I have a SPSS file which i am able to import into R via Rcmdr or Rstudio.
But i am unable to export the same file into STATA format.
It would be kind of you to kindly help me achieve the same and send me a
sample R script whcih could be used for the same purpose.
*Thanks and Regards*
*Nelgyn Tennyson *
2010 Oct 03
2
R data opening problem
Dear Sir/Madam,
I have just installed R for Windows. I am trying to open a stata file and I have
a problem. I have used the following commands:
> install.packages("foreign")
> library(foreign)
> data.name <- read.dta(file.choose())
# then I choose a kelleya.dta file and click on open and then I use the
following command:
> summary(kelleya)
Error in object[[i]]
2013 Sep 21
1
Translating recoding syntax from SPSS to R
Colleagues,
I am in the process of learning R. I've been able to import my dataset (from Stata) and do some simple coding. I have now come to coding situation that requires some assistance. This is some code in SPSS that I would like to be able to execute in R:
if (race eq 1 and usborn=0) confused=1 .
if (race eq 2 and usborn=0) confused=1 .
if (race eq 1 and usborn=1) confused=0 .
if (race
2009 Oct 28
3
variable labels to accompany data.frame
Often it is useful to keep a "codebook" to document the contents of a dataset. (By "dataset" I mean
a rectangular structure such as a dataframe.)
The codebook has as many rows as the dataset has columns (variables, fields). The columns (fields)
of the codebook may include:
? variable name
? type (character, factor, integer, etc)
? variable label
2005 Dec 15
1
bug?
> library(foreign)
> da<-read.dta(file.choose())
> da
startdat starttim enddate endtime days hoursmin secused
1 2005-01-11 2 2005-12-15 20.19 NA NA 9
> attributes(da)
$datalabel
[1] "Example of use of date and time functions"
$time.stamp
[1] "15 伿伄伓侢佋伮 2005 20"
$names
[1] "startdat" "starttim"
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)