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 haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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