Re: [R] Nested for loop

2017-08-07 Thread Kirsten Morehouse
torize it? If so, this would be a far more efficient and faster approach. > > ~Caitlin > > On Saturday, August 5, 2017, Kirsten Morehouse > wrote: > >> Hi! Thanks for taking the time to read this. >> >> The code below creates a graph that takes 100 samples that are bet

Re: [R] Nested for loop

2017-08-06 Thread Kirsten Morehouse
00 in range of 5 to 15 > > > > Set C: 300 samples, draw 100 in range of 5 to 15 > > > > Ben > > > > > On Aug 5, 2017, at 9:21 AM, Kirsten Morehouse > wrote: > > > > > > Hi! Thanks for taking the time to read this. > > > >

[R] Nested for loop

2017-08-05 Thread Kirsten Morehouse
Hi! Thanks for taking the time to read this. The code below creates a graph that takes 100 samples that are between 5% and 15% of the population (400). What I'd like to do, however, is add two other sections to the graph. It would look something like this: from 1-100 samples take 100 samples tha

[R] Ifelse statements and combining columns

2017-07-24 Thread Kirsten Morehouse
Hi everyone, I'm having some trouble with my ifelse statements. I'm trying to put 12 conditions within 3 groups. Here is the code I have so far: dat$cond <- ifelse(test = dat$cond == "cond1" | dat$cond == "cond2" | dat$cond == "cond3" dat$cond == "cond4" yes = "Uniform"

Re: [R] How to make a figure plotting p-values by range of different adjustment values?

2017-07-13 Thread Kirsten Morehouse
lt;-npadj+1 > } > plot(padjs,xaxt="n",main="P plot",xlab="Method",ylab="adjusted p values") > abline(h=0.05,col="lightgray") > library(plotrix) > staxlab(1,at=1:8,labels=p.adjust.methods) > > Jim > > > On Thu, Jul 13, 2017 at 1

[R] How to make a figure plotting p-values by range of different adjustment values?

2017-07-12 Thread Kirsten Morehouse
Hi all, Thank you for taking the time to read my message. I'm trying to make a figure that plots p-values by a range of different adjustment values. (Using the **logit** function in package **car**) My Statistical analyses were conducted on probability estimates ranging from 0% to 100%. As it's