You are here

Group Exercise: Descriptive Statistics

Compute central tendency and variability for a dependent variable by ethnic identity and interpret the results. Copy your R code below your interpretation in a comment to this page.

Comments

> library(psych)

> describeBy(V161345,V161309)

Descriptive statistics by group
group: 1
vars n mean sd median trimmed mad min max range skew kurtosis se
X1 1 442 2.54 0.65 3 2.66 0 1 3 2 -1.09 0.01 0.03
---------------------------------------------------------------
group: 2
vars n mean sd median trimmed mad min max range skew kurtosis se
X1 1 3747 2.53 0.65 3 2.65 0 1 3 2 -1.06 -0.03 0.01
>

INTERPRETATION:
There is no central Trendency or variation in self-identification as a feminist amongst non-Latinos and Latinos.

> describeBy(V161231,V161309)

Descriptive statistics by group
group: 1
vars n mean sd median trimmed mad min max range skew
X1 1 442 1.56 0.77 1 1.45 0 1 3 2 0.93
kurtosis se
X1 -0.72 0.04
----------------------------------------------
group: 2
vars n mean sd median trimmed mad min max range skew
X1 1 3750 1.6 0.78 1 1.5 0 1 3 2 0.82
kurtosis se
X1 -0.88 0.01
Interpretation: There is no central tendency or variation in Latinos and non-Latinos who are for or against same sex marriage.

> describeBy(V161510,V161309)

Descriptive statistics by group
group: 1
vars n mean sd median trimmed mad min max range skew kurtosis se
X1 1 430 3.4 1.17 3 3.44 1.48 1 5 4 -0.1 -0.82 0.06
-------------------------------------------------------------------------------
group: 2
vars n mean sd median trimmed mad min max range skew kurtosis se
X1 1 3711 3.62 1.17 4 3.69 1.48 1 5 4 -0.29 -0.93 0.02
Interpretation:
There is more variability with non-Latinos then Latinos when it comes to "women putting men on a tight leash."
This may have to do with "Latino" being a specific identity, while non-Latinos covers many racial categories

> library(psych)
> ANES2016<-read.csv("http://www.shortell.nyc/online/files/anes_timeseries_2016.csv")
> View(ANES2016)
> attach(ANES2016)
> describeBy(V161138a,V161309)

Descriptive statistics by group
group: 1
vars n mean sd median trimmed mad min max range skew kurtosis se
X1 1 334 1.33 0.47 1 1.29 0 1 2 1 0.71 -1.5 0.03
-------------------------------------------------------
group: 2
vars n mean sd median trimmed mad min max range skew kurtosis
X1 1 3116 1.28 0.45 1 1.22 0 1 2 1 1.01 -0.99
se
X1 0.01

according to the data ethnic background on latino/a shows that there is a more significance in the income gap.

> describeBy(V161197, V161309)

Descriptive statistics by group
group: 1
vars n mean sd median trimmed mad min max range skew kurtosis se
X1 1 449 1.56 0.82 1 1.4 0 1 4 3 1.45 1.37 0.04
------------------------------------------------------------
group: 2
vars n mean sd median trimmed mad min max range skew kurtosis se
X1 1 3803 1.45 0.76 1 1.28 0 1 4 3 1.75 2.55 0.01

Latino's believe that it is important to speak English in the US.
Non-Latino's believe that it is important to speak English in the US by 0.11%. Standard Deviation tells us that Latinos have more variation in their answers than Non-Latinos by 0.06%.

library(psych)
> describeBy(V162230x,V161309)

Descriptive statistics by group
group: 1
vars n mean sd median trimmed mad min max range skew kurtosis se
X1 1 371 3.19 1.54 4 3.14 1.48 1 7 6 0.04 -0.52 0.08
-------------------------------------------------------------------------------
group: 2
vars n mean sd median trimmed mad min max range skew kurtosis se
X1 1 3224 3.25 1.36 4 3.31 0 1 7 6 -0.36 -0.44 0.02
>

Does being spanish/latino affect your views of sending troops to fight ISIS?
> library(psych)
> describeBy(V161213x, V161309)

Descriptive statistics by group
group: 1
vars n mean sd median trimmed mad min max range skew
X1 1 448 4.17 2.03 4 4.21 2.97 1 7 6 -0.12
kurtosis se
X1 -1.11 0.1
----------------------------------------------
group: 2
vars n mean sd median trimmed mad min max range skew
X1 1 3774 3.91 2.04 4 3.89 2.97 1 7 6 0.11
kurtosis se
X1 -1.24 0.03

According to the data, there is not much variability between people who identify as latino/spanish and those who don't on sending troops to fight isis. The perceptions on vary by .17%