Displaying 20 results from an estimated 10000 matches similar to: "histogram help"
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
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
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 =
2012 Aug 06
4
Overlay Histogram
Dear all,
For two sets of random variables, say, x <- rnorm(1000, 10, 10) and y
<- rnorm(1000. 3, 20).
Is there any way to overlay the histograms (and density curves) of x and y
on the plot of y vs. x?
The histogram of x is on the x axis and that of y is on the y axis.
The density curve here is to approximate the shape of the distribution
and does not have to have area 1.
Thank you
2012 Jun 26
3
plotting two histograms on one plot with hist function
I would like to plot two data sets (frequency (y-axis) of mean values for 0-1(x=axis)) on a single histogram for comparison. The hist() only allow the overlay of two histograms, and although barplot() allows beside=TRUE, it does not show frequency values (like hist) but rather all of the values. Is there any way that I can use the hist() to plot two data sets similar to the barplot(). Any help or
2004 Oct 19
3
densityplot and histogram
Is there any function like par(new=T) for lattice. I want to plot a
histogram in percentages on the right hand side and also superimpose the
densityplot with its density scale on the lhs. so far I am only able to do
this
histogram( temp[,2]~ temp[,1],nint=100,type="desnity",
xlab = "Population Size",
panel = function(x, ...) {
2011 Aug 31
2
Getting the values out of histogram (lattice)
Hi,
?
I have a relatively big dataset and I want to construct
some histograms using the histogram function in lattice. One thing I am
interested in is to look at differences between density and percent. I know I can
use the hist function but it seems that this function gives sometimes some
wrong answers and the density is actually a percent since it is calculated as counts in the bin divided by
2014 Sep 17
3
[LLVMdev] Measure execution time of each basic block
Jon,
I need to create a database of basics blocks and their execution time. The
only thing I'm concerned is if a block A is more expensive than a block B.
Do you think that even with the overhead I would be able to get the A > B
information?
Like: overhead + time(A) > overhead + time(B) => A > B.
If so, I'm not too much concerned about the accuracy.
Not sure if I was clear,
2012 Dec 01
4
Getting all possible contingency tables
Hello all,
Let say I have 2-way contingency table:
Tab <- matrix(c(8, 10, 12, 6), nr = 2)
and the Chi-squared test could not reject the independence:
> chisq.test(Tab)
Pearson's Chi-squared test with Yates' continuity correction
data: Tab
X-squared = 1.0125, df = 1, p-value = 0.3143
However I want to get all possible contingency tables under this
independence
2010 Jun 03
3
(no subject)
Dear R users,
I am trying to draw error bars in a bar plot, I use this code (tried many others which did not work):
install.packages()
library(gplots)
y <-c(39.02, 46.42)
se <- c(7.57,7.35)
plot <- barplot(y, beside=TRUE, col=0, ylim=c(0,47), axis.lty=1, main="far-red", xlab="latitude", names.arg=c("56N", "68N"))
superpose.eb(plot, y, se,
2009 Nov 13
3
Questions: FLAC performance, compression ratio and extra documentation
Dear list,
I' m studying FLAC performance, and I'd like to know how much
compression can be achieved for different audio files.
1) It seems that
for nontonal sound (wideband noise), the compression factor is better
than for compound sound (tones + nontonal components),
which is typically 2. The reason for this result could be the following: the
LPC filter is more suitable for
2011 Feb 21
2
linear regression and t-distribution
Hello
I have a data set with outlier and it is not normally distributed. I would instead like to use a more robust distribution like t-distribution.
My question is if the coefficients of the regression are different from zero, but assuming a t-distribution.
Could someone hint me what package to use or....
Thanks in advance
Rosario
2005 Jun 22
1
missing cdr records
I am experiencing a very wired problem.
Some of my cdr are lost.
I use logging cdr to csv, mysql and odbc. But some of them are lost. They miss in csv mysql and odbc, so i'm pretty sure it is related to asterisk functioning.
I am running asterisk 1.0.7; this is simple configuration file:
extensions.conf
[general]
static=yes
writeprotect=no
[macro-gw-voipjet]
exten =>
2008 Jul 08
4
Histogram with colors according to factor
Given a data frame with a continuous variable and a factor. I would like to
generate a histogram of the continuous variable, where each bar is filled
with different colors according to the percentage of factor values falling
into this region of the continuous variable.
I looked into packages like 'lattice' and 'ggplot2'. Searching R-help
revealed that 'histogram' is
2010 Nov 29
1
extracting P values from lm model
Hello
I am trying to get out of an lm model the fstatistics, however after I run the model I write
> names(Model)
and the fstatistic does not appear only these.
names(Model)
[1] "coefficients" "residuals" "effects" "rank" "fitted.values"
[6] "assign" "qr" "df.residual"
2010 Oct 27
2
plot by cathegories within a factor
Hello
I have a data set summarized like this:
File name= Height
Group Ind Age Trait
1 1 1 20
1 1 2 21
1 2 1 22
1 2 2 21
1 3 1 24
1 3 2 45
1 4 1 23
1 4 2 26
2 1 1 45
2 1 2 12
2 2 1 25
2 2 2 26
2 3 1 45
2 3 2 43
2 4 1 23
2 4 2 47
.
.
.
I would like to plot Trait ~ Age but a different plot for each Group.
I tried:
> plot(Height$Trait ~ Height$Age | Group)
But does not work. Any
2004 Sep 16
2
Home Directory Winbind
Greetings,
Trying to find a solution to creating home directories by using winbind. Have this setup:
/etc/pam.d/system-auth:
session required /lib/security/pam_mkhomedir.so skel=/etc/skel/ umask=0077
With smb.conf:
# Global parameters
[global]
workgroup = domain
server string = Monarch Server
security = DOMAIN
map to guest = Bad User
obey pam
2005 Jun 09
8
howto write CDRs on two mysql servers
For redundancy I would like to write the CDRs on tow mysql servers.
cdr_mysql.conf accept only one configuration [global],
how to add a second host?
Thanks
Rosario
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050609/9eacbae2/attachment.htm
2014 Sep 17
3
[LLVMdev] Measure execution time of each basic block
Guys,
Someone have any idea how could I measure the execution time of each LLVM
basic block of a program?
I tried to use some profiling tools like gcov and perf, but as far as I
know they can only give me the frequency that each basic block is executed.
I was thinking about writing a pass to add PAPI instructions in each LLVM
basic block. Do you think is a good idea?
Thanks
Vanderson M.
2011 Apr 04
1
multiple variables Y and X
Hello
I have a model with several hundred Y variables, and also several 1000 X variables. The model is linear lm(Y ~ X). My questions are:
1.- how to avoid writing all Xs variables? is list() the right function?
2.- about the multiple Ys with dependence among some of them, how to incorporate that information in the linear model?
Thank you
Rosario