Displaying 20 results from an estimated 8000 matches similar to: "Summary for mode of a data set"
2003 Jun 23
0
A final global mode function
>From spencer.graves at PDF.COM Mon Jun 23 14:36:45 2003
Received: from postal.pdf.com (pdf193.pdf.com [209.128.81.193])
by uhddx01.dt.uh.edu (8.9.2/8.9.2) with ESMTP id OAA09671
for <hodgess at uhddx01.dt.uh.edu>; Mon, 23 Jun 2003 14:36:44 -0500 (CDT)
Received: from postage.pdf.com (postage.pdf.com [10.10.8.7])
by postal.pdf.com (Switch-3.0.4/Switch-3.0.0) with ESMTP id
2010 Jul 29
2
multiple graphics windows open
Dear R People:
Now I have a function with 3 graphics windows. I'd like for them all
to be visible. However, the first window goes blank. Here is the
basic setup. The first plot is the entire series. The user selects
two points, which in turns generates a subset plot and an EWMA subset
plot. Finally, if things worked right, the user should be able to
click on "Tile Vertically"
2010 Aug 01
1
aggregating a daily zoo object to a weekly zoo object
Dear R People:
I'm trying to convert a daily zoo object to a weekly zoo object:
xdate <- seq(as.Date("2002-01-01"),as.Date("2010-07-10"),by="day")
library(zoo)
length(xdate)
xt <- zoo(rnorm(3113),order=xdate)
xdat2 <- seq(index(xt)[1],index(xt)[3113],by="week")
xt.w <- aggregate(xt,by=xdat2,mean)
Error: length(time(x)) ==
2011 Jul 30
3
ifelse returns
Greetings R Community,
I am working with the ifelse function and it is returning something unexpected. In the code the line with the MODE1 assignment the output is a vector [1] 4 5 6 but when I put the MODE1 object into the ifelse function [R}'s output for MODE1 is the first number from the string (4). Why is this? Given the supplied vector of x I would assume both the MODE1 and ifelse()
2010 Jul 29
1
multiple graphics windows open with sessionInfo
Dear R People:
Hello again. I'm trying to have 3 graphics windows visible
simultaneously. I set up a zoo series.
Then I plot the original series. I use the locator function to select
2 values from the original series, which generates a subset of the
original series.
Next, I plot the subset.
The last step is to produce an EWMA chart from the subset series.
Fair enough. I've tried
2010 Mar 07
3
aggregate for zoo or its?
Dear R People:
The aggregate function works very well on regular time series.
Is there a version for zoo or its that would take daily data and
convert it to monthly, please?
Thanks in advance,
Sincerely,
Erin
--
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: erinm.hodgess at gmail.com
2006 Oct 21
2
problem with mode of marginal distriubtion of rdirichlet{gtools}
Hi all,
I have a problem using rdirichlet{gtools}.
For Dir( a1, a2, ..., a_n), its mode can be found at $( a_i -1)/ (
\sum_{i}a_i - n)$;
The means are $a_i / (\sum_{i} a_i ) $;
I tried to study the above properties using rdirichlet from gtools. The code
are:
##############
library(gtools)
alpha = c(1,3,9) #totoal=13
mean.expect = c(1/13, 3/13, 9/13)
mode.expect = c(0, 2/10, 8/10) #
2011 Jun 21
5
omitting columns from a data frame
Dear R People:
I have a data frame, xm1, which has 12 rows and 4 columns.
If I put is xm1[,-4], I get all rows, and columns 1 - 3, which is as
it should be.
Now, is there a way to use the names of the columns to omit them, please?
Thanks so much in advance!
Sincerely,
Erin
--
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
2013 Oct 31
1
an rpy2, R cgi type question
Hi again.
I'm putting together a little project with R, python, and a website. So I
have an HTML file, a py file, an R file.
Here is the HTML file:
<form action="/cgi-bin/radio4.py" method="post" target="_blank">
<input type="radio" name="subject" value="Integrate" /> Integrate
<input type="radio"
2008 Oct 29
6
substring/strsplit question
Dear R People:
Here is a toy example:
> x <- c("2E","5W","12H")
> substr(x,2,2)
[1] "E" "W" "2"
>
Sometimes x has 3 elements, sometimes 2. I want to extract the last
element, and then extract the other 1 or 2 elements.
How can I do this, please?
TIA,
Sincerely,
Erin
--
Erin Hodgess
Associate Professor
Department of
2012 Aug 13
6
named character question
Dear R People:
Here is a goofy question:
I want to extract the zip code from an address and here is my work so far:
> add1
results.formatted_address
"200 W Rosamond St, Houston, TX 77076, USA"
> add1[1][32:36]
<NA> <NA> <NA> <NA> <NA>
NA NA NA NA NA
> str(add1)
Named chr "200 W Rosamond St, Houston, TX 77076,
2003 Jun 12
3
breaks
Dear R People:
I have a question about a "sorting" problem, please.
I have a vector xx:
> xx
[1] -2.0 1.4 -1.2 -2.2 0.4 1.5 -2.2 0.2 -0.4 -0.9
and a vector of breaks:
> xx.y
[1] -2.2000000 -0.9666667 0.2666667 1.5000000
I want to produce another vector z which contains the number of the class
that each data point is in.
for instance, xx[1] is between xx.y[1] and
2017 Dec 21
3
Building R from source with the PGI compiler
Hello
I would like to build R from source and use the PGI compiler, rather than
the GCC compiler.
I saw the instructions for the Intel compiler in the R Installation Manual,
but I didn't see the PGI. I tried a few times without instructions, but
without success.
Any suggestions would be most welcome. Also, I hope this is the right
group for the question.
Sincerely,
Erin
--
Erin
2010 Jun 21
3
tables
Dear R People:
I have generated the following table:
> table(zza$DEATH,zza$GENDER)
F M
2009-04-21 0 1
2009-04-22 4 2
2009-04-24 6 0
2009-04-25 1 3
2009-04-26 2 0
2009-04-28 3 0
2009-04-29 2 2
However, instead of total counts in the F and M columns, I would like percents.
How would I do this, please?
thanks,
Erin
--
Erin
2011 Mar 07
4
attr question
Dear R People:
When I want to produce a small sample confidence interval using
t.test, I get the following:
> t.test(buzz$var1, conf.level=.98)$conf.int
[1] 2.239337 4.260663
attr(,"conf.level")
[1] 0.98
How do I keep the attr statement from printing, please? I'm sure it's
something really simple.
Thanks,
Sincerely,
Erin
--
Erin Hodgess
Associate Professor
Department
2013 Jan 09
1
R2html and Blackboard LMS : solved
Everything is ok on Firefox, IE, and iPad.
Thanks,
Erin
On Tue, Jan 8, 2013 at 7:58 PM, Erin Hodgess <erinm.hodgess at gmail.com> wrote:
> Dear R People:
>
> Has anyone used R2HTML in web files that were on the Blackboard LMS, please?
>
> I'm starting to do these but wanted to know if there were any
> potential pitfalls.
>
> Thanks,
> Erin
>
>
> --
2012 Mar 15
4
replicating C example from the Extensions Manual problem
Dear R People:
Here is something that I am sure is very simple. I'm just trying to
re-create the C convolution example in the Extensions manual. Here is
the subroutine:
void convolve(double *a, int *na, double *b, int *nb, double *ab)
{
R_len_t i, j, nab = *na + *nb - 1;
for(i = 0; i < nab; i++)
ab[i] = 0.0;
for(i = 0; i < *na; i++)
for(j = 0; j < *nb; j++)
ab[i + j] += a[i] *
2008 Mar 18
3
Tcl/tk question
Dear R Gurus:
What is the name of the person who has all of the Tcl/tk stuff,
please? I know it's James W, but can't remember his last name.
I wanted to look at some of his examples.
Thanks in advance!
Sincerely,
Erin
--
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: erinm.hodgess at gmail.com
2009 May 03
7
running R on netbooks/minis?
Dear R People:
Is it possible to run R on a netbook/mini, please?
Thanks,
Erin
--
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: erinm.hodgess at gmail.com
2011 Jun 17
4
combining strings
Dear R People:
Suppose I have the following two character vectors:
xf
[1] "W" NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA
> xg
[1] NA "k" "h" NA "g" "r" "j" NA "v" "d" NA "v" NA "z" "r" "r" "i"
>
I want to end up with
"W"