Sunteți pe pagina 1din 5

Aslam -o- alaikum sir, following are the samples which we used for respective techniques GLM = CarSales.

sav and polishing.sav Regression = advert.sav or car sales.sav or polishing.sav Discriminant = bankloan.sav Multiple discrimant = telco.save Logistic regression = bankloan.sav Multiple logistic regression = cereal.sav

Furthermore: In GLM, we open the data car sales, and then delete all the variables from 16 to 26 because all are zscore variables and also delete ln-sales as it is log form of sales, now u have only 14 variables. Now go to analyze > general liner model > univariate, pick sales in thousands as dependent variable, pick only one categorical variable only one at a time in fixed factor (pick Vehicle Type) and drag all scale variable on covariates box. After dragging all variable in their respective boxes, do not change any particulars like model, plots, contrasts and save, just click on options and check on the following Descriptive statistics Estimates of effect size Observed power Parameter estimates Homogeneity tests

After checking all above particulars in option, run the technique and u will get output like this

Between-Subjects Factors Value Label Vehicle type 0 1 Automobile Truck N 115 40

No need to explain its no of observations of independent categorical variable.

Descriptive Statistics Dependent Variable:Sales in thousands Vehicle type Automobile Truck Total Mean 43.47166 81.30085 53.23403 Std. Deviation 50.714203 99.346138 68.404185 N 115 40 155

No need to explain again, here just the descriptives of independent categorical variable.

Levene's Test of Equality of Error Variances Dependent Variable:Sales in thousands F 5.500 df1 1 df2 115 Sig.

.021

Tests the null hypothesis that the error variance of the dependent variable is equal across groups. a. Design: Intercept + engine_s + horsepow + wheelbas + curb_wgt + resale + price + width + length + fuel_cap + mpg + type

Very important table that tells us that whether our data is fulfilling the assumption of GLM or not or you can say that whether there is homogeneity in the data or not. Homogeneity means the variances of left side and right side are equal. Whenever we see the sig value column we know there is always a hypothesis behind that, here h0 = the error variance of dependent variable is equal across the groups of independent variable, here in the above table it is less than 0.05 it means we reject our h0 therefore in this data there is no homogeneity. It is necessary for GLM to have equal variances and sig value of levens always > 0.05 but we can further move if it is even < 0.05 because we eliminate the variables that are insignificant for the analysis in the next table that will affect levens test. After eliminating the variables we will again check the levens test.

Tests of Between-Subjects Effects Dependent Variable:Sales in thousands Type III Sum Source Corrected Model Intercept engine_s horsepow wheelbas curb_wgt resale price width length fuel_cap mpg type Error Total Corrected Total 12227.688 19872.712 9644.486 29824.272 32762.692 50.702 471.630 263.465 1374.525 1124.237 337.585 17668.779 427402.183 1062354.955 653525.841 1 1 1 1 1 1 1 1 1 1 1 1 105 117 116 12227.688 19872.712 9644.486 29824.272 32762.692 50.702 471.630 263.465 1374.525 1124.237 337.585 17668.779 4070.497 3.004 4.882 2.369 7.327 8.049 .012 .116 .065 .338 .276 .083 4.341 .086 .029 .127 .008 .005 .911 .734 .800 .562 .600 .774 .040 .028 .044 .022 .065 .071 .000 .001 .001 .003 .003 .001 .040 3.004 4.882 2.369 7.327 8.049 .012 .116 .065 .338 .276 .083 4.341 .404 .591 .332 .765 .803 .051 .063 .057 .089 .082 .059 .542 of Squares 226123.658
a

Mean df 11 Square 20556.696 F 5.050 Sig. .000

Partial Eta Squared .346

Noncent. Parameter 55.552

Observed Power
b

1.000

a. R Squared = .346 (Adjusted R Squared = .277) b. Computed using alpha = .05

The first row tells us the strength of the model that is 0.346 33.46% names corrected model. In this table first we eleiminate those variables one by one with higer sig value and run the test again and again till all variables will significant, be careful we first eliminate that variable which has the highest sig value like we can see in the above table Resale has 0.911 so we eliminate resale and re run the test and then again eliminate that variable which would have highest sig value. By doing this we will reach at the position at which no variables will be insignificant and then we will see levens again and develop the model equation.

After eliminating all insignificant variables we will get the above table like as follow
Tests of Between-Subjects Effects Dependent Variable:Sales in thousands Type III Sum Source Corrected Model Intercept engine_s horsepow wheelbas curb_wgt type Error Total Corrected Total 36878.300 36175.119 29886.765 113537.595 57253.242 16769.516 480808.713 1159835.051 720586.412 1 1 1 36878.300 36175.119 29886.765 11.428 11.210 9.262 35.185 17.742 5.197 .001 .001 .003 .000 .000 .024 .071 .070 .059 .191 .106 .034 11.428 11.210 9.262 35.185 17.742 5.197 .919 .914 .856 1.000 .987 .620 of Squares 239777.698
a

Mean df 5 Square 47955.540 F 14.861 Sig. .000

Partial Eta Squared .333

Noncent. Parameter 74.306

Observed Power
b

1.000

1 113537.595 1 1 149 155 154 57253.242 16769.516 3226.904

a. R Squared = .333 (Adjusted R Squared = .310) b. Computed using alpha = .05 Now you can see all variables has less than 0.05 sig value, so now we will check levens test again. If still levens test shows heterogeneity then no issue we can move further. Now after that we will develop the GLM model equation with the final table we got.

Parameter Estimates Dependent Variable:Sales in thousands 95% Confidence Interval Std. Parameter Intercept engine_s horsepow wheelbas curb_wgt [type=0] [type=1] B -235.013 33.369 -.509 4.801 -62.650 -31.715 0
b

Lower t -3.089 3.348 -3.043 5.932 -4.212 -2.280 . Sig. .002 .001 .003 .000 .000 .024 . Bound -385.337 13.675 -.839 3.202 -92.040 -59.206 .

Upper Bound -84.689 53.062 -.178 6.400 -33.259 -4.224 .

Partial Eta Squared .060 .070 .059 .191 .106 .034 .

Noncent. Parameter 3.089 3.348 3.043 5.932 4.212 2.280 .

Observed Power
a

Error 76.075 9.966 .167 .809 14.873 13.912 .

.866 .914 .856 1.000 .987 .620 .

a. Computed using alpha = .05 b. This parameter is set to zero because it is redundant.

From the above table we will develop the GLM model equation.

S-ar putea să vă placă și