Displaying 20 results from an estimated 9000 matches similar to: "Referencing variables in a dataframe."
2006 Apr 02
1
New R user looking from help
Dear R users,
I am trying to become a convert to R (from Stata), and I'm having some
growing pains. Is there anyone would be willing to answer a few basic
questions I have? Of course I am using the relevant help guides...
Thanks,
Brian Quinif
ps. If there is anyone at UGA on this list, I'd love to hear from someone local.
2006 Apr 07
4
saving estimates from a for loop for later use
Thanks to the help of many on this list, I am now an R user and have
been able to write some functioning code to do matching estimation.
I have two for loops (i in 1:3, and j in 0:2). Within the loops, I
had been creating matrices of relevant estimation coefficents in order
to make lots of LaTeX tables.
Well, now I want to be able to combine the results of many different
estimations from within
2006 Apr 05
2
using latex() in R for Unix
I am using R for Unix and want to make some LaTeX tables. I have
already played around in R for Windows and have succeeded in making
tables that I want using the following code:
latex(Estimates, file='out.tex', rowlabel='',digits=3)
However, when I use this code in Unix, I can never find the file
"out.tex". I assumed that R would send the file to whatever directory
I
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
2010 Nov 09
1
Is this a DDoS to reach Asterisk?
Hi Everyone,
I have pfSense running which supplies Asterisk with DHCP. I had some testing
ports opened for a web server which I have totally closed now but when I
chose option 10 (filter log) on pfSense I get all of this type of traffic
(note that it was only 1 single IP and once I blocked that one it was like
opening a can full of bees with all different IPs):
tcpdump: WARNING: pflog0: no
2006 Apr 11
3
problems with rounding in output
Perhaps someone will have a solution to my more general problem, but
here is the specific one:
I used the round() function to round some estimates to 3 decimal
places. I then sent put the rounded estimates in a matrix and used
latex() to make a LaTeX table from them. However, in my table, there
are estimtes which only have 2 decimal places. I assume that the third
decimal place in these numbers
2008 Jan 26
1
Read stata file from internet?
Dear R-helpers,
I would like to have my students read into R an online Stata dataset: 'http://www.stat.ucla.edu/projects/datasets/risk_project.dta'
I was able to read it into R after downloading it and converting it
with StatTransfer (http://www.stattransfer.com/).
Here is what happens when I use read.dta() as I would use read.table():
> require(foreign)
> risk2 <-
2006 Feb 14
2
How to handle large dataframes?
Dear all
I imported a Stata .dta file with the read.dta-function from the
foreign-package. The dataframe's dimensions are
> dim(d.apc)
[1] 15806 1300
Importing needs up to 15 min and calculations with these data are rather
slow (although I subset the data before starting analyses).
My questions are:
1. Has someone experiences importing Stata files (alternatives to
read.dta) ?
2.
2006 Apr 14
2
another very simple loop question
I have a dataset with 4 years of students, and normally I want to
estimate things using each individual year, so I have a for loop as
follows
for (i in 1:4){}
However, the only way I know how to calculate estimates using all four
years of data is to put the estimations outside of the loop. Is there
anyway to make a for loop that uses all four years at once, then uses
each individual year?
2018 Mar 22
1
exporting data to stata
On Thu, Mar 22, 2018 at 4:52 AM, Raja, Dr. Edwin Amalraj
<amalraj.raja at abdn.ac.uk> wrote:
> Hi ,
>
> library(foreign)
> write.dta(data1, "data1.dta")
>
> should work.
I don't think so:
> library(foreign)
> example(svydesign)
> write.dta(dstrat, "~/Downloads/foo.dta")
Error in write.dta(dstrat, "~/Downloads/foo.dta") :
The
2020 Jun 25
2
How to implement load/store for vector predicate register
Hi, there
I am writing an backend, and I met a problem.
We don't have load/store instructions for vector predicate registers(vpr for short).
The hardware has 64 vector registers(vr for short) and 8 vector predicate registers. And there is no move instructions between vr and vpr.
vr supports many operations, and vpr supports vpror, vprxor, vprand and vprinv operations.
A vr has 512 bits, and
2018 Mar 22
0
exporting data to stata
Hi ,
library(foreign)
write.dta(data1, "data1.dta")
should work. The file will be saved in the working directory.
Use
getwd()
to know the working directory.
Best wishes
Amalraj Raja
-----Original Message-----
From: R-help [mailto:r-help-bounces at r-project.org] On Behalf Of rosario scandurra
Sent: 22 March 2018 07:47
To: r-help at r-project.org
Subject: [R] exporting data to stata
2006 May 01
2
problem installing Econometrics view
When I try to install hte Econometrics view I get the following error:
CRAN task view Econometrics not available in: install.views("Econometrics")
I have already install the ctv package and loaded it before trying to
install the above...
Any ideas as to what's going on?
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
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
2018 Mar 22
3
exporting data to stata
Hi,
I am new to R and I want to export data into Stata. Could somebody help with that? Thanks a lot.
This is the code I am using:
> setwd("D:/datasets/Seg-bcn/ESBD")
> data1 <- readRDS("r17045_ESDB_Habitatges_BDD_V_1_0.rds")
> library(foreign)
> write.dta(data="data1", file = "D:/datasets/data1.dta")
Error in write.dta(data =
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
2001 Jul 12
1
Importing STATA files
I'm an R novice who is struggling with the importation STATA files into R.
I've loaded "foreign" and tried the example based on the Swiss file, which
works fine. I then placed a STATA file, auto6.dta, in my working directory,
which is "C:\Program Files\R\rw1030\library\base\data".
The following is what happened:
> library(foreign)
> read.dta(auto6)
Error in
2020 Jun 26
2
How to implement load/store for vector predicate register
Hi,
I am planning to expanding the pseudo instructions in XXXTargetLowering::EmitInstrWithCustomInserter(), and use temporary virtual registers as operands.
If I use virtual registers, do I need to mark them as "early clobber"?
I saw that sometimes they marked virtual register as "early clobber" in EmitInstrWithCustomInserter() in MIPS backend.
What is the effect of marking a
2013 Feb 25
1
Issue attaching a dataset
I use to work whit stata dataframe, so, when I use R I type read.dta
Until today I do that without any problem, after type:
mydata<-read.dta("C:/dropbox/dataframe.dta")
attach(mydata)
Everything works great... but today, when I typed:
mydata<-read.dta("C:/dropbox/dataframe.dta")
attach(mydata)
Appeared:
Error in substr(these, 1L, 6L) : invalid multibyte string at