Displaying 20 results from an estimated 1000 matches similar to: "Data simulation for ANOVA decomposition into sums of squares"
2010 Sep 26
2
Splitting a data frame into several completely separate data frames
Hello again,
How do I split a data frame into smaller, completely separate data frames
(rather than separate data frames comprising a single "list")? Consider the
following data, and my coding attempt:
x <- read.table(textConnection("id type number
indv.1 bagel 6
indv.2 bagel 1
indv.3 donuts 10
indv.4 donuts 9"), header = TRUE)
closeAllConnections()
x.split <-
2010 Jun 19
1
Extracting P-values from the lrm function in the rms library
Hello again R users,
I have a devilishly hard problem, which should be very simple. I hope someone out there will have the answer to this on the tip of their tongue.
Please consider the following toy example:
x <- read.table(textConnection("y x1 x2
indv.1 bagels 4 6
indv.2 donuts 5 1
indv.3 donuts 1 10
indv.4 donuts 10 9
indv.5 bagels 0 2
indv.6 bagels 2 9
indv.7 bagels 8 5
indv.8
2010 Oct 06
2
Pointing to a specific place on the x-axis with an arrow
Hi all,
I am trying to do something simple, but which is deviling me. I want to add an
up-arrow to the x-axis, pointing to a specific location on the axis. I want the
arrow to be as large as possible.
Here is where I'm at with my code:
#this part if from the ?plot example:
require(stats)
plot(cars)
lines(lowess(cars))
#I am trying to use mtext to add the arrow... but I don't know how
2011 Feb 17
4
Find and replace all the elements in a data frame
Hi all,
I'm having a problem once again, trying to do something very simple. Consider
the following data frame:
x <- read.table(textConnection("locus1 locus2 locus3
A T C
A T NA
T C C
A T G"), header = TRUE)
closeAllConnections()
I am trying to make a new data frame, replacing "A" with "A/A", "T" with "T/T",
"G" with
2011 Apr 11
2
Plotting a quadratic line on top of an xy scatterplot
Dear Listserv,
Here is my latest in a series of simple-seeming questions that dog me.
Consider the following data:
x <- read.table(textConnection("temperature probability
0.11 9.4
0 2.3
0.38 8.7
0.43 9.2
0.6 15.6
0.47 8.7
0.09 12.8
0.11 9.4
0.01 7.7
0.83 8
0.65 9.3
0.05 7.4
0.34 10.1
0.02 4.8
0.07 9.1
0.6 15.6
0.01 8.4
0.9 9.6
0.83 8
0.12 8.4
0.01 8
0 5
0.11 9.7
0.41 7.4
0.05 9.4
0.09
2010 Sep 16
3
Help with customizing a histogram figure
Hi all,
Please consider the following code:
require(plotrix)
l <- list(rnorm(50),rnorm(50,sd=2),rnorm(50,mean=3))
multhist(l)
I have two things I need help with:
(1) In the output, there are empty spaces on the x-axis. How would I eliminate
these spaces? I want a nice, smooth, empty-spaceless x-axis.
(2) How could I add tracing lines to each histogram? I am undoubtedly using the
wrong
2010 Jun 18
1
Fitting a polynomial using lrm from the Design library
Hi all,
I am looking to fit a logistic regression using the lrm function from the Design library. I am interested in this function because I would like to obtain "pseudo-R2" values (see http://tolstoy.newcastle.edu.au/R/help/02b/1011.html).
Can anyone help me with the syntax?
If I fit the model using the stats library, the code looks like this:
model <- glm(x$trait ~ x$PC1 +
2010 Jun 16
2
Accessing the elements of summary(prcomp(USArrests))
Hello again,
I was hoping one of you could help me with this problem. Consider the sample data from R:
> summary(prcomp(USArrests))
Importance of components:
PC1 PC2 PC3 PC4
Standard deviation 83.732 14.2124 6.4894 2.48279
Proportion of Variance 0.966 0.0278 0.0058 0.00085
Cumulative Proportion 0.966 0.9933 0.9991 1.00000
How do I access the
2011 Feb 20
3
Partial italic in graph titles when looping
Dear all,
I have a rather complicated problem. I am trying to loop through making graphs,
so that the graph-making process is fully automated. For each graph, I'd like to
make sure the corresponding title is formatted properly. The titles will be a
combination of a gene name and numerical position within the gene. The gene name
should be italic-bold, whereas the gene position should be
2010 Jul 12
3
Continuing on with a loop when there's a failure
Hi R sages,
Here is my latest problem. Consider the following toy example:
x <- read.table(textConnection("y1 y2 y3 x1 x2
indv.1 bagels donuts bagels 4 6
indv.2 donuts donuts donuts 5 1
indv.3 donuts donuts donuts 1 10
indv.4 donuts donuts donuts 10 9
indv.5 bagels donuts bagels 0 2
indv.6 bagels donuts bagels 2 9
indv.7 bagels donuts bagels 8 5
indv.8 bagels donuts bagels 4 1
indv.9
2010 Jun 15
1
Getting the eigenvectors for the dependent variables from principal components analysis
Dear listserv,
I am trying to perform a principal components analysis and create an output table of the eigenvalues for the dependent variables. What I want is to see which variables are driving each principal components axis, so I can make statements like, "PC1 mostly refers to seed size" or something like that.
For instance, if I try the example from ?prcomp
> prcomp(USArrests,
2010 Jun 20
1
"Unable to fit" error message from the lrm function in the rms library
Hi all,
I have another question about the lrm function (from the rms library) that I cannot find the answer to.
I get an error message when I try to fit a model, and I don't know what to make of it. Please forgive me for not having a toy example, but it appears the size and complexity of my data is somehow causing the error. The best I can do is show you what I type and what errors I get.
2011 Apr 16
2
Rotating the x-axis labels of a barplot
Dear listserv,
Here is my latest formatting problem. I would like to rotate the x-axis labels
by 45 degrees on a _barplot_. Apparently this is slightly different from the
example given in the R FAQ, which is for rotating the x-axis labels on a
scatterplot
(http://cran.r-project.org/doc/FAQ/R-FAQ.html#How-can-I-create-rotated-axis-labels_003f).
I have adapted that code, as best I could, and
2010 Jul 19
3
concatenating column names in a loop
Hi all,
I am trying to concatenate words together to create new column names, using a
loop.
Please consider the following toy example:
x <- matrix(nrow = 1, ncol = 3)
colnames(x) <- c("a", "b", "c")
x[1,1] <- "1"
x[1,2] <- "2"
x[1,3] <- "3"
I would like to create a new matrix with column names based on the column names
2006 Jun 29
4
new idea for dragdrop library
Hi,
I''ve been working on new ideas for a JavaScript drag and drop library.
I haven''t found a drag and drop library flexible enough for my needs
and I think I have come up with something that is generally
worthwhile. I use the DOM and Event utilities from Yahoo! UI and no
Prototype.js. I''m interested in any ideas or suggestions people might
have.
Blog
2019 Jun 04
2
is this a bug in PruneEH?
I have the following C source:
extern unsigned int donut;
void f1();
void f2();
void f1()
{
unsigned int *magic = &donut;
if (*magic != 286529877) {
f2();
}
}
void f2() {
/* Loop here forever if application is built with wrong version of ROM image */
while(1) {
;
}
}
The -O2 level PruneEH pass uses SimplifyFunction() which contains this code:
for
2006 Feb 02
2
OpenSSH_4.3p1, OpenSSL 0.9.8a 11 Oct 2005 on solaris 8/9
Howdy,
Not sure, but it appears that OpenSSH_4.3p1 on solaris creates
bad wtmpx entries during login?
mgoebel pts/5 Wed Dec 31 19:00 still logged in
It is creating entries for Dec 31st 1969.
Thanks,
Matt
--
Matthew Goebel : goebel at emunix.emich.edu : Unix Jockey @ EMU : Hail Eris
Neo-Student, Net Lurker, Donut consumer, and procrastinating Furry Fan.
2004 Aug 06
2
my icecast problem
On Wed, 28 Feb 2001, Kelly Lee Myers wrote:
> In addition is there a way to set the size of the outgoing packets or is
> that completely handled by the stack and not icecast itself. Forgive me if
> that sounds stupid, but I didn't really get that deep into icecast
> configuration.
You can... but...
Someone correct me if I'm wrong, but you want to look at the MTU for your
2004 Aug 24
1
(PR#7199) function bug
This is a misunderstanding, I think, not a bug. R is using partial
matching and the `2', since it is not named, is being sent through the
`...'.
-roger
morey@banta.psyc.missouri.edu wrote:
> output of R.version
> platform i686-pc-linux-gnu
> arch i686
> os linux-gnu
> system i686, linux-gnu
> status
> major 1
> minor 9.1
> year 2004
2006 Aug 22
0
Re: Multi-select and drag and drop
Hi Peter,
is your patch against script.aculo.us mentioned in [1] gone any
further in the last 3 months?
--
alberto
[1] http://dev.rubyonrails.org/ticket/2585
On 22/ago/06, at 00:35, Peter Michaux wrote:
>
> On 8/21/06, Bill Lazar <blazar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>>
>> Before pounding my head on this particular rock I want to ask if
>>