Re: [R] Binary Value into Text

2016-06-13 Thread Jeff Newmiller
Please post in plain text format. Only you have the power to format your email the way we will see it... using the default HTML format only leads to odd wraparounds and weird characters that you don't know about when you send but we have to wade through when we recieve it. "Character" data is

Re: [R] summing up a column.

2016-06-13 Thread Jeff Newmiller
You did half of what Petr asked... but your email still looks unreadable because you did not send it as text only. Look at [1] to see what we see, and why we want you to send plain text. What you see is not what we see. This is an outer join... an inherently inefficient operation according to

[R-es] Ayuda con la homocedasticidad de Varianza

2016-06-13 Thread Francisco Ruben Castaneda Rivero
Buenas Tardes. He tenido problemas al obtener la Homogenidad de varianza de una base de datos ya que tengo 5 Variables bioticas (Especies) y 4 Abioticas. El ejemplo es la siguiente: Especie a Especie b Especie c Especie d Especie e Profun Conc Temp Sediment 0 2 9 14 2 72 4.8 3.5 2 26 4 13 11 0

Re: [R] Binary Value into Text

2016-06-13 Thread Jim Lemon
Hi Fahman, That error message usually means that there is no newline at the end of the last line of the input file. Try adding a newline, Jim On Tue, Jun 14, 2016 at 1:17 AM, Fahman Khan via R-help wrote: > I have written a following piece of code. >> binaryFile <-

Re: [R] Dashed/dotted ecdf plots using lots of points

2016-06-13 Thread peter dalgaard
(a) ecdf() could be an overkill for this. At 1 points, plot(sort(x), ppoints(x), type="l") should be quite close enough. Also, plot.ecdf() draws lots of individual horisontal line segments which all start in the same way. If you have enough of them, they reduce to a single pixels which are

[R] Dashed/dotted ecdf plots using lots of points

2016-06-13 Thread A A via R-help
As per the title, I'd like to generate a dashed/dotted CDF plot of my data using ecdf. Unfortunately, it seems like I can't get the plot to look dashed/dotted even after specifying it in the plot function. I suspect this may be because of the high number of data points. Here's a short sample of

Re: [R] Using weights with truncreg

2016-06-13 Thread Achim Zeileis
On Mon, 13 Jun 2016, Ganz, Carl wrote: Hello everyone, I would like to use truncreg on survey data with weights, but so far as I can tell the weight parameter in truncreg is not working. I find that using weights does not actually change the output. Here is a small reproducible example

Re: [R] Visualize Sparse Matrix.

2016-06-13 Thread FRANCISCO XAVIER SUMBA TORAL
Hi, Thanks for your help. I used the SparseM package http://www.econ.uiuc.edu/~roger/research/sparse/SparseM.pdf First of all, I create a class for sparse matrices stored in Compressed Sparse Row (CSR) with as.matrix.csr(matrix).

[R] Using weights with truncreg

2016-06-13 Thread Ganz, Carl
Hello everyone, I would like to use truncreg on survey data with weights, but so far as I can tell the weight parameter in truncreg is not working. I find that using weights does not actually change the output. Here is a small reproducible example using the example in the documentation: ##

[R] Haplo.glm error: Failed to converge during EM-glm loop

2016-06-13 Thread 黄桦
Hi all, I used R package "haplo.stats" to see if the haplotype in my data has any effect on the trait, with the genotype, age, height and weight as the predictor and trait as the response. I used the following code: fit.gaus <- haplo.glm(y ~ age + height + weight + geno.glm,

[R] Binary Value into Text

2016-06-13 Thread Fahman Khan via R-help
I have written a following piece of code.  > binaryFile <- file("sampleBinary.dat", 'rb')>readBin(binaryFile, character(), > endian="little") I'm getting a warning message that says  Warning message: In readBin(binaryFile, chracter(), endian="little") : incomplete string at end of file has

Re: [R] Assign value to plot variable name (make.group functions)

2016-06-13 Thread Bert Gunter
Mark: I do not understand what you mean by plot labels, which generally mean the x and y axis labels that can be given with xlab and ylab parameters in the xyplot call. Clearly, however, this is not what you mean. If you mean the labels in the key for the groups, you should create the grouping

Re: [R] two difficult loop

2016-06-13 Thread greg holly
Hi Jim; I do apologize if bothering. I have run on the real data and here is the error message I got: Thanks, Greg start end Error in regrange[1]:regrange[2] : result would be too long a vector In addition: Warning messages: 1: In min(x) : no non-missing arguments to min; returning Inf 2: In

Re: [R] [R-sig-ME] multcomp package

2016-06-13 Thread RuiRui
Hi, It seems you want to test the fixed effect. So I think the related p-value is appropriate. I'm not sure... - Original Message - From: li li To: r-sig-mixed-models , r-help

[R] Assign value to plot variable name (make.group functions)

2016-06-13 Thread Mark Fingerle
Dear all, In order to create plots comparing two measurements I am using the "xyplot" and "make.groups" functions (see script example below). Now I would like to assign a value to the variable names in the plot. Meaning: In the beginning of my script I assign a name(value) to a variable (for

Re: [R] itsadug:: plot_smooth and plot_diff

2016-06-13 Thread Fotis Fotiadis
Dear Bert, Thank you for your response Best, Fotis On Sun, Jun 12, 2016 at 5:50 PM, Bert Gunter wrote: > To be clear, I know nothing about bam; I just wanted to correct a > statistical error: > > "Since the 95% confidence intervals overlap, I would assume that there is

Re: [R] summing up a column.

2016-06-13 Thread oslo via R-help
Hi Petr; Thanks so much. Here are the questions and the dput(A) and dput(B). Basicaly I have two questions; > dput(A)structure(list(posA = c(1L, 2L, 5L, 4L, 9L), posB = c(9L, 7L, 12L, 7L, > 13L)), .Names = c("posA", "posB"), class = "data.frame", row.names = c(NA,  > -5L))>

Re: [R] Merging two data frame with different lengths

2016-06-13 Thread PIKAL Petr
Hi see in line > -Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Abraham > Mathew > Sent: Friday, June 10, 2016 6:15 PM > To: r-help@r-project.org > Subject: [R] Merging two data frame with different lengths > > So I have two data frames. > > The

Re: [R] summing up a column.

2016-06-13 Thread PIKAL Petr
Ok. Instead of explaining what you have, please send a result of dput(B) and dput(A) And set you mail client to send plain text mail otherwise your code is barely readable. What do you want to do with printed values? What is B? From this it seems that it is data frame but then you try to put

Re: [R] two difficult loop

2016-06-13 Thread Jim Lemon
Hi Greg, Okay, I have a better idea now of what you want. The problem of multiple matches is still there, but here is a start: # this data frame actually contains all the values in ref in the "reg" field map<-read.table(text="reg p rate 10276 0.700 3.867e-18 71608 0.830 4.542e-16 29220 0.430