Thứ Tư, 3 tháng 1, 2018

Waching daily Jan 3 2018

Back in 2013 a stock tracking firm, Motley Fool by name, tried to explain why

it had decided to say that Starbucks is one of America's best companies to work

for. In those years, Starbucks had a great reputation, it treated its workers well.

The reason we knew that, was it said so all the time, over and over again, and it

liked to tell the story of their former chief executive, a man named Howard

Schultz, who attributed to his father's shaky job. The father never knew when he

would be paid or not paid, troubles when he got hurt on the job, and the story was

told, I believe in Fortune magazine and elsewhere, that Mr. Schultz was

determined to never reproduce for his employees what his father had suffered

on the job. Nice story. I wish it were true. The

problem at Starbucks is part-time labor. You only get many of the benefits that

Starbuck talks about if you work 20 hours or more.

But getting to work 20 hours or more is not easy. Turns out, Starbucks needs a lot

of workers at certain hours of the day, and not many workers at other hours of

the day, so they insist on having schedules that are weird and changing

from day to day, week to week, and plugging their workers in, when it's

convenient and profitable for them to be there. And that means, many workers don't

get the number of hours a week they need, to qualify for the benefits that they

like to talk about. Two-thirds of the company's payroll is part-time workers,

and according to a PBS Frontline report, if you want to work 32 hours a week for

example, to secure your access to health care, you have to make yourself available

for 70% of the hours that the store is open, allowing them to plug you in how,

where, and when they want you to. Now put that together with the average pay for a

Starbucks barista, ready, nine dollars and fifty cents an hour,

including tips. Well folks, if you work in the places where Starbucks are

concentrated, you know, New York, Washington, Seattle, places like that,

you can't live very well, if at all, on $9.50 an hour with tips when you're

working 20 or 30 hours a week. But the problem is, if you don't know from week

to week when your hours are, it's even harder, you can't have a second job

because you can't fix your schedule. It puts you in an impossible situation. And

why do I tell you this, to show you that Starbucks was a, had a reputation that

didn't deserve? No. You probably guessed that. I don't want to criticize Mr.

Schultz, or anybody else at Starbucks. Starbucks is doing what the system has

it do. You want to make money, you're a profit-making corporation, you

have shareholders to please, bankers to pay interest to, you do what's profitable,

that's what you're there for, that's why you went to business school, that's why

your job as executive exists. If you don't want the outcome of Starbucks, the

reality that's so different from the reputation, it's the system you gotta

deal with, not the particulars of this or that practitioner.

For more infomation >> Richard Wolff Briefly: Is Starbucks one of America's best companies to work for? - Duration: 3:24.

-------------------------------------------

Introduction to SAS for Windows. Part 1: Overview - Duration: 6:20.

This video series is designed to give you a quick overview of the SAS system for Windows.

SAS is short for the statistical analysis system, a data analysis system

that originated within the statistics department of North Carolina State University

in 1966. A consortium of eight land-grant universities needed a

computer system to analyze data from a range of USDA funded projects.

Ten years later the company now called SAS Institute was formed. The SAS system has

continued to evolve incorporating new statistical methods as they are developed.

When the SAS program initially starts in your computer there will be three windows active:

1) An Explorer window;

2) A Log window;

and 3) An Editor window.

As you manipulate and analyze data information and images will be added to these

windows and during analysis a Results window will be created.

In the upper ribbon there are a number of options available. These options will change

depending on which window is the active window. We will begin with the

Editor window. This is the window that you will use to provide data and all instructions

for manipulation and analysis. You have complete control on the contents of

the Editor window. You can type into this window, you can paste, copy, save the

contents as a file, and open previous files into this window. When files are

saved by this window they are given the default extension of dot SAS. These are

referred to as SAS program files. A SAS file is a simple text file that can

contain all the data and instructions for the analysis of an experiment.

You can save this file for recall in the future,

make additions or changes for reanalysis, or email the file to another person who can

perform the same analysis on their computer.

Once the instructions for an

analysis have been placed into this window, then they can be submitted to the

SAS program for execution. When SAS is performing a series of

instructions it will report in the log window what has happened in each stage.

You will notice that it start up it included a report of the initiation of the

system on my computer.

To illustrate the operation of the program I will execute an example analysis

and generate a table of means.

When results of analysis are

available these are reported in the Results window. Material in the Results

window can be saved as an HTML file or they can be printed as a PDF file.

You can also copy specific sections to the clipboard. For example I will use the

mouse to select and copy the means table. I will then switch to Excel and paste this

information into the Excel spreadsheet.

The advantage of moving it into Excel is I can now eliminate extraneous columns

of information. I can also go into the table and alter the number of

decimal places of the values presented. In this example, the estimates of the

means are to three decimal places and the standard errors are to three

decimal places. For this example you would typically want to convert the

means to one decimal place and present the standard errors

to two decimal places.

Returning to the SAS program, the default style for the

Results window is called HTML blue. You can alter the result style by selecting

tools, options, preferences, and going to the results tab you can change the style.

There is a wide range of styles available. I will change the style to

grayscale printer. I will now re-execute the analysis to illustrate the

change of style. Now there is greater contrast between the text and the

background. I find this style is better for lecture presentations.

The window to the left is

the Explorer window. This provides an index to the results.

Until the contents of the results window is cleared it will contain the results of

the current analysis as well as previous analyses. Here was the first analysis

that I conducted, followed by the second.

Sometimes you may inadvertently close a window. To reopen a closed window

use the view option in the upper ribbon to open up the window you have

closed. Or, in the case of the Results viewer, you can use the results Explorer

to reopen the Results viewer.

This concludes part 1 of the tutorial.

In Part 2 we will cover the Editor window and data entry.

For more infomation >> Introduction to SAS for Windows. Part 1: Overview - Duration: 6:20.

-------------------------------------------

Queen Elizabeth NOT Retiring For Prince William, Kate Middleton To Have "Christmas Coronation - Duration: 2:05.

Queen elizabeth not retiring

for prince william kate middleton to have christmas coronation

Queen elizabeth is not retiring for prince william and kate middleton to have a christmas coronation there is absolutely

No truth to this claim, which stems from an australian tabloid. Gossip cop

Can bust the story, both in its print edition and on its website, new

Idea alleges there was a series of?

Crisis meetings in the palace this week to address the young president that supports for prince william to step in as the queen s next

Successor admit his father prince charles poor approval ratings a

so-called top palace sources quoted as saying at this stage the queen is planning a christmas coronation for william and kate

Preparations are afoot to announce the rise to the throne, by the end of december the queen, wants to start t

2018 in a positive way so they can turn the opinion polls around a purported palace courtier

also

supposedly

Claims to the magazine the queen has always been nervous of handing the reins to charles and camilla at her

Preferences has always been to make william and kate the next king and queen as she really feels they rea

The future of the monarchy but no authentic. Palace, sorcerer palace courtier, would be permitted to speak with a, gossip magazine

even anonymously

Furthermore if legitimate details about queen, elizabeth's planning to have prince william and middleton crowned

By the end of this year really were leaking it would be international news

Yet these claims are originating with the publication from down under one that has already proven to have a penchant for running and substantiated

Allegations, about the royals such as have made-up wedding

And baby announcement for prince harry and megan markel just last week it is also worth noting that like

No, idea the american tabloids are, also seemingly obsessed with the future of the monarchy last week as life

And style for example featured a fabric that covers story

About queen elizabeth naming prince william and middleton king and queen as. Gossip cop

Has always rightly said, any real change in succession and any real plans for retirement will not be broken, by the gossip, media

For more infomation >> Queen Elizabeth NOT Retiring For Prince William, Kate Middleton To Have "Christmas Coronation - Duration: 2:05.

-------------------------------------------

Introduction to SAS for Windows. Part 2: Data entry - Duration: 14:22.

Welcome to part two of the SAS system for Windows. In this video we will cover data

entry in the Editor window. Let's return to the Editor window.

I have provided a small data set for the first week's analysis in the course. It is a text file

by the name SPAW1.SAS This is short for statistics in plant agriculture week one.

It contains the 100 seed weights of 10 samples of 2 plant species, Corn and Sunflower

Place this file in a directory that is accessible by your computer.

It could be on the hard disk, on a memory stick, or on a shared network drive.

I have also provided the example data as part of the description text for this video.

We'll begin by opening this file. When the input window is active, go to

the ribbon, select file, open program, navigate to the directory that the file

is in, and open the file. The file contents will open and be placed after

the cursor in the Editor window. The file contains 20 rows of data arranged in

3 columns. Each row is an observation. The first column is the observation number,

the second column is the plant species, which is either corn or sunflower in

this data set, and the third column is the weight in grams of a hundred seeds

of the sample.

SAS can use data in any format but the easiest for most users to

manipulate is this row-column format. This is exactly the same format as you

would see in a spreadsheet.

Instead of having the data in a SAS file I could

have pasted it into this window from the original source using the Windows paste

command. For example, I will remove this information that we just opened up and

and go to my Excel spreadsheet. I'll block the data area,

copy it to the clipboard, and return to the SAS Editor window. I can paste the

information in and it looks like the original data set I had just opened.

There are many other ways to access data in the Editor window but the copy-paste

is easiest for most users, and avoids compatibility issues among software programs.

Now we have some data in this window, we need to give SAS some

instructions as to what to do with this information. These instructions are

collectively called commands. You usually need to do a combination of the

following: title your output, enter your data, manipulate the data such as

computing new variables, parsing, or combining various datasets, visualizing

the data, analyzing the data, and saving or capturing the analysis results.

I'll first add a couple of blank lines above the data area. The first command line I

will insert is the Title command.

In this case I will use as my title: This is my first SAS analysis.

One key thing to remember with SAS program statements is that the semicolon is used to

indicate the end of a command line. Forgetting to insert the semicolon is

the most frequent error students have with the Editor window.

The second most frequent error is not including both the opening and closing quotes.

If the closing quote is missing SAS will continue searching for the next

quote and assume that all information between the two is a title.

Sometimes the command lines can get quite lengthy. They don't have to appear all on one line.

SAS will search for the next semicolon and automatically combine the sequence of

characters into one command line. For example, if this title line is broken up

into three lines or four, SAS will take the entire sequence and make it into one

single command line. You will note that different colors are displayed in this window.

Commands SAS recognizes will be indicated in blue. I will insert an error

into this Title request. Note that is now displayed as red indicating an

unrecognized command. I will leave this error in to illustrate what the SAS

program might do in such cases. The Title command requests that all pages of

output have this title placed on the first line of every page. As you proceed

through analysis steps, you can change the title by inserting a new Title line.

SAS will use that new title from that point forward. It is also possible to

include subtitles. The Title2 command

inserts a title on the second line of every page.

If you need to you can add additional subtitles using the Title3, Title4

and so forth commands. Although you could create these lines in a word

processing program and paste them into this window, beware of a problem with the

single quotes. Word processors, and I'll open one up here, automatically replace

this symbol with two other symbols, an opening and closing quote. SAS does not

recognize the latter, so if you paste it from a word processor

you will need to replace the quotes because they are not the same as the

single quote that SAS requires for a title line.

The next statement I'll

introduce is the Data statement. This command lets you create datasets or

manipulate existing datasets. These datasets that are created are electronic

versions that SAS uses during analysis. You don't have to but is advised to name

the electronic datasets that are created. This makes it easier to combine or

subdivide data, or point to specific datasets for certain analyses.

The convention I use is to name the datasets in in the order that they are created

using the words: first, second, third, fourth, and so forth. Since this is the

first data set in this particular analysis, I will name it First.

Again don't forget to include the semicolon.

The next command line is the Input line. This instructs SAS how to interpret the

data area. In this example, there are three columns, so we need to define three

variables--one for each column. The variable names can be alphanumeric but

need to begin with a letter, and each name contain no spaces. I could use

name such as v1, v2, v3 or c1, c2, c3 but it is easier to refer to short names that

make sense in the analysis output. The first column is a sample or replicate so

I will call it Rep.

The second column is the species so I'll call that variable Species

and the third column is 100 seed weight so I will use an abbreviation for 100

weight: WT100

and end the sequence with a semicolon. Now we have three variable names that

correspond to three columns in the data area. Unless you specify otherwise, SAS

assumes variables are numeric. It will attempt to interpret the data region

accordingly. With this method of data input, strings of characters that have a

space in either end would be converted to a variable value. For the first row it

would convert the digit 1 into the number 1 and that would be the value for Rep.

It would find the next character string, in this case: corn. Since this

can't be converted to a number it would skip that and go to the next string and

convert the characters 17.66 to a value and that would

be the value applied to the next variable in the list --in this case Species. And it

would continue into the next row and place the value 2 in for the weight 100 variable.

Obviously that's not how we want this data to be interpreted. So in

order to have this area interpreted correctly, we need to indicate to SAS

that the variable column Species involves alphanumeric values. To do this

we added a dollar symbol after alphanumeric variables in the input line.

The dollar sign can be right after the name Species or separated by a space.

Either way it's an indicator to SAS that the variable Species has alphanumeric values.

Now it will interpret the data area correctly.

Once we have defined an

alphanumeric variable we don't need to include the dollar sign when we refer to

the variable later. Using this input method if you happen to have values that include

spaces such as Guelph corn you will have to remove the blank to create a single

string of characters in your spreadsheet. You can do a global replace of

the blanks in the spreadsheet column with an underscore symbol to combine the

two parts Guelph and corn together as Guelph_corn.

By default, SAS will abbreviate alphanumeric values to the first eight characters.

In this example data set this is not a problem since the Species designations only

involve four characters, but you will have situations where you need to alter

this default. For example if you had Guelph_corn that would be

shortened to Guelph_c. If your variable values are greater than eight

letters you can override the default by including a Length statement placed ahead

of the Input line.

Here I've added a length statement defining Species as an alphanumeric

variable and indicating it can have values up to 20 characters in length.

You can enter the value that is appropriate for your particular study.

I'll remove this statement since it is not necessary in this particular example.

For those of you using the University edition of SAS note that you will require an

Infile statement prior to the input line to indicate to the program that the

columns are separated by tab stops and not by physical spaces.

This Infile statement specifies that tab stops rather than spaces separate columns.

This command is not necessary if you are using the SAS PC Windows Edition.

We now need to insert another command line after the Input line to indicate to

SAS the next series of lines are data and not command lines.

When the program was first developed the command was the word Cards. This goes back to the era

in which data was read into computers through key punch cards. I will insert

the command Cards with a semicolon.

Note that the data area becomes highlighted in yellow. It is important

now to go to the end of the data area and add a semicolon on a new line.

This signifies to SAS that is at the end of the data set and from this point on the

characters will be interpreted as command lines. Make sure the semicolon is

on a separate line. If it happens to be placed on the last line of data

as I illustrate here, note that the last line of data is no longer highlighted in

yellow. SAS will not use this line of data in the analysis so make sure the

semicolon is placed on a separate line.

An equivalent command to the Cards

statement is the command Datalines.

It has exactly the same function as the Cards statement. I prefer to use the Cards

statement because it takes less time to type.

This concludes part 2 of the tutorial.

In part three we'll cover additional data manipulation in the Editor window.

For more infomation >> Introduction to SAS for Windows. Part 2: Data entry - Duration: 14:22.

-------------------------------------------

Introduction to SAS for Windows. Part 4. Procedures and results capture - Duration: 27:10.

Welcome to part 4, the final section of the tutorial on the SAS system for Windows.

In this video we will cover some basic procedures and how to capture

results of a data analysis.

I'll introduce you to a couple of the base

procedures that are helpful for managing and checking an analysis.

The first procedure is the Print procedure. This is a technique to cross-check the data

before analysis. Through this procedure you can obtain a listing of an electronic dataset

to confirm everything has been interpreted correctly and that the calculation of

new variables are correct. To list the data set use the Proc Print command.

I'll include a Run statement.

What this command will do is provide a

listing of the most recently created dataset. Another useful procedure is the

Sort procedure. Through this procedure we can sort the dataset using one or more variables.

This is helpful when calculations are being performed or when

extreme values are being searched for. If you sort the data file by the variable

under question the missing and smallest values will appear at the top of the

list and the largest will appear at the bottom. That is quite helpful when the

data set may run hundreds or thousands of lines.

I'll include the Sort procedure

before the Print procedure. In this example I have invoked a sort

and I am sorting the data set by the variable WT100. I have included a Run

statement to ensure that the sort is finished before the print.

Notice that I can place these statements all in one line so long as I am separating them

with semicolons.

Normally we would list them line by line because it is a lot easier to edit when

checking for [typing] errors if you place the statements on individual lines.

By default SAS will use the last dataset created when a procedure is specified.

Sometimes you may want to have it do the procedure with another dataset

other than the last one created.

This is where the naming of data sets comes into play.

In each procedure statement in the

SAS system you can point to a specific data set for the program to perform the analysis with.

To do this you include a data = option in the procedure line.

I did not have to do it for this example but I will illustrate how this

specification works. In the Sort procedure I will include the

data = Second in the command line,

and I will do the same in the Print procedure.

Now both the Sort and the Print procedures will be performed with the

Second dataset.

To complete a sequence of tasks in the editor window make sure

the last line has a Run statement with a semicolon.

To submit the series of

statements into the SAS program you can either use in the top ribbon the

Run-Submit option or along the second line you can click on the symbol with the person running.

SAS has now performed the series of steps and has presented the

results in the Results window. However do not look at the results until you have

first checked the Log window. You need to confirm that there are no problems in the analysis.

This is one limitation with the SAS program. It automatically takes

you to the results. Do not look at those until you have first checked the Log window.

So I will now switch to the Log window and scroll to the top.

The log reports what SAS did with each statement. You will see it identified an

error in the first line and made a correction. It assumed the error was a

misspelling and gave a green warning.

If this change was fine

then you can proceed. Sometimes the self correction is not what you want.

The next section below was the creation of the first dataset. It found 20

observations and 4 variables were created. That should correspond to the

expected number of observations in the experiment. In this study there were 10

replicates of two species for a total of 20 so that is correct.

The rest of the

statements do not appear to have any errors. If you find red lines in the Log

window this indicates problems that SAS could not self-correct. You will need to

correct these errors before proceeding with interpretation of the analysis.

Since this log is acceptable we can go back to the Results window.

Here is the data listing with all 20 observations sorted by the

100 seed weight. We can also see that the values conform to our original data and

the calculation of the new variables appear correct. The Log and Results

windows are cumulative windows. New results will be appended to whatever is

already there. If there are problems with an analysis use the Log window to

identify where you need to make the correction to your command lines.

For example, I will go back to the Editor window and I'll make my correction and resubmit the statements.

The error I had was in the first line and I had misspelled the

command Title. I have missed the e to it. Now that I've made that correction

I will now resubmit the statements. The results for this second submission have

been appended to the results from the first submission. Normally you would not

want to do that, especially if there are errors in the first submission. You don't

want to have the results file containing erroneous information. So to clear the

Results view, select the window and using the ribbon options select Clear-all and

what that does it clears the window that was active. Also go to the Log window

and do the same.

And now we can return back to the Editor window. By doing these steps we've now

cleared the Results window and also cleared the Log window so now if we

resubmit statements we will only have the results of the correct analysis and

we'll only be dealing with the Log report of that last analysis that we have conducted.

There are also two other base procedures that can help you with

data analysis. The first is the SGscatter procedure. It does not generate

publication-ready graphs, but it can be a quick way to visualize the distribution

patterns in the data. This is helpful in confirming trends or more critically

absence of trends in error distributions in an analysis. To generate a

scatterplot use the Proc SGscatter command. The SGscatter procedure lets

you do a scatter plot of any variable against any other variable. So one of the

variables we have an interest in in this dataset is the hundred seed weight so the

WT100 variable is an obvious variable to consider. We do have two

classification variables, one being the Species, the other is the Replicate value

and so those are also variables that we could perhaps look at the distribution

patterns in terms of the hundred seed weight. So what I will do is generate a

scatterplot involving the hundred seed weights against those two variables.

With the plot statement in this procedure the variable on the left of

the asterisk is the variable that is placed on the y-axis or the vertical

axis of the graph, and on the right hand side you would list one or more

variables in which plots will be created and placing them in brackets we can then

have multiple requests of plots and so with this statement the 100-seed weights

will be plotted against each replicate as well as another plot of 100-seed

weights by Species. I'll now submit these commands.

So now we have two scatter plots created.

One on the left is the hundred seed weight against replicate

and the one on the right is the hundred seed weight against species.

Through these plots you can start seeing some of the trends in the data. For example,

the sunflower values in terms of hundred seed weights are much less than the corn values.

But in a variance analysis we're much more interested looking at the

residuals and making sure that we have random distributions of residuals, as

well as normal distribution. So instead of plotting the observed values, which

are the hundred seed weights, we are much more interested at plotting the residuals

of the analysis. So I will now switch back to the analysis and add the

statements to do a variance analysis of this study. In this particular experiment,

it is a completely random design with Species as a classification variable.

So I'll now do a

GLIMMIX analysis and divide the variation into that classification group.

The statements I've added will give us a variance analysis of the 100 seed

weights using the Proc GLIMMIX program. Species was a classification variable.

I've requested the means for the Species as well as I've generated an output dataset.

I've called that dataset Third, and this will have the individual

experimental unit values, as well as columns for the predicted values,

the residuals, and have also requested the studentized residuals. These

variables will be called Predicted, Residual, and Sresid in the dataset.

I've now done a change to the SGscatter request, and I'm now having it plot the

studentized residuals against Replication and Species.

I'll now submit these statements.

So now we have scatter plots of the studentized residuals for

each of the replicates, as well as each of the two species.

With the studentized residuals

we can now start seeing trends and patterns. There is one particular

value in the sunflower that seems to be very far apart in terms of its

distribution pattern relative to the rest of the observations.

This particular value

is a putative outlier and through analyses of the dataset itself it was

an error in recording.

So these plots let us look at the random type patterns of the residuals.

If you look at the sunflower and corn distributions the

corn distribution is fairly wide with generally a reasonable spread.

With a variance analysis one of the core assumptions that need to be met is

random distribution of residuals-- or random distribution of errors. The other

type of distribution pattern we also want to see is a normal distribution of

the errors or the residuals.

So I'll now switch back to the statements.

For this example I will add another procedure called

Proc Univariate and through this procedure I'll be able to generate a

graph of the distribution, with the expected normal distribution superimposed,

as well as perform a statistics test of normality.

I'll first invoke the Proc Univariate procedure.

And I've indicated a normal option as part of the procedure call.

What that does is it generates statistics tests of normality.

I've also indicated what variable to do the test on, and that is the

variable: studentized residual.

With this procedure the Histogram statement generates a frequency

distribution of the variable indicated-- which is the studentized residual, sresid.

The options to the statement: normal and kernel, superimpose on the frequency

distribution, the normal probability curve, as well as a curve that is based

on the data distribution itself. We can generate one of these graphs for all the

data placed into a pile or we can subdivide it for a particular classification.

We can add another statement, a BY Species to this procedure.

So long as your dataset is sorted by Species you can add BY Species

or whatever variable or variables that you are interested in looking at graphs

divided in terms of subdivision of your dataset. By placing all of these

statements together we can now generate a visual diagram of the distribution as

well as perform a statistical test of normality for each one of the Species

in terms of the studentized residuals in the analysis. But, in this particular

example we're using the Third dataset for generating our graphs. The Third

dataset has not been sorted by Species, only the Second dataset was. So we'll

have to add in prior to this procedure, a sort to ensure that

it's sorted by species.

I'll now submit these statements.

I'll scroll back through the results to get

the distribution graph for corn. The frequency diagram is illustrated with

the bars. The blue line is the expected distribution based on normal probability,

and the red line is the kernel which is the distribution based on the data itself.

As you can see those two lines reasonably follow each other. Yes there

are a few little squiggles here and there, but visually the the observed and

predicted are not deviating very markedly from each other.

But a better way of assessing: does that distribution differ from a normal distribution

is to apply a statistics test. So I will scroll back just a little bit further in the results,

to the summary of the statistics tests of normality.

In this procedure, there are four tests that are automatically generated.

The Shapiro-Wilk test is the first one listed

and that is one generally applicable to a lot of situations when you're dealing with a Gaussian type variable.

In this particular test the W statistic is 0.93.

More importantly we look at the P-value, and the P-value is 0.45 so using a typical

Type 1 error rate that we would assess at 5%, that P-value is well above that,

and we would accept the null hypothesis that the distribution follows a normal distribution.

So as you go back and look at this distribution again,

what we are seeing visually corresponds to the

statistics test, indicating that the distribution pattern does follow a

normal distribution.

Now let's consider the sunflower.

Sunflower has a very different distribution.

You will see that there's two peaks visually.

The red lines are

the distribution pattern using the kernel option, the blue line is what the

distribution would be expected to be if it was a normal distribution based on

the variances that are inherent in that dataset.

So obviously, visually, there seems to be two peaks and that would not be a

normal distribution. So as we go back and consider the test of normality,

again looking at the Shapiro-Wilk test the statistic is 0.54 and the P-value to that

statistic is less than 0.0001 so we would reject the null

hypothesis and declare that this distribution deviates from normality.

So once again the statistics test and our visual assessment of the

distribution correspond. And so there is something about this dataset

the sunflower values are not following a normal distribution. The reason for

this, in this particular example, is because of that one observation--and that

observation was an outlier--because there was an error in recording the value.

If that data point is taken out then the distributions actually do follow a

normal distribution.

I'll now illustrate how to capture

information for use in other programs.

Images in the results area can be

captured by hovering the mouse over the image and doing a right click,

and you can save the picture. You can save the picture as a PNG or as a bitmap file

and then use that in other programs.

If you're dealing with tables,

I'll just go up to the test for normality, if you hover over the table, again do a right-click

you can export the table to a Microsoft Excel program. That way

you can very quickly capture a particular table out of the results area.

If you hover outside the results area, and export to Microsoft Excel,

here will get all possible tables that can be generated in terms of an Excel spreadsheet.

This program will then let you go through that entire

result area and indicate which particular tables you want to export.

You can do a whole series at once.

You can also save the results table using

the File Save-as option, and you can export it as a web archive or as a HTML format.

You could also print and you can print it as a PDF document.

So those are some different ways of taking the results and saving them in different formats

that you can then import into other applications.

SAS also has an export method for the electronic datasets themselves.

To export these go to

the ribbon and select File Export Data,

select the data set you want to export, in this case we have three electronic

data sets when I've called First, one I've called Second, and one I've called Third.

Let's go to and use the Third data set.

and that was the one that also has

the residuals and predicted values.

Click on Next and this lets you then define

what type of format and what type of program you are going to move this

electronic data set into.

The SAS system that's installed is a 64-bit application

and so if you have a Microsoft office system that's also 64-bit on your

computer you can export it to the Microsoft Excel workbook

However if your

Microsoft System is a 32-bit you cannot use that option.

You have to change the particular export system

and if you have a 32-bit one of the one that works

fairly efficiently is the one option called Microsoft Excel 5 or 95 workbook.

That seems to work with a whole series of the 32-bit systems.

Click on next and

then you get to choose where you're going to save the file

and indicate what file name

you want to use. I'll use the Browse button to indicate and in my

case I'm going to send it to the desktop, and I'm going to call this file Example,

now I'll click on Finish, and that file has been generated.

I'll go to my desktop

and open up that file.

So this is the excel file of the Third dataset.

You will see that it has the Rep and Species and WT100 variables that were in the

original data set we submitted to the SAS program.

It's also got the two additional

variables that were calculated, the weight in milligrams, the natural log of

the 100 seed weight, as well as we've added the predicted values, the residuals

from the variance analysis, as well as the studentized residuals.

And so you can use these in other applications.

I'll now switch back to the SAS editor window.

So now we have a set of statements that includes all of the data, all of the

calculations, all of the variance analysis, and all the procedures that we applied.

We can save these SAS statements. We can do File, do a Save-as, and give

it a little different name.

And that way we can recall those statements at a future time for

further analysis of this study,

for changing particular applications that we may be doing with the data.

Perhaps there is another run of this study we can now add in

and do further analysis, or we can recall all of these statements again

for some other application.

An advantage of saving the statements along with the data,

so here are the statements and we've got the data along with it,

It helps you in future scenarios because you don't have to go hunting for the

associated data files. The data and the text are all together. These are just

simple text files and they don't take up very much room.

A couple of other additional points about the SAS system.

When report on an analysis you always need

to convey what program and what version was used. To determine which version you

were using select Help, and About SAS from the ribbon.

The window indicates

that this is SAS version 9.4, and that is what you would include in

the methods section of a paper or a thesis.

Also the package includes a Help

reference to all procedures statements and options available.

Again to access these,

under Help, go to SAS Help and Documentation, open up SAS products, and

SAS Procedures Options, gives you a summary of all procedures sorted by name.

You can now go to the particular procedure you would like help with.

So I will open up the GLIMMIX procedure.

The help files for procedures are all

organized the same way.

The system provides an Overview, Getting started,

the Syntax, Details, Example datasets, as well as all References related to the

procedure. Syntax gives to link to all possible

statements and all possible options that are available that you can use.

Some of you may be doing a repeated-measures analysis

and you would have to indicate

what repeated measure covariance structure you would want to specify.

In GLIMMIX that is specified using the Random statement

so by following the hyperlink

for the Random statement you can then access what are the whole series of

options that are available to that statement.

So the table in this

particular procedure, Table 44.17, gives the entire list of options that are

available for that particular statement. This involves the covariance structure

itself, how smoothing is applied, and what statistical output you

are requesting from that procedure.

The covariance structure would be

specified using the Type = option. Following that hyperlink you can then

obtain the entire list of all covariance structures.

You will find hyperlinks to the original papers or published text which explains

the application and the limitation of various options,

and so you can use those

to identify which is the most appropriate option for the type of data

or situation that you're encountering in your analysis.

This concludes the

tutorial on getting started with the SAS system. For those of you who are using

the University edition there is one additional introduction tutorial which

covers some of the unique features of that particular package.

For more infomation >> Introduction to SAS for Windows. Part 4. Procedures and results capture - Duration: 27:10.

-------------------------------------------

Bob Cornuke - Search for the Temple 2018 - Duration: 28:30.

For more infomation >> Bob Cornuke - Search for the Temple 2018 - Duration: 28:30.

-------------------------------------------

Kids Learning Fruit Video! | Kids youtube channels, Videos for babies - Duration: 13:38.

Hey guys its Sally! And welcome back to the magical Sugar Snap Kingdom!

Today I thought it would be fun if we colored in some fruit together!

If you haven't already, don't forget to click the subscribe

button to become an offical member of the Sugar Snap Club!

I upload six new videos a week

Tuesday through to Sunday!

So don't forget to hit the notification bell as well!

In the description bellow there is a link

Where you can download all of the fruit templates I'm painting in today

Then we can paint together how fun!

Alright lets see what colors we're going to be using today...

So we have red, green, white, black, brown and yellow...

I also have a little paint brush

And a cup of water...

to clean my brush with...

Ok, so the first picture we're going to be coloring in is an apple!...

Apples are really sweet and crispy...

When you bite into them they have a loud crunch!

Apples can be red or green, but for today I'm going to be painting my apple red!...

Ok..Lets start painting!...

And we're done!

Apple....A.P.P.L.E....Apple

Ok guys...Next up, I'm going to be coloring in a Banana!

Bananas are really sweet and creamy!...There super soft, like natures custard!

Do you know what color a banana is?...

Thats right yellow!...

Lets grab some yellow and start painting!

And our banana is done!

Banana...B.A.N.A.N.A...Banana!

Ok next up I'm going to be painting in an Orange!

Oranges are really sweet and sour, and you can squeeze them to make orange juice!

It looks like we don't have any orange paint...

I Think we're going to have to make it

To make orange we're going to need to mix red and yellow...

And presto!...We have orange!

Ok, lets start painting!

And our Orange is done!

Orange...O.R.A.N.G.E...Orange!

Alrighty, next we're going to be painting in a Kiwi!

Kiwis are a peculiar kind of fruit

They have a fuzzy outer coat, and inside they're bright green...

But they taste super sweet!

Alright, lets start painting!

And our Kiwi is...Done!

Kiwi...K.I.W.I...Kiwi!

Ok guys, the last fruit we'r going to be painting in is a peach!

Peaches are one of my favourite fruit! I could eat them almost everyday!

But my favourite way of eating them is when they are in a tart! Yummy!

It looks like we don't have a peach color...

I think we're going to have to make it ourselves!

To make a peach color we'r going to need to mix, red, white and yellow!

And look at that! We have a peach color guys!

Ok! Lets start painting!

And we're done guys!

Peach...P.E.A.C.H...Peach!

Wow! Look at all the fruit we colored in today guys!

If you colored in some fruit as well, I would absolutely love to see your creations!

Share them with me on instagram using the hashtag #sugarsnaptoys

Well guys that is it for me today

If you likes this video please give it a thumbs up

and subscribe for more fun videos like this

And as always I hope you are safe, happy and loved!

Till next time, bye guys :)

For more infomation >> Kids Learning Fruit Video! | Kids youtube channels, Videos for babies - Duration: 13:38.

-------------------------------------------

Wixen Music Publishing Files Lawsuit Against Spotify for $1.6 Billion - Duration: 0:59.

For more infomation >> Wixen Music Publishing Files Lawsuit Against Spotify for $1.6 Billion - Duration: 0:59.

-------------------------------------------

Cheap power buffer for Piko G-scale BR80 - Duration: 1:53.

For more infomation >> Cheap power buffer for Piko G-scale BR80 - Duration: 1:53.

-------------------------------------------

Introduction to SAS for Windows. Part 3: Data manipulation - Duration: 8:17.

Welcome to part 3 of the tutorial on the SAS system for windows. In this video we

will cover additional data manipulations in the Editor window.

Once variables are defined using an input statement

you can perform calculations with them.

SAS uses the Fortran or basic notations for calculations. The plus sign is addition,

Minus sign subtraction, Forward slash is division, an Asterisk is multiplication,

Two asterisks is power, Round brackets denote the order of calculation, and SAS

has an entire library of functions that can be called. Some of the common ones

you may use are the natural log or log to the base e function, the log to the

base 10 function, the exponential function, and so forth.

For example, perhaps we wanted to convert the 100-seed weight into milligrams instead of grams.

To do this we define a new variable name and indicate the

calculation to make. For the weight in milligrams I'll use the variable name

WTMG

and indicate using equal sign what calculation to perform to generate the

WTMG variable. Once I have defined the WT100 variable in the Input statement

I can then perform calculations with it. So the WTMG variable will be calculated as

WT100 times a thousand. So now in addition to three columns, the electronic data set

called First will contain a fourth column which will be called WTMG which

will be the values of the hundred seed weights in milligrams.

If a calculation can't be performed such as division by zero SAS, will insert the missing value

code for the result. The default code is a single period with no number.

SAS will also display this within an analysis whenever a calculation is not possible.

Following creation of the dataset First we could create many other data sets.

For instance, you may have a sequence of experiments. Each could be entered as a

separate data set and the series combined within the SAS analysis.

We can also begin with electronic data set and do further manipulation with it.

To illustrate, I'll create a second data set which I will call Second.

Using the Set command

I'll begin with the data set called First. If more than one data sets

are listed in a Set command, SAS will combine them into one large matrix by placing

them on top of each other. I can also create additional variables. In this case

I could create the natural log of 100 seed weight. I'll call it LNWT100.

The log function in SAS is the natural log. If you want the log to the base 10

you have to call the log10 function.

So in this case I would have created two additional variables, one which is the

natural log of the 100-seed weight, and the other which is the log to the base 10

of 100 seed weight. I don't need to create a new data set to be able to do

these calculations. I could have included it as part of the other calculations

that were going on after the input line when I created the First data set.

But I was placing it here for illustration purposes.

We can also parse a dataset.

For example, perhaps only wanted to analyze the sunflower values.

I could remove the values for corn from the data set using an IF statement.

So now I have two data sets, the original one with all my values and that I've

called First, and the second one which now only has the values for sunflower.

Note that the command lines are not case-sensitive.

I can use

so both of these statements would be treated exactly the same.

The only situation where case sensitivity is important is when you have values for an

alphanumeric variable. Consider three possible ways of typing corn:

corn, all lowercase, CORN, all uppercase and a capital Corn.

For an alpha numeric variable value SAS would treat these as three different values for the

Species variable. They would not be considered the same. So if you're dealing with

alphanumeric variables make sure you don't have case alterations going on in the

dataset. Sometimes these appear when you're bringing datasets in from different sources.

In a spreadsheet go in and block the data region and convert the

case to be all upper or all lower, and that way you don't have case issues

going on within your data set. Such case changes often occur when you're bringing

in data from other researchers, or more typically that I've seen, if you're

dealing with data from different years.

You can also do other types of IF calculations.

For example, this IF statement

would eliminate from the data set all replications greater than five.

I'll remove these illustration statements.

In some analyses you may need

to combine data from the same experimental units. For example if you

had sent samples to another lab and they recorded the percent protein and calcium

in each sample you don't have to spend time trying to merge the data in a

spreadsheet. So long as there is one unique variable in common,

perhaps a plot number or sample code, then you can have SAS merge the values for you.

Read in each of the data sets as separate data set and use the Merge

command to bring them together.

So in this example set of code I've had two datasets

one called Mine one called Lab

and there is a common variable in each called sample ID. What this

will do is take the two datasets, merge them using sample ID as the common value

and it would then be able to take each sample and align the values

for the two sets of data and bring them together as one larger one.

That's another powerful tool that the SAS program provides for bringing data together.

So I'll now return to my earlier example where I'm creating this data set called Second

beginning with the First data set and calculating two additional variables,

the natural log of the hundred seed weight, and the log of the base 10

of 100 seed weight.

To ensure SAS completes the series of steps before going further

we need to insert a Run statement.

Always remember to finish lines with a semicolon.

If you're changing a title you would require a Run statement before

the change in title.

If you're doing a complex series of analyses, by inserting

a Run statement after each phase this ensures that SAS completes the task

before starting the next. The SAS software is designed to optimize usage

of the computer time and so in complex analysis it may proceed to later steps

and perform some of those while it is waiting for an earlier computation to

finish. If you don't force it to complete sections using the Run

statement you may find results of a later step intertwined within the

results of an earlier step.

This concludes part 3 of the tutorial.

In part 4 we will cover some basic procedures and how to capture results of an analysis.

Không có nhận xét nào:

Đăng nhận xét