search for: gam11

Displaying 6 results from an estimated 6 matches for "gam11".

Did you mean: nam11
2010 May 24
1
Path Analysis
...m using: corr = hetcor(dat[,c('intent','exposure','benefit','norms','childBarrier','parentBarrier','knowBenefit','recuse')],use="pairwise.complete.obs")$correlations modMat = matrix(c( 'exposure -> intent', 'gam11',NA, 'benefit -> intent', 'gam12',NA, 'norms -> intent', 'gam13',NA, 'childBarrier -> intent', 'gam14',NA, 'parentBarrier -> intent', 'gam15',NA, 'knowBenefit -> intent', 'gam16',NA, '...
2004 Jan 29
1
Confirmatory Factor Analysis in R? SEM?
...unif(200) x2<-rbinom(200, 20, 0.75) x3<-runif(200) x4<-runif(200) dat<-as.data.frame(x1 =x1, x2 = x2, x3 = x3, x4 = x4) v.c<-cor(dat,use = "complete.obs") ind<-upper.tri(v.c) v.c[ind]<-0 model.dhp<-matrix (c( "x1 -> HWK", "gam11", NA, "x2 -> HWK", "gam21", NA, "x2 -> FI", "gam22", NA, "x3 -> HWK", "gam31", NA, "x3 -> F1", "gam32", NA,...
2011 Mar 08
1
SEM error
Dear All, I am new for R and SEM. I try to fit the model with Y (ordinal outcome), X (4 categorical data), M1-M3 (continuous), and 2 covariates (Age&sex) as a diagram. library(polycor) model.ly <-specify.model() 1: x -> m1, gam11, NA 2: x -> m2, gam12, NA 3: x -> m3, gam13, NA 4: age -> m1, gam14, NA 5: age -> m2, gam15, NA 6: age -> m3, gam16, NA 7: sex -> m1, gam17, NA 8: sex -> m2, gam18, NA 9: sex -> m3, gam19, NA 10: x -> y, gam20, NA 11: m1 -> y, gam21, NA 12: m2 -> y, gam22,...
2011 Nov 24
0
sem package (version 2.1-1)
...ather than path) format, and cfa() facilitates compact specification of simple confirmatory factor analysis models. For example, from ?sem, the Duncan, Haller, and Portes peer-influences model can now be specified as model.dhp.1 <- specifyEquations(covs="RGenAsp, FGenAsp") RGenAsp = gam11*RParAsp + gam12*RIQ + gam13*RSES + gam14*FSES + beta12*FGenAsp FGenAsp = gam23*RSES + gam24*FSES + gam25*FIQ + gam26*FParAsp + beta21*RGenAsp ROccAsp = 1*RGenAsp REdAsp = lam21(1)*RGenAsp # to illustrate setting start values, not necessary here FOccAsp = 1*FGenAsp FEdAsp = lam42(1)*FGenAsp and th...
2011 Nov 24
0
sem package (version 2.1-1)
...ather than path) format, and cfa() facilitates compact specification of simple confirmatory factor analysis models. For example, from ?sem, the Duncan, Haller, and Portes peer-influences model can now be specified as model.dhp.1 <- specifyEquations(covs="RGenAsp, FGenAsp") RGenAsp = gam11*RParAsp + gam12*RIQ + gam13*RSES + gam14*FSES + beta12*FGenAsp FGenAsp = gam23*RSES + gam24*FSES + gam25*FIQ + gam26*FParAsp + beta21*RGenAsp ROccAsp = 1*RGenAsp REdAsp = lam21(1)*RGenAsp # to illustrate setting start values, not necessary here FOccAsp = 1*FGenAsp FEdAsp = lam42(1)*FGenAsp and th...
2009 May 01
1
computationally singular and lack of variance parameters in SEM
Hi all, I am trying to set up a simple path analysis in the SEM package, but I am having some trouble. I keep getting the following error message or something similar with my model, and I'm not sure what I'm doing wrong: Error in solve.default(C) : system is computationally singular: reciprocal condition number = 2.2449e-20 In addition: Warning message: In sem.default(ram = ram, S = S,