Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 201867

How do I work with questionaries with a lot of nominal data in R?

$
0
0

I am doing an assignment, which requires me to do an interview. And turn this answers like "Yes", "No", "Maybe" into data and do all basic statistics functions like mean, median, mode, correlation, multiple regression, linear regression, standard deviation, variance, dot plot, pie chart, Poisson distribution, ANOVA Table, Chi-Square, Z table, Fa table?

I have tried to indicate each variable by selecting a separate kind.

library("readr")
library("dplyr")
sma <- read.csv(file="/home/kabir/docs/assignment/stat/data/data.csv", header=TRUE, sep=",")
sma$Smartphone_brand <- as.character(sma$Smartphone_brand)
sma$Smartphone_brand[sma$Check_in_five_minutes == "Yes" ]
brand_causes_problem <- sma$Smartphone_brand[sma$Communication_problem == "Yes" | sma$Headache_problem == "Yes" | sma$Anxiety_problem == "Yes" | sma$Depression_problem == "Yes"]
brand_causes_problem <- unique(brand_causes_problem, na.rm = TRUE)
brand_causes_problem
plot(brand_causes_problem, sma$Age)
plot(sma$Age, sma$Call_amount)
sma$Call_amount[sma$Name == "Kabir Nayeem"]

"I am expected to show the results and compare them in Pie chart and bar chart. "


Viewing all articles
Browse latest Browse all 201867

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>