similar to: write.dta and handling labels

Displaying 20 results from an estimated 4000 matches similar to: "write.dta and handling labels"

2004 Mar 05
4
Probit predictions outside (0,1) interval
Hi! I was trying to implement a probit model on a dichotomous outcome variable and found that the predictions were outside the (0,1) interval that one should get. I later tried it with some simulated data with a similar result. Here is a toy program I wrote and I cant figure why I should be getting such odd predictions. x1<-rnorm(1000) x2<-rnorm(1000) x3<-rnorm(1000)
2013 Jan 16
1
Read.dta and Write.dta Binary Data Error
Thanks in advance. I pass data sets between R and Stata and think dta files would be the best files for this. To do this I can use package foreign or package memisc. I mostly use foreign, although have used memisc and this problem mostly didn't happen, but created errors at other times. I have a csv data set (and created a test case) with with at least one column completely missing. This
2007 Jun 15
1
importing .dta files
I'm trying to read in a Stata file but I've never used this function ( read.dta). It's the only one that seems to come close to working, but I keep getting this error: > data<-read.dta("C:/Documents and Settings/Chris/Desktop/S4412/catestscores.dta") Error in read.dta("C:/Documents and Settings/Chris/Desktop/S4412/catestscores.dta", : a binary read
2006 Jan 19
6
Dynamic Programming in R
Hi R users, I am looking to numerically solve a dynamic program in the R environment. I was wondering if there were people out there who had expereinced success at using R for such applications. I'd rather continue in R than learn Mathlab. A concern that has been cited that may discourage R use for solving dynamic programs is its memory handling abilities. A senior researcher had a lot of
2008 Mar 18
2
read.dta for files from stata 9.0
Dear R-helpers, if I want to read a .dta-file generated by stata 9.0 with read.dta (foreign), I get the message "not a stata version 5-8 .dta-file". I'm using R-2.6.2 and the latest version of the foreign package. Has someone any hint? With many thanks, Albrecht
2005 Jun 06
3
write.dta limits
Hope everyone id doing great .. Just need some clarification over the limit of write.dta. I have some coauthors that use stata and I need to send them my data in .dta format. the data.frame is 41706x229 and I get the following Error in write.dta(Panel, file = "STATADATA/Panel.dta", version = 7) : a binary write error occured Once I subset the data everything works out fine. my
2012 Mar 05
1
problems reading a large dta dataset in R
Dear R listers, I have a silly problem. I am trying to load a dta (Stata) file in R. The dta is about 650 MB and contains the integrated World Values Survey/ European Value Study data-set. My problem is that I don't manage to load the file. After almost 3 hours after I issued the following command: data <-
2011 Mar 01
2
How to Save R library data into xls or dta format
Thanks in advance. I'm having a trouble with data saving. I want to run the same data which is in Ecdat library at different statistic programs(excel, stata and matlab) The data I want to use is library(Ecdat) data(Housing) and I want to extract this data our of R as *.dta *.xls formats. So, my first try was to open the data in R window and drag and paste to excel or notepad. BUT, it
2011 Aug 06
3
.dta from e-mail
I got a .dta extension file by e-mail, but I can't save it in my computer and open it in R. How can I do it? [[alternative HTML version deleted]]
2011 Jan 14
1
Write.dta and export of variable labels
When I import a data file in stata format using read.dta, the full variable labels (e.g. variable= "inc2000"; variable label= "Total household income in year 2000"). When I then export the same data file using write.dta, the variable labels are not included in the new .dta file. Is there any way to ensure that the variable labels are maintained? Thanks [[alternative HTML
2008 Jan 10
1
write.dta (foreign package)
Hi, I'd like to request that the 'write.dta' command also save the "var.labels" attributes of the data frame. 'read.dta' can read them, but 'write.dta' doesn't write them back. Thanks.... Edward McNeil -- Epidemiology Unit Faculty of Medicine Prince of Songkla University Hat Yai THAILAND (\_ _/) (='.'=) ('')_('') -- This
2006 Aug 23
1
covariance matrix of predictions
Hi ! I am trying to get at the covariance of the predictions of a linear model. Suppose the we have: > x<-runif(1000) > y<-2 + 25x*x +rnorm(1000) > lm1 <-lm(y~x, data = data.frame(y = y, x=x)) > x.pred <-runif(10) > y.hat <- predict(lm1, newdata = data.frame(x=x.pred)) I was wondering how to get an estimate of the covariance of y.hat which would be a 10 x 10
2005 Oct 14
1
Sweave +RWinEdt
Hi! I was just reading Uwe Ligges write up on extending R-WinEdt for Sweave from 2003; I was wondering if there were updates on it? Are people seriously thiking about it? I really use WinEdt a lot, and for not just R, and hence this kind of extension would be really cool for a whole range people. Just thought I put in a word for it in case this project is dormat, or people are thinking about
2008 May 26
1
read.dta error
Greetings! I attempted to read a STATA 10 file using the following syntax: library(foreign) data <- read.dta("~/Documents/agestandard/analysis.dta") I got the following error: *** stack smashing detected ***: /usr/lib/R/bin/exec/R terminated ======= Backtrace: ========= /lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x48)[0xb7c13138]
2005 Feb 10
2
Problem with "R CMD Rd2dvi": Rd.sty not found
Hi, I run into a problem with "R CMD Rd2dvi" command: it gives me "File `Rd.sty' not found" error (See the output message on the bottom). I get the same error when running "RCMD check". My system is: Windows 2000, R version 2.0.1, MiKTeX version 2.4. I do have a Rd.sty file in R_HOME/share/texm directory. I looked through newsgroups for any related discussions
2004 Jan 29
1
Confirmatory Factor Analysis in R? SEM?
Hi Has anyone used R to conduct confirmatory factor analysis? This email pertains to use of SEM. For context consider an example: the basic idea is that there are a bunch of observables variables (say study habbits, amount of time reading in the bus, doing homework, helping other do homework, doing follow-up on errors etc.) and one believes that all these variables maybe measured by two or
2003 Oct 09
1
RWinEdt patch
Hi: I just tried to install the patch for RWinEdt - there is an automated package ('SWinRegistry' ) which with the rwinedt patch on the CRAN site have to be loaded as packages from R using the local zip drive option. That works fine. The next step is to call the library(RwinEdt) and this does'nt work out ... the meesages i get are: >
2006 May 11
1
factors
Hi R-users, I had a minor issue while demonstating R that I can't explain. I am hoping someone will have suggestions. The only difference is a call to fix() in between that I made to ensure people were following me. However, that seems to have altered the way R code got executed. I was wondeirng if people have any insights. Arnab # When it does work x <-letters[1:10] marks
2009 May 26
3
Still can't find missing data
I'm trying to prepare some cross tabs, looking at a number of variables against a variable "connector" which has 2 values: "OD Passenger" and " Connector". When I produce a xtabs one way I have observations under "Connector" but against a different variable "Connector" shows all 0 values. What is wrong? I've looked into the na commands
2009 May 03
1
dates from Stata's .dta to R's .Rdata: become character
Dear Sir/Madam, I converted the .dta into .Rdata with the foreign library read.dta. However, when I use fix() I get the message that the dates are discarded. Before fix(), class(dateX) gives 'dates' as class; after fix() class(dateX) gives 'character' Why is that? Best regards, Rob Bakker [[alternative HTML version deleted]]