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. Try to load the socsupport data set in R by issuing the following command at the console data("socsupport"). This may 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 with library("DAAG") followed by data("socsupport"). Perhaps strangley, if R gives you no output after entering a command, it means the command succeeded. If it succeeded you can see the data by typing socsupport at the command-line which should display the entire dataset. 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. |
Picostat Manual |
---|
How To Register With a Username
How To Register With Google Single Sign On (SSO)
How To Login With a Username and Password
How To Login With Google Single Sign On (SSO)
How To Import a Dataset
How To Perform Statistical Analysis with Picostat
How To Use Educational Applications with Picostat
|
Recent Queries For This Dataset |
---|
No queries made on this dataset yet. |
Title | Authored on | Content type |
---|---|---|
R Dataset / Package Stat2Data / TwinsLungs | March 9, 2018 - 1:06 PM | Dataset |
R Dataset / Package DAAG / psid1 | March 9, 2018 - 1:06 PM | Dataset |
R Dataset / Package quantreg / gasprice | March 9, 2018 - 1:06 PM | Dataset |
R Dataset / Package datasets / nottem | March 9, 2018 - 1:06 PM | Dataset |
R Dataset / Package DAAG / hills2000 | March 9, 2018 - 1:06 PM | Dataset |