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

  Program to ask how many games are being purchased

Your program should ask the store clerk how many games are being purchased and calculate a total due (with 6% tax). The total number of games, the discount amount.

  Write program to list all english-math and science teachers

Suppose that input consists of a file of teachers. You are told to write a program to list all English, math, and science teachers. Each teacher can teach only one subject.

  Write program which demands user to enter ten numbers

Write the program which demands user to enter 10 numbers (using an input box) and prints (using a message box) message ‘negative' if number is less than zero.

  Provide unoptimized-optimized prefix using recursive rule

Where the recursive rule uses concatenation of strings, so F2 is "ab", F3 is "aba". Note that the length of Fn is the nth Fibonacci number. Provide unoptimized and optimized ‘prefix' (fail) function for F7.

  Program to compute percentage and final grade for students

Write a program which will permit teacher to compute percentage and final grade for students in a class.

  Write a program to enter the number of apartment units

Write a program that prompts the user to enter the number of apartment units, the rent to occupy all the units, the increase in rent that result in a vacant unit.

  Write a vhdl code for soda vending machine

Write a VHDL code that implements the above soda machine. You have to turn in the following: A state diagram showing the implementation of your design. Clearly show all the states and the conditions on which transitions occur.

  Program to overload addition operator

The class should also provide the following overloaded operator capabilities: Overload the addition operator (+) to add two Polynomials.

  Write an assembly code segment that calls the subroutine

Write an assembly code segment that calls the subroutine New Functionif bits 5 and 6 of PORTD equal 1 and write the same code segment in part (a) using structured assembly constructs.

  Write program using to take input two integers by while loop

Write a program which uses while loops to perform following steps: Prompts user to input two integers: firstNum and secondNum. (firstNum must be less than secondNum).

  Program for vehicle registration department

Consulting firm has narrowed the choice of programming language to Java and C#. Which language do you believe would be more suitable for this application and why?

  Write class which uses string array or arraylist

Write the class which uses string array or arraylist object to holld five students, array to hold five charters student letter grade) and five arrays of doubles each to hold each students set.

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