What criterion is being used to determine best estimates

Assignment Help Programming Languages
Reference no: EM13304629

a) Open SAS. In the editor window type the commands below and save this as ass3.sas in your H:\stats301\A3 directory (if this doesn't exist then create it!):

/* This is the STATS301 start up file */

*Set up title on line 1;

TITLE1 "STATS 301: &sysuserid";

*Specify SAS library for storing permanent SAS datasets; LIBNAME stats301 "H:\stats301\A3";

The TITLE1 command his will ensure that your user ID is on all relevant output - if it is not present students will receive NO MARKS for all work. The LIBNAME statement allows you to save permanent copies of ay data sets you create.

In the following we wish to take you from a specific task to a general solution by identifying the general features that can be transferred across similar enquiries. In particular, we want to automate the production of ‘nice' (.rtf) output from these enquiries via the use of SAS MACROs.

Q1

(a) In the following, we will be re-visiting the data set Stats20x that you investigated in assignment 1. The following code can be use to produce a table of the sample size (n), average (mean) and standard deviation (s) for a numerical variable (in this example exam score) for each level of a classification/factor (in this case whether the student passed the assignment - pass_assign=yes or no). Run the code below to reproduce the outputted table that you see below it.

Code:

PROC TABULATE DATA = stats20x FORMAT=6.2;
CLASS pass_assign;
VAR Exam;
TABLE pass_assign all ,Exam*(N='sample size' Mean='mean' std='std dev');
TITLE 'Pass assignment versus Exam';
RUN;

Output:

2086_Statistical Programming and Modelling using SAS.png

(b) Run this code again except this time make sure you are creating an .rtf file with the in an appropriate folder with this table in it.

Hint: ODS. You should have a suitably named .rtf file that has the following chart placed in it:

67_Statistical Programming and Modelling using SAS1.png

(c) What we would like to do is create similar tables in an .rtf file that produces the same statistics for any numerical value against each level of a know classification/factor from any data set we wish to inspect.

Use MACRO variables to generalise the example above.

To illustrate: in the above code we may decide that the variable Exam can change to any other numerical (e.g. the student test score). So we may generalise this numerical variable -let's call it, ay, y. So we generalise the above code by:

%LET y=Exam; ** we could change this to any other numerical variable e.g. test;

PROC TABULATE DATA = stats20x FORMAT=6.2;
CLASS pass_assign;
VAR &y;
TABLE pass_assign all ,&y*(N='sample size' Mean='mean' std='std dev');
TITLE 'Pass assignment versus Exam';
RUN;

Your task is to create macro variables that allow you to generalise this ODS RTF output to any general data set (found in a suitably named folder) that produces output like the above on a numerical variable for each level of a classification/factor variable. It will need a suitable title.

(d) Hence, create a SAS MACRO that allows you produce the same sort of tables in .rtf format. Produce the MACRO code and illustrate its use by producing 3-4 similar tables for various combinations of numerical and classification variable (One example could be, say, Test versus gender).

Q2

Study the following website on non-linear modelling (as well as the help file for PROC NLIN in SAS);

(a) In no more than one or two paragraphs, and in your own words, (no cut and pasting please) describe how a non-linear model differs from a linear model.

(b) In no more than one or two paragraphs, and in your own words, (no cut and pasting please) describe which components of a non-linear model are the same as for a linear model.

(c) Hence, what criterion is being used to determine the ‘best' estimates?


Attachment:- stats20x.rar

Reference no: EM13304629

Questions Cloud

What does alan believe the inflation rate will be over : An investment offers a 17 percent total return over the coming year. alan wingspan think shte total real return on this investment will be only 11 percent. what does alan believe the inflation rate will be over the next year?
This research focused on china economic expansion and : This research focused on China's economic expansion and increasing trade surplus with the United States which ongoing debate on the appreciation of RMD and its impact on ETF not only among USD but also world currency included in the domestic finance ..
Compute the equivalent units of production : Compute the equivalent units of production for the first department for April, assuming the company uses the weighted-average method of accounting for units and costs.
Explain why a secant touches a circle at one point : 1. The three isometric axes are: vertical and two axes 30 degrees from horizontal. 2. Oblique projection is a perspective projection method. 3. Isometric view represents a parallel projection method.
What criterion is being used to determine best estimates : What we would like to do is create similar tables in an .rtf file that produces the same statistics for any numerical value against each level of a know classification/factor from any data set we wish to inspect.
Prepare a schedule of cost of goods manufactured : The following information is available for Sappy's Surgical Shears for the fiscal year ending December 31, 20XX.
Determine the amount of overhead that is underapplied : Bubba's Crawfish Processing Company uses a traditional overhead allocation based on direct labor hours. For the current year overhead is estimated at $2,250,000 and direct labor hours are budgeted at 415,000 hours.
Determine what is the convective acceleration midway : A nozzle is shaped so that the velocity of flow varies linearly from base to tip. Assuming quasi-one-dimensional flow, what is the convective acceleration midway if v-base= 1 ft/sec, v-tip = 4 ft/sec, and L=18"
Managing diversity and ethical hrm : Managing Diversity and Ethical HRM

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a procedure should named get_frequencie

Write a procedure should named Get_frequencies that constructs a character frequency table

  Write the program by declaring one-dimensional array

Write the program by declaring one-dimensional array which could be used to hold data for grades (int type) of 10 students. The program will prompt user for numeric grades.

  Write iterative program which finds largest number

Write the iterative program which finds largest number of McNuggets which cannot be bought in exact quantity. Your program must print the answer in the following format.

  Application development and programming languages

Compare and contrast object-oriented languages (Java, C++, C#, etc.) to imperative languages (C, Pascal, etc.) in terms of:

  Design a driver to test implementation of program

Design a driver to test your implementation. Add various random elements to heap, and then remove & display smallest element.

  Defining method dashedline with one parameter

Write a definition of method dashedLine, with one parameter, an int .

  Explaining box properties available in css

Browse the Web and choose a site that could benefit from box properties available in CSS. Make a screen capture of the page and indicate how you would change border and spacing properties.

  Explain the project manuals for python and java

Overview: Understand TCP socket programing by developing a (multi-threaded) Web server. You may use Python, Java, or C++ as the programing language. The project manuals for Python and Java are attached to this document, which have provided partial..

  Explaining object hierarchy in object-oriented programming

Study the concept of inheritance and the object hierarchy in object-oriented programming, and write a paper comparing these concepts with the concept of inheritence.

  Develop html5 pages themed on manchester

Design and develop three HTML5 pages themed on Manchester. The pages should be optimised for delivery on a tablet.

  Op-codes-add microcode to overlapping address ranges

Bmov a,b,n. This Block Move instruction moves n bytes of data from location a in memory to location b. Deal correctly with case of overlapping address ranges.

  Develop the payroll program to enter two double values

Develop the payroll program named CalcPay which permits the user to enter two double values namely hours worked and hourly rate.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd