You are on page 1of 14

Variable name: age~CATEGORICAL

Variable label: Age in years

Categories:

Variable name: income~CATEGORICAL

Variable label: Household income in thousands

Categories:

Variable name: internet~CATEGORICAL ?

Variable label: Is there Internet at home?

Categories:

"0 = No"
""1 = Yes

( )spending habits of customers

[Variable longten] Long distance over tenure,

[Variable tollten] Toll free over tenure,

[Variable equipten] Equipment over tenure,

[Variable cardten] Calling card over tenure,

[Variable wireten] Wireless over tenure,

, .

MANOVA , .

.1 ? ?

.2 , ?

.3 ?

.4 : ?

.5 ?

.6 ?
' finish work' SPSS .1
R compile .2
install.packages(c("pastecs", "car", "ggplot2", "mvoutlier" ,"mvnormtest", .3
"multcomp", "foreign"))
library("pastecs"); library("car"); library("ggplot2"); library("mvoutlier"); .4
library("mvnormtest"); library("multcomp"); library("foreign")
file.choose() : .3
'finish work' .4
dataset <- read.spss("C:\\ .....sav", to.data.frame=TRUE) : .5

View(dataset) : .6
: 4- 3 : .7
multivariate analysis - MANOVA
.ANOVAs of variance (MANOVA)
attach(dataset) : .8
names(dataset) : 9
: .10
plot(ageCATEGORICAL, longten, xlab = "Age groups", ylab ="Long distance over tenure")
. . WORD-
: .11
scatter.smooth(ageCATEGORICAL, longten)
. . WORD-
depvar . .MANOVA , block- .12
:dependent variables
depvar <- cbind(longten, tollten, equipten, cardten, wireten)
:MANOVA .13
TOTAL_model <- manova(depvar ~ ageCATEGORICAL + incomeCATEGORICAL + internetCATEGORICAL, data = dataset)
summary(TOTAL_model)
summary.aov(TOTAL_model)

: .14
:
)effect_of_age <- aov(depvar ~ ageCATEGORICAL, data = dataset, na.action = na.exclude
)summary(effect_of_age
.
Deeplearning: .15
)model_age <- aov(longten ~ ageCATEGORICAL, data = dataset, na.action = na.exclude
)summary(model_age
))'posthocs <- glht(model_age, linfct = mcp(ageCATEGORICAL = 'Tukey
)summary(posthocs

-
: , 5 .
( ).

!!!
: , .
. " .

:
.1 R.
:
))"install.packages(c("pastecs", "car", "ggplot2", "mvoutlier" ,"mvnormtest", "multcomp", "foreign
ENTER CLOUD .OK
- :
)"library("pastecs"); library("car"); library("ggplot2"); library("mvoutlier"); library("mvnormtest"); library("multcomp"); library("foreign
ENTER

.2 SPSS R -
SPSS .
SPSS file.choose() : R ENTER SPSS . !!!
dataset <- read.spss("C:\\ .....sav", to.data.frame=TRUE) : SPSS .
) View(dataset SPSS : R
names(dataset) :

R attach(dataset) :

.3 ( 1)
: LONGTEN
)"plot(ageCATEGORICAL, longten, xlab = "Age groups", ylab ="Long distance over tenure

:
( -).

:
.4 :
5 depvar <- cbind(longten, tollten, equipten, cardten, wireten) :
CBIND .
- :
)TOTAL_model <- manova(depvar ~ ageCATEGORICAL + incomeCATEGORICAL + internetCATEGORICAL, data = dataset
ENTER

)summary(TOTAL_model


.
)(F=74.12 ) (F=6.29 summary.aov(TOTAL_model) :
LONGTEN )(F=93.38
)(F=7.80

DEEPLEARNING .5 :

)model_age <- aov(longten ~ ageCATEGORICAL, data = dataset, na.action = na.exclude


)summary(model_age
))'posthocs <- glht(model_age, linfct = mcp(ageCATEGORICAL = 'Tukey
)summary(posthocs
:
LONGTEN .
37 55 ( 36 T 2- .)7.59=T
56 .)13.16=T( 36
56- - 37 )7.86=T( 55

: 56.

You might also like