R Dataset / Package DAAG / socsupport
Attachment | Size |
---|---|
dataset-30455.csv | 11.38 KB |
Documentation |
---|
On this Picostat.com statistics page, you will find information about the socsupport data set which pertains to Social Support Data. The socsupport data set is found in the DAAG R package. You can load the socsupport data set in R by issuing the following command at the console data("socsupport"). This will load the data into a variable called socsupport. If R says the socsupport data set is not found, you can try installing the package by issuing this command install.packages("DAAG") and then attempt to reload the data. If you need to download R, you can go to the R project website. You can download a CSV (comma separated values) version of the socsupport R data set. The size of this file is about 11,652 bytes. Social Support DataDescriptionData from a survey on social and other kinds of support. Usagesocsupport FormatThis data frame contains the following columns:
SourceMelissa Manning, Psychology, Australian National University Examplesattach(socsupport)not.na <- apply(socsupport[,9:19], 1, function(x)!any(is.na(x))) ss.pr1 <- princomp(as.matrix(socsupport[not.na, 9:19]), cor=TRUE) pairs(ss.pr1$scores[,1:3]) sort(-ss.pr1$scores[,1]) # Minus the largest value appears first pause()not.na[36] <- FALSE ss.pr <- princomp(as.matrix(socsupport[not.na, 9:19]), cor=TRUE) summary(ss.pr) # Examine the contribution of the components pause()# We now regress BDI on the first six principal components: ss.lm <- lm(BDI[not.na] ~ ss.pr$scores[, 1:6], data=socsupport) summary(ss.lm)$coef pause()ss.pr$loadings[,1] plot(BDI[not.na] ~ ss.pr$scores[ ,1], col=as.numeric(gender), pch=as.numeric(gender), xlab ="1st principal component", ylab="BDI") topleft <- par()$usr[c(1,4)] legend(topleft[1], topleft[2], col=1:2, pch=1:2, legend=levels(gender)) -- Dataset imported from https://www.r-project.org. |
Recent Queries For This Dataset |
---|
No queries made on this dataset yet. |
Title | Authored on | Content type |
---|---|---|
R Dataset / Package wooldridge / minwage | March 9, 2018 - 1:06 PM | Dataset |
R Dataset / Package Stat2Data / HearingTest | March 9, 2018 - 1:06 PM | Dataset |
R Dataset / Package HSAUR / students | March 9, 2018 - 1:06 PM | Dataset |
R Dataset / Package boot / coal | March 9, 2018 - 1:06 PM | Dataset |
R Dataset / Package HistData / CushnyPeeblesN | March 9, 2018 - 1:06 PM | Dataset |