Displaying 20 results from an estimated 3000 matches similar to: "How to extract the conf.level out of t.test() data"
2009 Dec 20
3
How to rotate an axis?
Hi everybody,
I'm trying to build a trilineare coordinate system with R. For that, I 
need to rotate an axis. Does anybody know, if it is possible to rotate 
an axis, created with the command axis(), about for instance 60 degrees?
I'm looking foward  to any ideas and hints and want to wish everybody a 
merry merry christmas.
Thanks in advance.
Etienne Stockhausen
2010 Jun 28
2
Using if statement on function
Hello everybody,
I'm trying to use a if-statment on a function. For a better 
understanding I want to present a small example:
    FUN=mean                             # could also be median,sd or 
any other function
    if (FUN == mean)
       plot(...)
    if (FUN == median)
       plot(...) 
    ...
This doesn't work, because FUN is a function. I've already tried to 
coerce the
2010 Jan 18
2
permutations from vectors out of a matrix
Dear R-Users,
I'm relativley new to R and have the following problem. I need all 
permutations of the vectors created by the collumns of a matrix. I will 
give a small example:
   
    p=3
    
n=2^p-1                                                                         
#number of obtainable vectors
    mat=matrix(0,p,p)
    for(i in 1:p)
     {
       mat[i:1,i]=1/i
     }
mat is now a
2010 Jan 12
2
Making routine faster by using apply instead of for-loop
Hey everybody,
I have a small problem with a routine, which prepares some data for
plotting.
I've made a small example:
    c=10
    mat=data.frame(matrix(1:(c*c),c,c))
    row.names(mat)=seq(c,1,length=c)
    names(mat)=c(seq(2,c,length=c/2),seq(c,2,length=c/2))
    v=as.numeric(row.names(mat))
    w=as.numeric(names(mat))
    for(i in 1:c)
    { for(j in 1:c)
    {
   
2011 May 24
2
Problem with visualization of power of t test
Dear R-User,
I'm trying to visualize the results of the power calculation with the function power.t.test(). Therefore I want to plot the related t-distributions and shade the surfaces indicatingt the type I error, the type II error and the power. For sample sizes greater 30 I got results which are very satisfying. For small sample sizes I got stuck and did'nt find a mistake.
To show you
2010 Jan 08
1
Using outer with function predict
Hey everybody,
I have a problem with the combination of the commands outer() and predict(). I want to visualize the solutions of a regression modell in a matrix. Therefore I want to use the command predict for a linear modell as the function inside the command outer. I've made a small example:
          x = 1:10
          y = 11:20
          z = rnorm(10)
          lm.1 = lm(z ~ x*y)
       
2010 Nov 08
2
Visualization of histograms
Ein eingebundener Text mit undefiniertem Zeichensatz wurde abgetrennt.
Name: nicht verf?gbar
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20101108/60bbf91d/attachment.pl>
2004 Mar 31
1
R-1.9.0 Beta print.power.htest problem?
Hi all,
I just used power.t.test() in Version 1.9.0 beta (2004-03-31) today
under FC1.
The following is the output:
> power.t.test(delta = .5, power = .95, type = "paired")
$n
[1] 53.94062
$delta
[1] 0.5
$sd
[1] 1
$sig.level
[1] 0.05
$power
[1] 0.95
$alternative
[1] "two.sided"
$note
[1] "n is number of *pairs*, sd is std.dev. of *differences* within
2011 Mar 29
1
Pictures/ Graphics in rd-files
Ein eingebundener Text mit undefiniertem Zeichensatz wurde abgetrennt.
Name: nicht verf?gbar
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20110329/ec6a4e5d/attachment.pl>
2010 Aug 05
1
Sciviews-K -- object 'httpdPort' not found
Hi,
I'm trying to install Sciviews-K on Linux Ubuntu 9.10 (karmic) but I'm not able to establish the connection between Komodo and R. Here;s the error I get, plus some diagnostic info:
R version 2.9.2 (2009-08-24)
R is SciViews ready!
Error in get(name, envir = asNamespace(pkg), inherits = FALSE) : 
  object 'httpdPort' not found
> ls()
[1] "svStart"
> Sys.info()
2010 Aug 10
1
Identifying integers (as opposed to real #s) in matrix
Is there a way to identify (for subsequent replacement) which rows in a
matrix are comprised entirely of *integers*?  I have a large set of
*nx3 *matrices
where each row either consists of a set of 3 integers or a set of 3 real
numbers.  A given matrix might looks something like this:
           [ ,1]               [ ,2]               [ ,3]
[1, ]     121.0000        -98.0000       276.0000
[2,
2012 Feb 07
2
units for mapproject() function result
Does anyone know  what the units are for projected coordinates obtained
using mapproj's mapproject function with an Albers projection?  Thanks for
any and all help!
Buck Stockhausen
***************************************************
* Dr. William T. Stockhausen                      *
***************************************************
* Resource Ecology and Fisheries Management       *
*
2003 May 20
2
what.is(object)
hi:  still experimenting.  is there a function that tells me what an S 
object is, or how it is constructed?
s <- cor.test ( x, y );
s$estimate$name = 'correlation' ;   <-  try to rename 'cor' to 
'correlation' fails.  obviously, name is not a part here.
s$newfield = c("another info field", 3.2 ) ;  <- this is not congruous
so
what.is(s)       #tells
2005 May 23
3
Dickey-Fuller Test
Hi All ,
Could you please tell using which library ,Dickey-Fuller Test can be run?
Thanks a lot
__________________________________________________
	[[alternative HTML version deleted]]
2005 Mar 13
1
Use of htest class for different tests
Hello!
First of all I must appologize if this has been raised previously, but
search provided by Robert King at the University of Newcastle seems to
be down these days. Additionally let me know if such a question should
be sent to R-help.
I did a contribution to function hwe.hardy in package 'gap' during the
weekend. That functions performs Hardy-Weinberg equilibrium test using
MCMC. The
2006 Mar 24
4
How to capture t-score and p-values from t.test
When I do t.test on two distributions (see example below), it outputs
numerous data about the t.test.
What I'd like to do is individually capture some of this data and assign
it to other variables.
However, I am unable to find anything in the help section.
 
In the example below, the t value is -4.0441 and the p-value is 0.006771
How can I assign these values to two variables, let's
2004 May 20
2
Get Slot from a Class
Hello, everyone,
 
I don't quite understand the following message:
 
> TTT <- t.test(1:10, y=c(7:20))
> class(TTT)
[1] "htest"
> TTT@p.value
Error: Trying to get slot "p.value" from an object whose class ("htest") is not defined 
> TTT$p.value
[1] 1.855282e-05
Why the message says the class of TTT is not defined while class(TTT) gets
2011 Jun 20
1
requesting a mentor for R development
I'd like to learn the process of revising R functions & packages and
then submitting proposed patches to the R Core team.  Would someone be
willing to mentor me through one example?
For starters, consider an example.  I'd like to revise the t.test
function to return the stderr value to the user.  We only need to
change the "rval" in the third-from-the end line of
1997 Aug 21
2
R-alpha: new class for chisquare tests?
I sort of asked this before, but perhaps not explicitly enough.
In my ctest collection, there are several chisquare-based tests.  For
some of them, it may be useful to also return information on expected
(and observed) counts.  The question is, how should this be done.  Of
course, there is no problem adding the corresponding components to the
list returned by the functions.  However, as these are
2009 Jun 02
1
getting elements out of list automatically
o <- (structure(list(sand.silt = structure(list(statistic =
structure(185, .Names = "W"),
    parameter = NULL, p.value = 0.0478835773838087, null.value =
structure(0, .Names = "location shift"),
    alternative = "two.sided", method = "Wilcoxon rank sum test with
continuity correction",
    data.name = ".column by site"), .Names =