Hello There, Guest!  

[OBG] Genetic and Environmental Determinants of IQ in Black, White, and Hispanic Amer

#45
(2014-Sep-10, 01:12:35)menghu1001 Wrote:
(2014-Sep-09, 21:25:33)Dalliard Wrote: The syntax should be ok. What's the specific problem you're having?


Remember your blog post on race-ACE interaction on CNLSY79 ? When I use your syntax, R stops at the beginning and says the variable C0000100 can't be found. That's nonsense because saw it in your data (the one you sent me few months ago). When I use the syntax John gave me, it works better:

rm(list=ls(all=TRUE))
library(NlsyLinks)
filePathOutcomes <-'c:\\Users\\John\\Desktop\\CNLSYALL\\CNLSYALLS10312013PLUSresbyyear3.csv'
dsOutcomes <- ReadCsvNlsy79Gen2(filePathOutcomes)
dsOutcomes <- RenameNlsyColumn(dsOutcomes, "C0005300", "Race")
dsOutcomesSubset <- dsOutcomes
dsOutcomesSubset <- dsOutcomes[dsOutcomes$Race==3, ]
dsLinks <- Links79PairExpanded
dsDouble <- CreatePairLinksDoubleEntered(outcomeDataset=dsOutcomesSubset, linksPairDataset=dsLinks, outcomeNames=c("RC94res"))
ace <- AceUnivariate( method="DeFriesFulkerMethod3", dataSet=dsDouble, oName_1="RC94res_1", oName_2="RC94res_2" )
ace
GetDetails(ace)
summary(GetDetails(ace))

But I have a message when I arrive at this point :

ace <- AceUnivariate( method="DeFriesFulkerMethod3", dataSet=dsDouble, oName_1="RC94res_1", oName_2="RC94res_2" )

unused argument(s) (oName_1 = "RC94res_1", oName_2 = "RC94res_2")

And this, is curious, because the two variables exist in the data. In general, I don't use the data in SPSS format, but rather, the .csv file you and John you gave me before. This package works for him and you, but not with me.


I tested my syntax again, and it works without problems for me. This is what I did:

1) Used the racially disaggregated SPSS files I sent you on 3/19/2014.

2) Saved the SPSS files as .csv.

3) Used the syntax included in the Excel file in John's latest post above.

Just change the file path, and it should work. I'm using OS X, the path formatting may be a bit different in Windows. Here's the syntax:

rm(list=ls(all=TRUE))
require(NlsyLinks)
dsLinking <- subset (Links79Pair, RelationshipPath=="Gen2Siblings")
filePathOutcomes <-'/Users/d/Desktop/blacks.csv'
dsOutcomes <- ReadCsvNlsy79Gen2(filePathOutcomes)
dsSingle <- CreatePairLinksSingleEntered (outcomeDataset=dsOutcomes, linksPairDataset=dsLinking, outcomeNames= c('DSB_AGE_7'))
oName_1 <-"DSB_AGE_7_1" #Stands for Outcome1
oName_2 <-"DSB_AGE_7_2" #Stands for Outcome2
dsGroupSummary <-RGroupSummary(dsSingle, oName_1, oName_2)
dsGroupSummary
dsClean <-CleanSemAceDataset(dsDirty=dsSingle, dsGroupSummary, oName_1, oName_2)
ace <-AceLavaanGroup(dsClean)
ace
 Reply
 
Messages In This Thread
[OBG] Genetic and Environmental Determinants of IQ in Black, White, and Hispanic Amer - by Chuck - 2014-Jul-14, 06:25:48
RE: Genetic and Environmental Determinants of IQ in Black, White, and Hispanic Americans - by Emil - 2014-Jul-14, 10:45:09
RE: Genetic and Environmental Determinants of IQ in Black, White, and Hispanic Americans - by Meng Hu - 2014-Jul-14, 19:57:08
RE: Genetic and Environmental Determinants of IQ in Black, White, and Hispanic Americans - by Chuck - 2014-Jul-19, 22:37:13
RE: Genetic and Environmental Determinants of IQ in Black, White, and Hispanic Americans - by Chuck - 2014-Aug-05, 22:39:40
RE: Genetic and Environmental Determinants of IQ in Black, White, and Hispanic Americans - by Emil - 2014-Aug-07, 19:25:59
RE: Genetic and Environmental Determinants of IQ in Black, White, and Hispanic Americans - by Chuck - 2014-Aug-07, 22:27:33
RE: Genetic and Environmental Determinants of IQ in Black, White, and Hispanic Americans - by Chuck - 2014-Aug-08, 00:32:10
RE: Genetic and Environmental Determinants of IQ in Black, White, and Hispanic Americans - by Chuck - 2014-Aug-19, 03:11:37
RE: Genetic and Environmental Determinants of IQ in Black, White, and Hispanic Americans - by Emil - 2014-Aug-08, 00:29:43
RE: Genetic and Environmental Determinants of IQ in Black, White, and Hispanic Americans - by Emil - 2014-Aug-19, 09:36:33
RE: Genetic and Environmental Determinants of IQ in Black, White, and Hispanic Americans - by Chuck - 2014-Aug-19, 19:22:42
RE: Genetic and Environmental Determinants of IQ in Black, White, and Hispanic Americans - by Duxide - 2014-Aug-19, 19:33:48
RE: Genetic and Environmental Determinants of IQ in Black, White, and Hispanic Americans - by Chuck - 2014-Aug-19, 20:27:44
RE: Genetic and Environmental Determinants of IQ in Black, White, and Hispanic Americans - by Duxide - 2014-Aug-19, 20:56:25
RE: Genetic and Environmental Determinants of IQ in Black, White, and Hispanic Americans - by Emil - 2014-Aug-19, 21:23:08
RE: Genetic and Environmental Determinants of IQ - by Meng Hu - 2014-Aug-21, 01:11:58
RE: Genetic and Environmental Determinants of IQ in Black, White, and Hispanic Americans - by Chuck - 2014-Aug-21, 01:25:25
RE: Genetic and Environmental Determinants of IQ in Black, White, and Hispanic Americans - by Meng Hu - 2014-Aug-21, 02:29:13
RE: Genetic and Environmental Determinants of IQ - by Dalliard - 2014-Aug-21, 19:58:04
RE: Genetic and Environmental Determinants of IQ - by Meng Hu - 2014-Aug-21, 21:11:34
RE: Genetic and Environmental Determinants of IQ in Black, White, and Hispanic Americans - by Chuck - 2014-Aug-21, 23:43:11
RE: Genetic and Environmental Determinants of IQ in Black, White, and Hispanic Americans - by Duxide - 2014-Aug-21, 22:57:35
RE: Genetic and Environmental Determinants of IQ - by Dalliard - 2014-Aug-21, 23:45:22
RE: Genetic and Environmental Determinants of IQ - by Meng Hu - 2014-Aug-22, 04:19:42
RE: Genetic and Environmental Determinants of IQ in Black, White, and Hispanic Americans - by Chuck - 2014-Aug-22, 04:25:14
RE: [OBG] Genetic and Environmental Determinants of IQ in Black, White, and Hispanic Amer - by Meng Hu - 2014-Sep-02, 23:40:26
RE: [OBG] Genetic and Environmental Determinants of IQ in Black, White, and Hispanic Amer - by Chuck - 2014-Sep-03, 02:48:14
RE: [OBG] Genetic and Environmental Determinants of IQ in Black, White, and Hispanic Amer - by Meng Hu - 2014-Sep-07, 01:49:42
RE: [OBG] Genetic and Environmental Determinants of IQ in Black, White, and Hispanic Amer - by Chuck - 2014-Sep-07, 19:35:52
RE: [OBG] Genetic and Environmental Determinants of IQ in Black, White, and Hispanic Amer - by Duxide - 2014-Sep-08, 13:02:31
RE: [OBG] Genetic and Environmental Determinants of IQ in Black, White, and Hispanic Amer - by Chuck - 2014-Sep-08, 15:16:27
RE: [OBG] Genetic and Environmental Determinants of IQ in Black, White, and Hispanic Amer - by Emil - 2014-Sep-07, 21:44:22
RE: [OBG] Genetic and Environmental Determinants of IQ in Black, White, and Hispanic Amer - by Chuck - 2014-Sep-07, 23:34:54
RE: [OBG] Genetic and Environmental Determinants of IQ in Black, White, and Hispanic Amer - by Emil - 2014-Sep-07, 23:51:24
RE: [OBG] Genetic and Environmental Determinants of IQ in Black, White, and Hispanic Amer - by Meng Hu - 2014-Sep-08, 00:21:20
RE: [OBG] Genetic and Environmental Determinants of IQ in Black, White, and Hispanic Amer - by Emil - 2014-Sep-08, 00:36:38
RE: [OBG] Genetic and Environmental Determinants of IQ in Black, White, and Hispanic Amer - by Emil - 2014-Sep-08, 15:04:06
RE: [OBG] Genetic and Environmental Determinants of IQ in Black, White, and Hispanic Amer - by Duxide - 2014-Sep-08, 17:48:27
RE: [OBG] Genetic and Environmental Determinants of IQ in Black, White, and Hispanic Amer - by Duxide - 2014-Sep-08, 18:01:30
RE: [OBG] Genetic and Environmental Determinants of IQ in Black, White, and Hispanic Amer - by Chuck - 2014-Sep-08, 19:44:52
RE: [OBG] Genetic and Environmental Determinants of IQ in Black, White, and Hispanic Amer - by Duxide - 2014-Sep-08, 19:48:12
RE: [OBG] Genetic and Environmental Determinants of IQ in Black, White, and Hispanic Amer - by Chuck - 2014-Sep-11, 23:19:01
RE: [OBG] Genetic and Environmental Determinants of IQ in Black, White, and Hispanic Amer - by Duxide - 2014-Sep-12, 10:53:22
RE: [OBG] Genetic and Environmental Determinants of IQ - by Dalliard - 2014-Sep-09, 21:25:33
RE: [OBG] Genetic and Environmental Determinants of IQ in Black, White, and Hispanic Amer - by Meng Hu - 2014-Sep-10, 01:12:35
RE: [OBG] Genetic and Environmental Determinants of IQ - by Dalliard - 2014-Sep-11, 18:27:00
RE: [OBG] Genetic and Environmental Determinants of IQ in Black, White, and Hispanic Amer - by Emil - 2014-Sep-11, 23:29:03
RE: [OBG] Genetic and Environmental Determinants of IQ in Black, White, and Hispanic Amer - by Chuck - 2014-Sep-11, 23:35:43
RE: [OBG] Genetic and Environmental Determinants of IQ in Black, White, and Hispanic Amer - by Emil - 2014-Sep-11, 23:44:40
RE: [OBG] Genetic and Environmental Determinants of IQ in Black, White, and Hispanic Amer - by Meng Hu - 2014-Sep-12, 01:30:14
RE: [OBG] Genetic and Environmental Determinants of IQ in Black, White, and Hispanic Amer - by Emil - 2014-Sep-12, 02:26:19
RE: [OBG] Genetic and Environmental Determinants of IQ in Black, White, and Hispanic Amer - by Duxide - 2014-Sep-12, 22:59:24
RE: [OBG] Genetic and Environmental Determinants of IQ in Black, White, and Hispanic Amer - by Chuck - 2014-Sep-14, 21:11:40
 
Forum Jump:

Users browsing this thread: 1 Guest(s)