all right this lecture is going to work off of the homework paper that I send out the homework paper you'll recall looks something like this let me see if I can do this over okay we need to design a filled experiment with eight treatments across six replicates we're wide enough that we can go four plots wide and we can go twenty plots deep into the field so we have room for 80 plots where we only need to put in forty eight plots so we should have plenty of room but we need to make sure that
we fit within the dimensions that I described here just a little bit about where I'm gonna go with this class this semester we're going to learn how to do some things in SAS we're going to learn how to design a basic filled experiment like the one we're doing today we're going to talk about why we would use different experiments or different randomizations we're going to talk about the basic idea behind you know mean separation and analysis in in science so you know why do we use a nova how do you do a basic anova why
don't we necessarily use you know the basic ANOVA for everything that we do when we're trying to do mean separation so for this one I'm going to give you the assignment today I'd like a copy of it back by next Friday and it's an opportunity for you to walk through the process of building your own plot layout fortunately I'm going to step through much of this for you today so that you can you know refer back to this as you get started if you already know this then go ahead and get started you probably don't
need to watch the rest of this but if you're interested in how I would do it go ahead and stay tuned I'm going to come over to excel I need to go twenty plots deep four plots wide so I'm going to go ahead and just outline these plots I'm gonna go to format cells go to boarder outline inside and this is what the basic plot layout is going to look like I can tell you in advance that I'm probably going to do three versions of this so I'm just gonna put those the outlines for them
here you know how I'll end up using them eventually the first thing that I like to do is once I have the dimensions that I'm going to put the trial in I know this is how wide I can go this is how many range is deep in the field I can go I'm gonna go ahead and start designing my experiment normally I use a few general rules when I'm laying out my my trials one is with a few exceptions replicate is going to equal the hundreds place on my plot numbers so what I would do
in this case is this would be rep one this would be rep two etc and what I'm going to do then is all of my 100's are going to be in here and then I simply just number from 101 up to 108 so it would look something like this I'm just you'll see in a second why I'm doing these formulas oops all right and then for the fun of it I'm just gonna say plus 100 you can type these all out by hand I don't mind if you do it's just that you know a lot
of times it's easier to get accustomed to using shortcuts to speed up the process now this is essentially what my plot layouts going to look like in the field when I when I go out and do my treatments the 100's are going to be rep 1 to hundreds of rep 2 etc and that's that's good that's that's a good starting point but we still have to find a way to randomize our treatments within each of our replicas here so I'm gonna come over here and I'm going to put my plot number and I'm going to
put my treatment in here and then I'm gonna do the same thing that we did before you know I like to use a lot of basic addition to speed up the process here oops I guess it would help if I did plus 100 rather than plus 1 and then I just fill it down until it's to 608 and I'm ready to go a lot of times because these have formulas in them all hurry and copy and paste those values just so that I don't have to worry about dealing with formulas after that but I still
need to come up with treatment and the easiest ways to do this you know without getting specialized software or other software are going to be the following the first way is pull up Google and go to randomizer dot-org or just type in research randomizer and this is pretty useful because it's a quick and easy way to produce sets of randomized numbers the number of sets of numbers that I want to generate in this case of six I'm put in the number of replicates that you want the number numbers per set are going to be eight
and then it's going to range from one to eight if you put a number range of one to a hundred you would produce eight different numbers but you know they would be all over the place between number one and number one hundred we want each number to remain unique because we don't want to duplicate any of our treatments in here and we don't want to sort the numbers we're gonna randomize them the cool thing is if I click download it's going to go ahead and put it into a CSV file that I can then drop
in here and then it's just a matter of a little bit of cutting and pasting there are a couple ways faster ways to do this but for purposes what we're doing here I'll just cut and paste it here something I should have mentioned as I was putting this together is the type of design that I'm putting together here is called a randomized complete block that simply means that I'm going to have each treatment once within this block that represents a rep here we'll get into more detail over the semester why we use different experimental designs
but for right now just keep in mind that we're doing a basic randomized complete block I would say that generally speaking this is the most or one of the most popular research designs for field research and just like that now I have my plot number and my treatment number matched up for all of these it's kind of useful to be able to look at your treatment numbers in the same format as your plot numbers so I'm going to use a technique called vertical lookup to match up what we have here what this is going to
do is it's going to look in here find the okay this should be plot 101 it's going to come over here and find plot 101 and then it's going to look next to it and say okay that must be treatment six and it's going to put treatment six in here if you're already familiar with the lookups I apologize for the explanation but I am trying not to work off of any obvious assumptions here so I'm gonna do a vlookup going to select the 101 over here first then I'm going to come over to this table
because this is the one that I'm actually looking up the treatment in I hit f4 to lock my cells in place otherwise weird things are gonna happen I promise you it asks button so I locked that in place at a comma and it asks for a column index number that simply means which column are we looking for the treatment number out of it's going to be column two these are index numbers so it's like one two three four five not don't think in terms of pqrst it'll just be one through however many columns wide your
data are do we want an approximate match or an exact match in this case we want an exact match because I don't want to have an approximate match between my plot number and my treatment I want to know exactly what treatment lines up with that plot so I'm gonna put in false usually you use true if you're doing something like gradebook where you're trying to get numbers you know between 70 and 80 are going to be a CEO eighty and ninety are gonna be a beat that type of thing excuse me mm-hmm all right so
it looks like everything's working properly here I got a treatment six here for plot 101 so that's what it should be if I did this correctly now I should be able to just fill over fill up let's do a quick double check here 607 and 608 our treatments eight and to come down here these should better be eight and two they are so that's good news now one thing that you can do is actually see how much how many of your treatments happen to just be close to each other I can tell you already that
something pretty funny happened right here between the beginning of or the end of rep two in the beginning of rep three in that we got a 3 6 a 2 and a 4 I guess just a 3 a 6 and a 2 all together with six replicates I'm not particularly worried about that if you are worried about it come back over here run another randomization or you know move set three to set six um you want to be careful not to bias your your randomization by by just going in and a wholesale changing numbers but
you know if you don't like what came out of it you may want to address that it's better to address it early than it is to you know to worry about it after you've actually made the trial I'm going to do conditional formatting let me go ahead and maximize this a conditional formatting and I'm just going to do color scales and this is going to show me you know do I have any patterns in my coloring here you know like I mentioned we've got the three sixes and twos that are here we've got a pair
of sevens here pair four that is something that you know you may want to address if it's not blatantly you know if you have a couple of numbers that are next to each other a couple of treatment numbers that are next to each other it's not the end of the world but if you have a lot of them you know it's probably indicative that you need to you know run your randomization routine one more time but also probably help if I put in rep here one way you could do this is just you know type
in ones for all of rep one and then just you know add one all the way down like so another way you could do it is just say okay let's just take the leftmost character out of here you know equals left P one and then one character you know that's also going to give you the ones through sixes if you wanted to use a vertical lookup you could go in and say this would actually be an opportunity to use the vlookup with the true so I'm going to look in here I'm going to look for
the value in this table hit a four again to lock the dollar signs comma to true in this case and that should also return the same thing which it does and so great all right so far so good it might not hurt if you have someone visiting your fields to be able to give them a plot layout that has both the plot number and the treatment number in it so I'm going to use the concatenate function to quickly combine these so I type in concatenate I want to combine that I'm going to go ahead and
put a dash in here if you need to enter any text just put quotations around a and then I'm going to click on here notice I'm not using any dollar signs because I want it to relatively change itself as I'm moving to the right and moving up in here I did this right it should do a 101 - 6 in here when I hit enter oh good it did all right and just like that we have a plot map with treatments in it may not hurt at that point - yeah that's a little bit skinny
but to adjust your column widths accordingly the only thing that the only other thing that I could see that would be nice to have the is kind of a little bit more involved is this color scheme over here I don't think you can just paste the format's but let's find out no because it carries the the format painting here I think one thing that you can do at least I think I've done this before is actually paste it into word and then delete the numbers out of here and then actually copy and paste the formatting
bag guess it would help if I pasted it in the right place so what's just do it again so concatenate 101 put a dash in here and treatment six fill that over fill that up and guess when I fill it over I better tell it um fill without formatting and then when I fill up also fill without formatting there so now we have a cool color-coordinated plot map that you can send you know take people out to the filled with all right do I expect you to do all of that for assignment one no not
necessarily I've really just you know you need to come up with a plot map you need to put plot numbers in there you need to have a treatment list with plot number treatment and rap and so you know here's your plot map these are useful but they're not required and then here is your plot plan or your plot plan with your plot treatment and rep in here I don't know if you're going to have access to SAS in what you're doing but let me quickly show you how I would generate a randomization and SAS so
here's SAS I'm using an Enterprise guide I've got some instructions at the top of the files that I sent on you know why we put stuff in that we use this is a very simple procedure I don't have to have any data to run it and it just produces a randomization so this is proc plan the seed represents if I understand correctly the the total number of values that are going to be pulled into the randomization set the default was twenty seven 371 I tried it with a few other large numbers and I didn't seem
to be improved or you know or made worse by how big or how small I made the numbers I didn't try any really small numbers um so just leave this in here this will be your number of replicas its I was telling the group earlier I was going to record this then but I ran into issues the replica is going to be the block and then what you put after ordered is going to be your your treatment within you can name this anything that you want I don't know you can probably name this anything that
you want as well you know let's say we want this to be block instead let's try that and see and plot doesn't make any sense block block equals six treatment equals eight when I hit run it should make six blocks with eight treatments per block and those treatment should be randomized well looky here so I have six blocks eight treatments per block and then I would do the same thing that I showed you earlier or you just paste it in here you know maybe paste in as text rather than those formatted text and then the
only thing I would caution on this is before when I brought these in the treatments ran down this way now they run across this way so you will probably want to you know turn it around and I'm just going to do that by doing a transpose paste and then you can go through the same process of breaking it down I don't know if you've used macros before but if you want to speed up the process you could actually put in a macro here all the macro does is you tell it what to do and it
does the same over and over so if I did this correctly whoa I forgot that I have some shortcut keys associated with the Camtasia Studio so I may have to change my control shift ee and let's see what that does and just like that you have them laid out in order just like we had over here so two different ways to get your randomization either one I am completely comfortable with you would go ahead and save this send it to me before next Friday and look for further instructions at that time all right this is
dr. Ritchie over and out