Re: [R] Problem with visualization of power of t test

2011-05-24 Thread Etienne Stockhausen
Dear Richard M. Heiberger, I've some problems understanding your function. Where is the power visualized? May you give me an example including the following parameter given by  power.t.test(n = 2, sd = 1, power = 0.5,  sig.level = 0.05, type = "one.sample", alternative = "one.sided")   Thanks i

[R] Problem with visualization of power of t test

2011-05-24 Thread Etienne Stockhausen
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

[R] Pictures/ Graphics in rd-files

2011-03-29 Thread Etienne Stockhausen
Hey R-user, I’ve searched the archives about the following questions and didn’t find anything useful. The last entries are more than 2 years old. Is there now any possibility to insert a picture or a graphic in a rd-help-file? I’m looking forward for any suggestions or hints. Much thanks

[R] LATEX-like formula and pictures in Rd-Helpfiles

2011-03-11 Thread Etienne Stockhausen
__ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

[R] Visualization of histograms

2010-11-08 Thread Etienne Stockhausen
Dear r-user, I've wrote a small function to visualize the creation of a histogram. Therefore I create a vector with random values and let them plot in histograms. I better give a small example in R-Code: i=0 funVec=rnorm(1000) temp=hist(funVec,plot=FALSE) plot(1,xlim=c(max(temp$breaks),m

[R] Visualization of histograms

2010-11-08 Thread Etienne Stockhausen
Dear r-user, I've wrote a small function to visualize the creation of a histogram. Therefore I create a vector with random values and let them plot in histograms. I better give a small example in R-Code: i=0 funVec=rnorm(1000) temp=hist(funVec,plot=FALSE) plot(1,xlim=c(max(temp$breaks),m

[R] How to extract the conf.level out of t.test() data

2010-08-10 Thread Etienne Stockhausen
Good afternoon everybody, I'm writing a little function to visualise hypothesis testing. Therefore I need to extract the confidence level of a t-test. Here a little example: x <- str(t.test(1:10) gives List of 9 $ statistic : Named num 5.74 ..- attr(*, "names")= chr "t" $

[R] Using if statement on function

2010-06-28 Thread Etienne Stockhausen
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(...)

Re: [R] permutations from vectors out of a matrix

2010-01-20 Thread Etienne Stockhausen
rom combinat to define the function within your file. I guess it works (but didn't check) as it does not seem to require any of the other functions of the package. HTH, Michael -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of

[R] permutations from vectors out of a matrix

2010-01-18 Thread Etienne Stockhausen
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 vect

[R] Making routine faster by using apply instead of for-loop

2010-01-12 Thread Etienne Stockhausen
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

[R] Using outer with function predict

2010-01-08 Thread Etienne Stockhausen
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:

[R] How to rotate an axis?

2009-12-20 Thread Etienne Stockhausen
nt to wish everybody a merry merry christmas. Thanks in advance. Etienne Stockhausen __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide