similar to: Several simple but hard tasks to do with R

Displaying 20 results from an estimated 20000 matches similar to: "Several simple but hard tasks to do with R"

2009 Aug 20
0
[Fwd: Re: Several simple but hard tasks to do with R]
Rakknar ha scritto: > 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 >
2009 Sep 22
2
Creating loops with strings
Hello. I'm trying to run a series of commands in two different datasets. For make it efficient I want to make a loop for it. Until now the only command for loops i found it's the for() command it's only for series of numbers and not a series of strings, witch it's what i'm needing. It would be something like this for(i in dataset1 dataset2) { i <-
2017 Dec 06
3
STATA base de datos
OK. Lee primero los datos, guarda el data.frame (.RData o en un .csv o lo que quieras). Sal de RStudio o incluso reinicia el ordenador para liberar el máximo de memoria. Y comienza una nueva sesión con RStudio cargando los datos con "fread()". Por otro lado, este conjunto de datos ¿cómo es de grande (filas y columnas)?. ¿Y qué máquina tienes?. ¿Cuanta RAM tienes?. Gracias, Carlos.
2017 Dec 06
3
STATA base de datos
Estimados Pienso que falta memoria, aparte de las sugerencias ya aportadas, de pronto se podrían colocar algunos rm(liberar_de_memoria), para no tener ocupado espacio que no es requerido porque ese paso ya fue realizado. Javier Rubén Marcuzzi El 6 de diciembre de 2017, 13:58, Antonio Rodriguez Andres < antoniorodriguezandres70 en gmail.com> escribió: > Carlos > He tecleado lo
2007 Apr 24
1
Importing a CSV file
Hi, I'm trying to load .csv file into R (3790 by 30). I'm having an odd difficulty. After I type: read.csv("niwage.csv", header = TRUE) the data appears on the screen. The last thirty or so observations appear on the screen and they have been read in correctly. However, when I type: dim(data) I see: NULL This seems odd to me--R seems to be recognizing the data but not
2017 Dec 06
3
STATA base de datos
Tengo una base de datos muy grande en formato Stata, (dta), he probado a leerla con el paquete foreign, y el comando read.dta, pero como tiene 28 variables y casi medio millon de individuos, cuando pruebo a hacer graficas o algo, me sale problema de memoria. Entonces, una solucion es intentar pasar de STATA a CSV y luego usar el comando fread, y finalmente cargar los datos como RData. SIn
2017 Dec 06
2
STATA base de datos
Freddy el archivo lo leo en segundos en Stata. puedo probar el paquete heaven. Pero si recuerdo me dio problemas en RStudio El 6/12/2017 13:03, "Freddy Omar López Quintero" <freddy.vate01 en gmail.com> escribió: > El mié, 06-12-2017 a las 12:55 +0100, Antonio Rodriguez Andres escribió: > > me sale problema > de memoria. > > > Pregunta posiblemente tonta:
2017 Dec 06
2
STATA base de datos
Pero entonces, ¿has leído ya el fichero en RStudio? ¿lo has convertido de Stata a csv o algún otro formato que con el que puedas trabajar en RStudio?. ¿O ahora el problema es que has convertido el fichero pero no puedes hacer ningún tipo de análisis porque tu equipo no tiene suficientes recursos?... Gracias, Carlos. El 6 de diciembre de 2017, 13:09, Antonio Rodriguez Andres <
2008 Feb 09
2
Reading data from a dataframe
Thanks for the replies to my prior question. My problem is that R always says object not found when I enter a variable name into a command. I converted a Stata file into an Rdata file by first loading the foreign package by entering require(foreign) Then I asked R to read the Stata file by entering pol572a1<- read.dta("C:\\alex\\Graduate Coursework\\Pol 572\\pol572a1.dta") So
2004 Oct 16
2
moving functions between namespaces
Hi all, I'm a newbie wrt R but that's okay, since I don't do any programming in R. What I do need to do is to administrate the activites of an R programmer, so my questions will be related to adminning R as opposed to statistcal programming. I hope that's okay with y'all. :-) I've been through most of the docs that I could find (the PDFs, StatsRUs, etc.) and I've
2004 Mar 25
1
Error : sink stack is full
Hello, I have implemented a method which uses sink to follow the progression status of an iterative process (Below is part of the code) I have already used such kind of code with no problem. Today, I get a "sink stack is full" error. I wonder if it could be linked with the fact that my .RData has a large size (around 7 Mo) ??? I hope that someone can help me ... Thanks in advance
2008 Feb 09
1
R is not reading(?) my data properly
Thanks for the replies to my prior question. My problem is that R always says object not found when I enter a variable name into a command. I converted a Stata file into an Rdata file by first loading the foreign package by entering require(foreign) Then I asked R to read the Stata file by entering pol572a1<- read.dta("C:\\alex\\Graduate Coursework\\Pol 572\\pol572a1.dta") So
2013 Feb 04
1
Combining data from different saved files with same object names into one data frame
Hi, I am simulating data from a zero-inflated negative binomial model. I have 4 different conditions and I've saved various information about the models in zinbsumbstat-jklm.rdata (as shown below). What I want to do is print information from each of these *.rdata and store them in one large object (a matrix or a data frame). However, within each data the objects all have the same name. So I
2009 May 02
1
value labes Stata vs factors
Dear Sir/Madam, I converted my Stata Rgenmetvl.dta file with read.dta succesfully in R's Rgenmetvl.Rdata. However, factors give problem in certain calculations, e.g.: > mean(Rgenmetvl$sex) [1] NA Warning message: In mean.default(Rgenmetvl$sex) : argument is not numeric or logical: returning NA What can I do? In addition to means, summary(Rgenmetvl$sex) works perfectly. Best regards,
2007 Apr 24
1
Problem opening connections to removable hard drive
Hi, I have my files and R session on a portable hard drive to be able to work across computers since I have some extremely large files. I have just started doing this and generally it works as I expect. But after a while of using my R session, certain types of calls to open connections on the hard drive don't work. But I experience no problems opening/saving files on the portable hard
2006 Jan 04
1
R newbie configuration
I think I did enough reading on my Own about startup ( part of the morning And most of this afternoon ) to not feel uncomfortable asking for confirmation of my understanding of this startup stuff. Obviously, the startup process is more complicated Than below but, for my R newbie purposes, It seems like I can think of the startup process as follows : Suppose my home directory =
2012 Mar 12
2
Replicating Stata's xtreg clustered SEs in R
I'm trying to replicate a time-series cross-sectional analysis (countries over years) with SEs clustered by country. ?The original analysis was done in Stata 10 with: xtreg [DV] [IVs] fe cluster(country). Using plm() in R (cran.r-project.org/web/packages/plm/index.html), I've replicated the coefficients. I sought to estimate country-clustered SEs with vcovHC(), and tried a variety of
2004 Aug 25
1
License for including datasets in packages
Dear All, I would like to publish a function for 'heckit' estimations together with two examples from Greene's and Wooldridge's econometric textbooks. These examples use the dataset of Mroz (1987) that is also available in John Fox' "car" package. However, not all variables that are used in my examples are available in the "car" package. Therefore, I
2010 May 10
1
predict() without generating the model within R
Is there a predict method/syntax which I could use to generate predictions (and other output from predict() methods) if I have the model parameter estimates from a training dataset but not the data used to generate the original model (the models were generated by a collaborator using STATA and for IRB reasons I am not allowed independent access to the original data)? I have the new/testing data
2009 Aug 03
3
session logging
Consider all the text that one sees on the console during an R session. Is there a way, within R, to make all this text--both the "output" and the "messages"--automatically get copied to a single text file, in addition to seeing it on the console? If I remember to save the console to a file at the end of my R session, that does it. But (1) That requires pointing and