search for: sfsubm

Displaying 3 results from an estimated 3 matches for "sfsubm".

Did you mean: fsub
2010 Mar 24
0
Getting choropleth map intervals correct
...<- readShapeSpatial(TazFile) TazShape<-TazShape[order(TazShape$TAZ_NUM),] ResTaz<-25:666 ResProbs<-rnorm(642,0:1) ResProbs[ResProbs>1]=.5 ResProbs[ResProbs<-1]=.2 ResProbs<-abs(ResProbs) ResProbs..<-data.frame(ResTaz,ResProbs) names(ResProbs..)<-c("Taz","SFsubM") TazShape$SFsubM<-ResProbs..$SFsubM[match(TazShape$TAZ_NUM,ResProbs..$Taz)] brks<-cut(TazShape$SFsubM, breaks=c(seq(0,1, by=0.1), Inf) , right=TRUE,include.lowest=TRUE) cols <- grey((length(brks):2)/length(brks)) plot(TazShape, col=cols[findInterval(TazShape$SFsubM, brks, all.inside=...
2010 Mar 10
1
trouble getting multinimial logit model to work properly
....5191 , 15652.1514 ,25613.8658 , 74214.9622 , 15094.1017, 1682.1790 , 15742.1817 , 0.0000, 257715.0631 , 13564.0576) RTotHh<-c( 38643.1731 , 17361.7998 , 96782.8727 , 57936.3218 , 42770.3231 , 32393.5014 ,40490.5267 , 32682.3341 , 17151.9293 , 35989.6510 ,167356.2668 ,63072.8678) SFsubM<-c(0,1,1,0,0,0,0,0,0,1,0,0) TestData<-data.frame(Slope,Exposure,FwyDist,RTotEmp,RTotHh,SFsubM) #Run Model z.out <- zelig(SFsubM ~ Slope + IntDist + Exposure + RTotEmp + RTotHh, model="mlogit", data=TestData) I get the error Error in attr(tt, "depFactors")$depF...
2010 Mar 24
0
R-help ordinal regression
...-TazShape[order(TazShape$TAZ_NUM),] > > ResTaz<-25:666 > ResProbs<-rnorm(642,0:1) > ResProbs[ResProbs>1]=.5 > ResProbs[ResProbs<-1]=.2 > ResProbs<-abs(ResProbs) > > ResProbs..<-data.frame(ResTaz,ResProbs) > names(ResProbs..)<-c("Taz","SFsubM") > TazShape$SFsubM<-ResProbs..$SFsubM[match(TazShape$TAZ_NUM,ResProbs..$Taz)] > brks<-cut(TazShape$SFsubM, breaks=c(seq(0,1, by=0.1), > Inf) , > right=TRUE,include.lowest=TRUE) > cols <- grey((length(brks):2)/length(brks)) > plot(TazShape, col=cols[findInterval(TazS...