-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.Rmd
1283 lines (1097 loc) · 117 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
---
output: github_document
bibliography: mybibfile.bib
always_allow_html: true
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
<!-- badges: start -->
<!-- badges: end -->
<!-- This paper is an R markdown document that includes self-contained, reproducible analysis. To reproduce the paper the following files are needed:
1. Active-Travel-in-Bangladesh.Rmd (this R markdown document)
2. `Active-Travel-Bangladesh-Descriptives-and-Models.RData`. For reference: this data file is created using this R markdown file. The chunks where the models were estimated and the descriptives tabulated are set to eval = FALSE.
3. For compiling into a pdf in the style of an Elsevier document: several elsarticle files.
All required files are available from the following public repository:
https://github.com/paezha/Neighborhood-Perceptions-and-Active-Travel-in-Bangladesh
-->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
```
# How do the perceptions of neighborhood conditions impact active transportation? A study in Rajshahi, Bangladesh.
Shaila Jamal (McMaster University)
Hossain Mohiuddin (University of California, Davis)
Antonio Paez (McMaster University)
Transportation Research Part D: Transport and Environment (2020) 87:102525, https://doi.org/10.1016/j.trd.2020.102525
## Abstract
This paper aims to investigate the perceptions of neighborhood conditions and their effect on urban active transportation (UAT) in the context of a city in the Global South. We analyze data from a survey of commuters in the city of Rajshahi, Bangladesh. Concretely, we are interested in cycling and walking. A probabilistic model of mode use is estimated using disaggregate data collected in Rajshahi through a face-to-face survey in 2017. The study reveals that, similar to other regions in the world, students are more likely to use active transportation compared to other socio-demographic groups, and that motorized vehicle ownership is associated with lower probabilities of active transportation. Furthermore, the probabilities of choosing active modes at different neighborhood-level conditions were calculated based on the derived model for both students and non-students by residential and non-residential land-use type. In addition to the duration of the trip, the perceived neighborhood-level characteristics are critical for active transportation. Improving neighborhood conditions and their perception by the public can enhance the attractiveness of active travel, more specifically cycling for longer commutes. Based on the study findings, the paper discusses strategies to promote the use of active transportation in the context of a country in the Global South.
## Keywords
Cycling
Walking
Active travel
Perceptions
Safety
Crime
Bangladesh
Global South
South Asia
```{r clear-workspace, echo=FALSE}
#Clear workspace
rm(list = ls())
```
```{r load-packages, echo=FALSE, warning=FALSE, message=FALSE}
#Load packages:
library(ggthemes)
library(kableExtra)
library(knitr)
library(nnet)
library(pandocfilters)
library(readxl)
library(reshape2)
library(textreg)
library(tidyverse)
```
```{r load-data, echo=FALSE, eval=FALSE}
## NOTE: NOT EVALUATED
# This is only for internal use by the authors. The publicly accessible files share the model instead of the data, to conform with the data use agreement.
load("WSB.RData")
# Relevel the `mode` variable so that the modes are in a logical sequence from active to rickshaw to motorized to other
wsb_clean.df <- wsb_clean.df %>%
mutate(mode = factor(mode,
levels = c("Walk", "Cycle", "Rickshaw", "Auto", "Bus", "Other"),
labels = c("Walking", "Cycling", "Rickshaw", "Auto", "Bus", "Other")),
# To define different levels of cycling intensity, we calculate the quartiles of `daily bike` after removing all values of zero, i.e., wsb_clean.df %>% select(daily_bike) %>% filter(daily_bike > 0) %>% summary()
cyclist_mode = case_when(daily_bike == 0 ~ "Non-Bicyclist",
daily_bike > 0 & daily_bike <= 25 ~ "Cyclist 1",
daily_bike > 25 & daily_bike <= 40 ~ "Cyclist 2",
daily_bike > 40 & daily_bike <= 115 ~ "Cyclist 3",
daily_bike > 115 ~ "Cyclist 4"),
cyclist_mode = factor(cyclist_mode,
levels = c("Non-Bicyclist", "Cyclist 1", "Cyclist 2", "Cyclist 3", "Cyclist 4"),
ordered = TRUE))
```
```{r load-models, echo=FALSE}
load("Active-Travel-Bangladesh-Descriptives-and-Models.RData")
```
Introduction
==========================
Urban transportation in the Global South presents challenges that are often distinct from those in the developed world [@gwilliam2003urban; @gwilliam2013cities; @cervero2013linking]. Although rates of motorization do not significantly differ at similar levels of income, lower incomes in the Global South make auto ownership unaffordable for large segments of the population. This means that, unlike many places in the developed world, so-called alternative modes of transportation are in fact, quite the norm [@godefrooij2010co]. A case in point is Asia, where non-motorized modes of travel such as cycling, walking, rickshaws, and carts play a vital role in urban transportation. As is the case in the rest of the world, these modes of transportation offer affordable and environmentally-friendly mobility options.
Despite the widespread use of non-motorized modes, there is an upward trend in motorization in the Global South [@Li2011decoupling; @Cervero2014transport; @Korzhenevych2018area]. While, on the one hand, higher modality (i.e., the availability of a high number of different modes of transportation) is seen as a desirable policy goal [e.g., @Grosse2018exploring; @Krueger2018normative; @Nobis2007multimodality; @Vij2013incorporating], as well as essential for more robust transportation polycultures [@Miller2011collaborative]. The available evidence suggests that reliance on the car markedly reduces the set of other transportation alternatives [@Lavery2013driving]. Consequently, motorization can rapidly threaten higher modality and have other deleterious effects such as premature congestion, deteriorating environments that negate the health benefits of active travel, loss of street space for non-motorized travel, loss of safety, and changes in urban form that lock development in a trajectory that favors motorized travel [@gwilliam2003urban; @Tainio2016air; @pojani2015sustainable].
In this context, transportation planning in the Global South faces the challenge of scarcity in empirical evidence regarding the effectiveness of planning interventions [@Zhao2016restraining]. This is particularly true in the case of urban active transportation (UAT), a form of mobility that is often ignored in planning and investment due to a lack of understanding of the benefits of non-motorized travel, including health benefits, reductions in congestion, less air pollution, fewer accidents, and fewer resources sunk in vehicle acquisition and maintenance [@rahul2013economic]. Thus, while many cities in the developed world have recognized the multiple benefits of active transportation and have devoted efforts to promote it [e.g., @Carroll2019modelling; @Martin2014active; @deNazelle2011improving; @Moniruzzaman2014compliance], this form of mobility has not received nearly as much attention in policy and planning in the developing world [@cervero2013linking; @hatamzadeh2017walking]. For these reasons, there is an urgent need to develop a better understanding of the factors that correlate with active transportation in regions in the Global South. Part of the challenge in the Global South is limitations on data availability. For example, attributes of the built environment are not collected in a systematic way by relevant authorities; events such as accidents may not be reported by the public due to low trust on the authorities; or data are zealously guarded by the authorities to limit accountability. Fortunately, directly asking people about their perceptions is now a well-established practice in many fields, including transportation research [see @vanAcker2010transport; @vanAcker2011going]. Furthermore, a wealth of research shows that behavior is influenced by those perceptions. This includes research on active travel both in the Global South and in developed economies (see, @Gatersleben2007contemplating; @Cleland2008perceptions; @Akar2009influence; @liao2015perceived; and @Loo2015transport).
With the above considerations in mind, this paper aims to investigate the effect of perceptions of the neighborhood on urban active transportation in the context of the city of Rajshahi, Bangladesh. Disaggregated data from a face-to-face survey are used to develop a probabilistic model of mode use. More concretely, the focus of the analysis is on cycling and walking, and how the use of these modes is affected by the attributes of the trip, the attributes of the individual, and individual perceptions of the social and physical conditions in the neighborhood. Perceptions of the social environment are particularly germane, since they are influenced by concerns about crime and safety that are all too common in many regions in the Global South [e.g., @Landman2012crime; @Lemanski2012everyday; @Zaluar2012turf]. In line with previous research in other regions, the results show that students are more likely to use active transportation than other socio-demographic groups, and that motorized vehicle ownership is associated with lower probabilities of using active transportation. The perceived UAT related characteristics of neighborhoods are shown to be particularly influential for the use of these modes. Improving neighborhood conditions and their perception by the public can enhance the attractiveness of active travel for longer commutes. Based on the study findings, the paper discusses strategies to promote the use of active transportation in the context of cities in the Global South with the similar socio-cultural background.
The data used in this research are not publicly available due to the data use agreement. In order to support as much openness as possible [see @Brunsdon2020opening], the code describing the data preprocessing as well as the model files needed to reproduce the results are publicly available\footnote{See \url{https://github.com/paezha/Neighborhood-Perceptions-and-Active-Travel-in-Bangladesh}}.
Background
==========================
Compared to the developed world, limited evidences are available that focus on the correlates of the modes used for transportation in developing countries, particularly concerning UAT. Based on previous research, a number of correlates of mode use are known that are similar to studies in the developed world. This includes individual characteristics - such as age, gender, income, and education level - which have been found to affect the use of various modes of transportation in the Global South. However, because of the difference in socio-cultural and geographical contexts, some differences have been noticed in the direction and magnitude of effects [@larranaga2016influence]. For example, in a study of different working groups, @hatamzadeh2017walking found that women in Rasht, Iran are more likely to walk for commuting than men. This result is different from the findings in developed countries, where several studies found that compared to women, men are more likely to use active modes of travel [@buehler2011active; @pucher2011walking; @laverty2013active]. In Brazil, studies found that the use of UAT decreases with age [@larranaga2016influence; @sa2016cycling]. In contrast, examples are available in developed countries where older people are found to walk more compared to other age groups [@Martin2019individual; @laverty2013active; @sa2016socioeconomic]. Also, in Brazil, studies have found that active travel decreases with increase in income and education levels [@sa2016socioeconomic; @larranaga2016influence; @da2017factors]. @liao2015perceived, in a study in Taiwan, found that walking and cycling are less popular among employed adults. Similar results have been found in India, where employed adults from high income households are more likely to use a car [@srinivasan2007commute]. In the case of the developed world, both similar [@ye2017satisfaction; @adams2010prevalence; @cerin2009explaining] and opposite [@mackenbach2016influence; @de2012association] examples for income and education level's impact on UAT are available.
Findings by @aslam2018cyclability in Lahore, Pakistan, are similar to those of developing countries. The study found that the use of bicycles decreases with age, income, and education level. The study also mentioned the cultural obstacles females face in using bicycles, a factor also discussed previously by @kuranami1994factors. Among Asian countries, compared to China and Vietnam, females are less likely to use a bicycle in the Indian subcontinent (i.e. Bangladesh, India, and Pakistan) because of the traditional clothing style, patriarchal views, and cultural norms [@kuranami1994factors; @aslam2018cyclability]. Also, in predominantly Muslim countries such as Bangladesh and Pakistan, _purdah_ (the social seclusion of women) makes it difficult for women to share crowded streets [@kuranami1994factors], and therefore they make fewer trips compared to men and often use rickshaw (i.e. a two-wheeled hooded vehicle mostly used in Asian countries). Furthermore, in these countries car ownership is very low. In Bangladesh, where bicycles are mostly owned by low and middle-income individuals (which form the bulk of the population), poorer and less educated individuals use it daily and affluent and well-educated individuals use them occasionally [@kuranami1994factors]. In South Asian countries, bicycles are perceived as a means of transportation for people with low incomes. Interestingly, wealthier individuals in the USA are much more likely to own a bicycle [@poushter_2015].
In terms of trip attributes, @adlakha2018exploring and @srinivasan2007commute revealed that shorter trips correlate more strongly with active commuting in Chennai, India. Similar results have been found in Iran, where employed adults who prefer to walk for commute usually walk 800-1200 meters to work [@hatamzadeh2017walking]. In Pakistan, bicycle use is more preferred for commute when trip durations are less than 15 minutes and/or the type of work requires repeated trip making [@aslam2018cyclability]. Recent studies have offered new insights about the use of UAT and objective measures built-environment in Latin American contexts. In Chile, @oliva2018identifying found that land-use such as residential and workplace density as well as the length of biking lane increases the likelihood of bicycle commuting. @rossetti2019want also recommends that the existence of cycling infrastructure is necessary to ensure the safety of bicyclists. The study by @guzman2020confronting in Bogota, Columbia suggests that increasing parking charges at workplaces could be an effective strategy to promote AT commuting. In Brazil, @larranaga2016influence found that increase in population density in the neighborhood increases the number of walking trips made by the individuals.
Modal shift can occur if factors that enable the shift are provided or the perceptions related to a specific mode is changed. For example, if there is a positive correlation between the presence of infrastructure in the neighborhood and walking [e.g., sidewalks, see @Moniruzzaman2012model; @Moniruzzaman2016investigation], then modal shift towards walking can happen if appropriate infrastructure is provided. According to the theory of planned behavior [@Ajzen1985intentions], an individual's perceptions and attitudes can influence their behavior. The more positive feelings they possess, the higher the intention becomes and thus, they are more likely to perform the activity. Studies have found correlations between UAT use and perceived neighborhood characteristics. An example is the study by @giles2002socioeconomic in Perth, Australia, where they found that an individual is more likely to walk if they perceive that sidewalks and shops are accessible and within a short distance. Individual perception of safety and security while traveling can also influence walking behavior. The same study [@giles2002socioeconomic] also reported that individuals are more likely to walk if they perceive their neighborhood as safe, attractive, and supportive of walking. In Belgium, it has been found that individuals' who perceive the accessibility to regular destinations as 'good' are more likely to use a bicycle [@van2012physical]. The same study also found that among women, increase in perceived safety from crime increases the probability of cycling. A qualitative study in Belgium concluded that increase in perceived traffic safety influences walking for transportation among men and women [@van2012environmental].
On the other hand, in the developing countries of Global South, results from the studies on the impact of perceptions towards neighborhood characteristics on UAT behavior are mixed and complex [@oyeyemi2012perceived; @adlakha2018exploring]. Possible reasons could be the difference in cultural contexts and socio-economic conditions [@oyeyemi2012perceived], in addition to differences in the environment [@cervero2013linking; @adlakha2018exploring]. Cultural norms as well as social practices in the South Asian countries are quite different from those of the South American countries. Also, the study by @larranaga2019using in Brazil suggests that different user groups can perceive different environmental characteristics differently and choose different environmental characteristics that they think will influence their probability of walking. In general, literature shows that important factors in the Global South's contexts are social conditions such as perceived levels of crime and traffic safety, and their relationship with active travel for recreation, leisure and/or transportation. @jia2014association conducted a study in Shanghai, China and found a positive correlation between perceived traffic safety and walking. @oyeyemi2012perceived and @gomez2010built also found that higher level of perceived safety from traffic influences more walking. The studies were conducted in Maiduguri, Nigeria, and Bogota, Colombia, respectively, which have higher rates of traffic accidents. A positive correlation between feeling safe from crime and walking has been found in Nigeria [@oyeyemi2012perceived] and Curitiba, Brazil [@parra2011perceived]. @jia2014association, on the other hand, found no association between perceived safety from crime and walking in Shanghai. The reason mentioned in the study [@jia2014association] is that in general, Shanghai is perceived to be safe; thus, walkability and safety from traffic are more influential to walking than crime. In India, @adlakha2018exploring found negative association between active commuting and perceived safety from crime, whereas a study in Pakistan @gul2018association found neutral impact between these two factors. In contrast, studies conducted in Brazil and Columbia suggested that perception of safety from crime and traffic, and the feeling of being safe while walking and cycling in the neighborhood, increase the likelihood of walking and cycling [@weber2012safety; @hallal2010association; @arellana2020urban; @gutierrez2020estimating]. Studies are also available in Brazilian contexts where researchers found that the probability of walking and cycling (for leisure) is not significantly associated with traffic conditions as well as with safety related to walking and cycling [@gomez2010built; @gomes2011walking].
Additionally, perception of the physical environment in the neighborhood is an important factor that influences the use of different modes of transportation. However, compared to developed countries, studies that explored these relationships in developing country contexts is limited. @arellana2020developing reported that although primary/ main roads are not perceived as safe considering the high rates of traffic accidents, cyclists seem to prefer them more for easy connectivity even when there is no cycling infrastructure. However, presence of a cycling infrastructure does not mean that cyclist are safe from traffic accidents - it might reduce the likelihood, but cyclists won't be completely safe from road accidents [@huertas2020level]. @jia2014association and @cerin2014ageing found that higher levels of perceived accessibility to services in the neighborhood positively impact walking for recreation and transportation. Similar results have been found by @parra2011perceived where higher levels of physical activities (e.g. walking for leisure) was highly correlated with higher perceptions of neighborhood-level accessibility and higher perceptions of pedestrian facilities and pedestrian safety in the neighborhood. Perceived good connectivity of streets is positively related to walking and cycling among the Taiwanese employed adults [@liao2015perceived]. In Ghana, @acheampong2017towards found that higher level of perceived ease of cycling influences cycling to work.
The mixed findings from the developing countries indicate the need for addressing the idiosyncrasies of context while conducting active transportation studies in the Global South. @srinivasan2007commute and @larranaga2016influence also mentioned the need for developing an understanding of the context-specific features of mode choice as mode choice decisions substantially differ between the developed world and the Global South due to the differences in the level of vehicle ownership, travel needs and preferences, activity characteristics, and attitudes. Also, there are differences in socio-cultural contexts among the cities in the Global South. For these reasons, @adlakha2018exploring emphasized that researchers should be careful while translating findings across countries and/or cities. Compared to developed countries, fewer active travel related studies have been conducted in developing countries. Since evidence is still rare on active commuting in the Global South in general, and in South Asian countries in particular, this paper aims to better understand the factors that influence the use of different modes for commuting, focusing on UAT modes. Factors considered in this study are socio-demographic factors, trip attributes and most importantly, perceived environmental correlates, that is individual's perceptions towards the neighborhood's physical conditions such as walkability and cycling and social situations such as crime and safety discussed next.
Context and data
============
## Geographical and policy context
Bangladesh is a South Asian country of about 160 million people experiencing rapid economic development and urbanization. Consequently, many cities in the country have experienced an adverse impact on their urban transportation systems, mostly traffic congestion, air pollution, and demand that exceeds the capacity of existing transport infrastructure. As a remedy to this situation, numerous transportation infrastructure development projects have been initiated in Bangladesh in recent years; however, few focused on UAT. Growth in urbanization with a focus on motorized vehicle infrastructure development usually influences lower rates of active travel, physical activity, and sedentary lifestyles, which is evident in the small and medium sized cities of the neighboring country, India [@adlakha2016adaptation; @adlakha2016neighborhood].
The promotion of active means of travel could be a key strategy for tackling poor health outcomes, air pollution, reducing congestion and increasing traffic safety. Also, cycling and walking are affordable options for the general population in the Global South, indicating the need for safe and high-quality conditions to support these modes [@cervero2013linking]. Very recently, Bangladesh expressed a vision for improving the sustainability of its transport sector. The government has developed an Integrated Multimodal Transport Policy which suggests several initiatives in favor of public transport and UAT [@bangla2013policy], including a 'Pedestrian First' program, allocating more times and giving priority to pedestrians at traffic signals, widening footpaths, ensuring short walking distances to shops and services in non-urban areas, providing separate bicycle lanes in urban areas, and promoting road safety measures.
The study area, Rajshahi Municipality, is located in the north-west of Bangladesh. It is one of the earliest municipalities in Bangladesh, having been established in 1876. It is the fourth largest municipality of the country, with a total land area of 48.06 square kilometers and a total population of 0.45 million [@bangladesh2013raj]. The population density is 9,359 per square kilometers [@bangladesh2013raj]. Famed for its six big educational institutions, including universities and medical schools, Rajshahi is known as the "Education City" of Bangladesh. The city is well connected to the rest of the country by air, water and road; however, the residents depend entirely on road transportation for intra-city travel. The municipality has 571 kilometers of road in total [@bangladesh2013raj]. Although several modes of transport are used for daily travel, less than 1% of households own private cars [@haque2014], and only about 8% have motorcycles [@mitra2016]. Non-motorized modes such as rickshaw, van, pushcarts are more prevalent in the city as they provide door-to-door services. In other cities in the country, such as the capital city Dhaka, the use of bicycles for commuting is relatively rare because of associations in the popular imagery with low social status [@kuranami1994factors]. The opposite is observed in Rajshahi, where fifty-seven percent of households own bicycles, indicating residents' preference towards active modes of travel [@mitra2016].
Rajshahi was once one of the world's most polluted cities. Continuous efforts by the city's authorities since 2004 changed this situation to the point where, in 2016, it became the top city in the world for decreasing air pollution (62% decrease in PM10) [@khan_2017]. This was the outcome of initiatives such as extensive tree plantation, reducing industrial pollution, and tackling transportation issues. Among the suite of initiatives to reduce air pollution, recently, the city took several measures to promote UAT. So far, 15 kilometers of pedestrian facilities have been built, and the expectation is to expand this to 48 kilometers [@hammadi_2016]. To promote cycling, the city has also started building 10 kilometers of separate bicycle lanes, the first facility of this kind in Bangladesh [@hammadi_2016].
In recent years, cycling has been trending in Rajshahi compared to other cities in Bangladesh. With numerous educational institutes based in the city, many students from different parts of the city travel everyday for study. As in other places, students appear to be the most active in cycling [@whalen2013mode]. Moreover, many young people-led cycling groups have been formed around the country, including Rajshahi, encouraging people to use bicycles regularly for commute and recreation. It has been chosen as the study area so that a reasonable number of UAT users can be surveyed to explore the influencing factors. Developing an understanding of the influencing factors of UAT will be crucial to promote UAT in the city. The results also contribute to build a more extensive knowledge base about UAT in the Global South.
## Survey and data
A questionnaire was designed to collect residents' travel patterns and their perceptions of UAT conditions in their neighborhood. Several UAT studies [e.g. @dill2007factors; @public2011can; @peterborough2014at; @auckland2016at] were reviewed to inform the development of the questionnaire, which was also adapted to make it appropriate for the local context. The target population of the survey was residents of the study area.
The questionnaire asked respondents about their socio-demographic profile such as age, gender, occupation, income, and the number of household members. Respondents were also asked about the number of bicycles and motorized vehicles in their household. To determine their preference and level of use of UAT modes, the questionnaire also collected information on their daily walking and cycling in minutes. Regarding travel behavior, the study collected information on individuals' usual travel patterns for different daily routine activities (e.g. commute, grocery shopping, social, and recreational), usual mode, travel time, and distance. As several types of transport modes are available in Bangladesh, for modeling purposes, modes were grouped into six classes: auto (both car and motorbike), bus, walk, cycle, rickshaw, and others (i.e. any mode other than these five).
Questions were asked related to the walking and cycling condition of the neighborhoods to assess it from the residents' viewpoint on a 5 point Likert scale: very poor - poor - moderate - good - very good. A set of perception-based questions was included in this section to reflect the overall condition of respondents' neighborhoods following the same Likert scale. The questions included the perception of walking and cycling conditions in the neighborhood, perceptions of crime situation, and safety from local traffic. Perceptions were explored as a proxy of neighborhood-level characteristics since GIS-based objective measures at the neighborhood-level are unavailable for Rajshahi. For modeling purposes, 'very poor' and 'poor' were aggregated into 'poor' and 'good' and 'very good' were aggregated into 'good' when building the probabilistic model. This was done to avoid having numerous classes with very low frequencies.
An orientation meeting of the surveyors was conducted to introduce them to the survey objectives, expected outcomes, and clarity on each item of information. This was done to ensure that surveyors could gather the required information precisely from the respondents. Three surveyors were employed to conduct face-to-face surveys for approximately two months: July - August 2017. A pilot test was conducted and based on the feedback, some modifications were made to the final questionnaire so that the questions asked became more explicit to the respondents and more relevant to the local contexts.
There are 30 wards in Rajshahi and the survey targeted to collect an equal number of samples from each ward (the initial target was to collect 10 samples from each ward). A random sampling process was followed while choosing a respondent within a ward, and the surveyors were instructed to accept both complete and incomplete surveys. Many persons showed reluctance to participate in the survey, in addition, many of those who participated were unwilling to share information. Because of the presence of missing information among the collected samples, attempts have been made to collect some additional samples. Three hundred fifty-two (352) samples were collected from the 30 wards of Rajshahi. In addition to that, the survey collected samples from the people who live in the surrounding areas of the city. Although the exact number/ portion is unknown, it has been noticed that a significant portion of people lives in the surrounding areas of the city who commute daily to the city. Samples were collected from this group of working segments as we think that it is relevant to explore the AT condition of the city. Fifty (50) random samples were collected from the surrounding areas who commute daily to the city. Thus, a total of 402 samples were collected through the face-to-face survey. Responses with several missing variables were removed and finally, 393 responses with a complete set of variables were taken for final analysis. More details are available in the study by @Jamal2020.
## Descriptive Statistics
Table \ref{tab:descriptive-statistics} contains the descriptive statistics of the sample. It should be noted that demographic data of the municipality (study area) were not readily available; however, the district level (Rajshahi municipality is under Rajshahi district) age distribution data of 2015 is available [@bangladesh2015raj] and used in this study for comparison purpose. Around 19% of the population belongs to 15 to 24 years age group of Rajshahi district. As one of the focus of the current study is AT users, the percentage of this group is higher in the sample (39.9%). Additionally, being an educational institute oriented city, this segment of the population represents the major portion of the student population who are the primary users of the active modes of travel. For the same reason, 26 to 45 age group represents 45% of the sample, although 32.7% of the population belongs to the same age group. Also, the percentage of older adults living in Rajshahi is low. Overall, only 18.9% of the population belongs to 45 years and over. In the study sample, 7.5% belong to the age group 45 years and over. On average, respondents have at least one bicycle at home. Average income among the households is 35,105 BDT (1 USD = 84 BDT). It should be noted that the average household income of the capital city Dhaka is 55,086 BDT [@power2016bd]. Forty-two percent of the respondents identified themselves as students, and 37% as full-time employees. A comparison among the population income and occupation group is not possible as up to date city or regional level income and occupation data are not available for Rajshahi. The last available data of Rajshahi city is from a survey of 2001, which we don't think is relevant in the current context as the local conditions such as socio-economic conditions, city characteristics, and modal shares have changed much over the past few years [@Jamal2020].
It has been noted in the past [e.g., by @whalen2013mode] that cycling is a mode that requires some commitment. To discern the differences between different types of bicyclists we use the variable "Daily Bike Time" as a proxy for intensity of cycling. In this way, we classify respondents as non-bicyclists if their daily bike time is zero, and then for other respondents we divide them into quartiles by daily time spent on cycling, as seen in Table \ref{tab:descriptive-statistics}, with Cyclist Type 1 being the least intensive cyclist and Cyclist Type 4 the most intensive.
There are some important considerations to keep in mind concerning data collection in Bangladesh [also see the research of @aslam2018cyclability in Pakistan]. First, participation in out-of-home activities is very low in Bangladesh, with a national rate of female labor force participation of 36.3% [@hossain_2018]. This means that the probability of finding female respondents for commuting data is relatively low to begin with. Secondly, traditional social norms in Bangladesh mean that males usually respond on behalf of their households, and they are culturally disinclined to share information pertaining to female family members. Even females are often not comfortable sharing their information with unknown parties, which is also mentioned by the study of @mitra2016 in Rajshahi. As a result, almost 85% of the respondents in this study are male. Thus, the sample cannot be said to be representative of the general population.
The study asked the respondents to rate their neighborhoods in different aspects of AT conditions. Overall, three-fourths of the respondents rated their neighborhoods' walking conditions as 'good', which indicates that in general, respondents are satisfied with the walking conditions in their neighborhoods. Almost 54% of the respondents perceive the cycling condition of the neighborhood as good. Seventy percent of the respondents feel secured from the crime during the daylight (rated 'good'). However, respondents don't perceive safety/secured from vehicular traffic while walking on the main roads. Only 28.2% rated perceived safety while walking in the main roads as 'good' and 53% rated their perceived safety as 'moderate'. It is interesting that despite the lack of active transportation infrastructure, most of the respondent rated that walking and cycling conditions are 'good', which could be due that respondent besides the lack of adequate pedestrian and cyclist infrastructure, they mostly perceive that physical conditions of the neighborhood regarding walking and cycling are good. This is in line with the finding of @arellana2019multivariate that reported the existence of heterogeneity of perceptions while evaluating conditions of infrastructure. According to them [@arellana2019multivariate] past experiences can influence individuals' perceptions and differences may exists based on those experiences. For example, people used to live in zones with poor infrastructure could be more tolerant than people that live in zones with better infrastructure.
```{r descriptive statistic, eval = FALSE, echo=FALSE}
## NOTE: NOT EVALUATED
# This is only for internal use by the authors. The publicly accessible files share the model instead of the data, to conform with the data use agreement.
ds <- wsb_clean.df %>%
select(age, gender, occupation, income, household_size, vehicles, bicycles, daily_bike, cyclist_mode, trip_time, rate_crime_day, rate_walk, rate_cycling, rate_safety_walk_main, landuse_res)
example_2.df <- data.frame(Variable = c("Age 1",
"Age 2",
"Age 3",
"Age 4",
"Gender",
"Occupation (Student)",
"Occupation (Full time employed)",
"Income",
"Household Size",
"Number of vehicles",
"Number of bicycles",
"Commute duration (min)",
"Duration of daily biking (min)",
"Cyclist_mode (Non-Bicyclist)",
"Cyclist_mode (Cyclist Type 1)",
"Cyclist_mode (Cyclist Type 2)",
"Cyclist_mode (Cyclist Type 3)",
"Cyclist_mode (Cyclist Type 4)",
"Perceived safety from crime during the day (poor)",
"Perceived safety from crime during the day (moderate)",
"Perceived safety from crime during the day (good)",
"Perceived safety while walking in the main roads (poor)",
"Perceived safety while walking in the main roads (moderate)",
"Perceived safety while walking in the main roads (good)",
"Perceived walking condition of the neighborhood (poor)",
"Perceived walking condition of the neighborhood (moderate)",
"Perceived walking condition of the neighborhood (good)",
"Perceived cycling condition of the neighborhood (poor)",
"Perceived cycling condition of the neighborhood (moderate)",
"Perceived cycling condition of the neighborhood (good)"
),
Note = c("Dummy variable: 1 if Age 18-25 years",
"Dummy variable: 1 if Age 26-35 years",
"Dummy variable: 1 if Age 36-45 years",
"Dummy variable: 1 if Age More than 45 years",
"Dummy variable: 1 if Male",
"Dummy variable: 1 if Student",
"Dummy variable: 1 if Full time employed",
"BDT",
"Number of people",
"Number of vehicles",
"Number of bicycles",
"Minutes",
"Minutes",
"Dummy variable: 1 if respondent's Daily Bike Time = 0",
"Dummy variable: 1 if respondent's 0 > Daily Bike Time <= 25",
"Dummy variable: 1 if respondent's 25 > Daily Bike Time <= 40",
"Dummy variable: 1 if respondent's 40 > Daily Bike Time <= 115",
"Dummy variable: 1 if respondent's Daily Bike Time >= 115",
"Likert scale",
"Likert scale",
"Likert scale",
"Likert scale",
"Likert scale",
"Likert scale",
"Likert scale",
"Likert scale",
"Likert scale",
"Likert scale",
"Likert scale",
"Likert scale"
),
Percentage = c(paste(round(sum(ds$age %in% 18:25)/nrow(ds)*100, 1), "%", sep = " "),
paste(round(sum(ds$age %in% 26:35)/nrow(ds)*100, 1), "%", sep = " "),
paste(round(sum(ds$age %in% 36:45)/nrow(ds)*100, 1), "%", sep = " "),
paste(round(sum(ds$age %in% 46:90)/nrow(ds)*100, 1), "%", sep = " "),
paste(round(sum(ds$gender == "Male")/nrow(ds)*100, 1), "%", sep = " "),
paste(round(sum(ds$occupation == "Student")/nrow(ds)*100, 1), "%", sep = " "),
paste(round(sum(ds$occupation == "Full time employment")/nrow(ds)*100, 1), "%", sep = " "),
"",
"",
"",
"",
"",
"",
paste(round(sum(ds$cyclist_mode == "Non-Bicyclist")/nrow(ds)*100, 1), "%", sep = " "),
paste(round(sum(ds$cyclist_mode == "Cyclist 1")/nrow(ds)*100, 1), "%", sep = " "),
paste(round(sum(ds$cyclist_mode == "Cyclist 2")/nrow(ds)*100, 1), "%", sep = " "),
paste(round(sum(ds$cyclist_mode == "Cyclist 3")/nrow(ds)*100, 1), "%", sep = " "),
paste(round(sum(ds$cyclist_mode == "Cyclist 4")/nrow(ds)*100, 1), "%", sep = " "),
paste(round(sum(ds$rate_crime_day == "poor")/nrow(ds)*100, 1), "%", sep = " "),
paste(round(sum(ds$rate_crime_day == "moderate")/nrow(ds)*100, 1), "%", sep = " "),
paste(round(sum(ds$rate_crime_day == "good")/nrow(ds)*100, 1), "%", sep = " "),
paste(round(sum(ds$rate_safety_walk_main == "poor")/nrow(ds)*100, 1), "%", sep = " "),
paste(round(sum(ds$rate_safety_walk_main == "moderate")/nrow(ds)*100, 1), "%", sep = " "),
paste(round(sum(ds$rate_safety_walk_main== "good")/nrow(ds)*100, 1), "%", sep = " "),
paste(round(sum(ds$rate_walk == "poor")/nrow(ds)*100, 1), "%", sep = " "),
paste(round(sum(ds$rate_walk == "moderate")/nrow(ds)*100, 1), "%", sep = " "),
paste(round(sum(ds$rate_walk == "good")/nrow(ds)*100, 1), "%", sep = " "),
paste(round(sum(ds$rate_cycling == "poor")/nrow(ds)*100, 1), "%", sep = " "),
paste(round(sum(ds$rate_cycling == "moderate")/nrow(ds)*100, 1), "%", sep = " "),
paste(round(sum(ds$rate_cycling == "good")/nrow(ds)*100, 1), "%", sep = " ")
),
Mean = c("",
"",
"",
"",
"",
"",
"",
round(mean(ds$income), 2),
round(mean(ds$household_size), 2),
round(mean(ds$vehicles), 2),
round(mean(ds$bicycles), 2),
round(mean(ds$trip_time), 2),
round(mean(ds$daily_bike), 2),
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
""))
```
```{r tabulate-descriptive-statistics, echo=FALSE}
kable(example_2.df,
"html",
#"latex",
caption = "\\label{tab:descriptive-statistics}Summary statistics of the sample",
booktabs = T,
digits = 1) %>%
kable_styling(latex_options = c("scale_down")) %>%
pack_rows("Socio-Economic and Demographic Attributes", 1, 11) %>%
pack_rows("Trip Characteristics", 12, 18) %>%
pack_rows("Perceived Social Condition of the Neighborhood", 19, 24) %>%
pack_rows("Perceived Physical Condition of the Neighborhood", 25, 30) %>%
row_spec(c(1, 12, 19, 25) - 1, extra_latex_after = "\\rowcolor{gray!20}")
```
Model
===================
Analysis is based on the application of multinomial logistic regression. Here, it is important to highlight some considerations that impinge on the choice of a modeling approach. Multinomial logistic regression in travel behavior analysis is often nested in the rich behavioral framework of random utility theory [see @Train2009discrete]. This model (sometimes called _conditional_ logit) requires information on the level of service of the alternative selected by a decision maker, and also on the level of service of the non-chosen alternatives. This poses overwhelming data collection challenges in many regions in the Global South. Some of these challenges are discussed in the context of Bangladesh by @Enam2011methodological.
Information about the non-chosen alternatives can be obtained directly from respondents (which greatly increases respondent burden), or it can be imputed by the analyst. As noted by @Enam2011methodological, choice sets remain unobserved in the data and are not easily deduced from the limited information available in the context of developing countries, especially travel time and cost for non-chose modes. According to @Enam2011methodological, car ownership depends highly on affordability, and very few people in Bangladesh owns a car. Moreover, since published timetables rarely exist, information regarding bus routes are not available. Thus, option to access information regarding transportation via internet or smart phones, which are increasingly common practice in many regions in the world [e.g., @Jappinen2013modelling] are not available in the local context for this study. Lack of structured transport network data, operations of buses and other transit services beyond their authorized routes, and no fixed routes for non-motorized modes such as rickshaws, make it very difficult for the analyst to define a correct choice set [@Enam2011methodological]. The present study also lacks a choice set that contains information on both chosen and non-chosen modes and contains information on the chosen modes only.
<!--Equations are generated using a tex to image converter: https://tex-image-link-generator.herokuapp.com/-->
<!--
The lack of information about the non-chosen modes prevents the use of random utility analysis. Instead, in the analysis, the use of a mode is modeled as the state of an individual for a given commute trip. The probability of individual _i_ having response _r_ can be written as $\pi^{(r)}_i$ = Pr($y_i$ = _r_) where $y_i$ is the unordered categorical response for individual _i_. If there are _J_ response categories, the model is written as follows:
-->
The lack of information about the non-chosen modes prevents the use of random utility analysis. Instead, in the analysis, the use of a mode is modeled as the state of an individual for a given commute trip. The probability of individual _i_ having response _r_ can be written as ![\pi^{(r)}_i = Pr(y_i = r)](https://render.githubusercontent.com/render/math?math=%5Cdisplaystyle+%5Cpi%5E%7B%28r%29%7D_i+%3D+Pr%28y_i+%3D+r%29) where ![y_i](https://render.githubusercontent.com/render/math?math=%5Cdisplaystyle+y_i) is the unordered categorical response for individual _i_. If there are _J_ response categories, the model is written as follows:
<!--
\begin{equation}
\label{model-equation}
\log\frac{\pi^{(r)}_i}{\pi^{(J)}_i} = (x_i\beta)^{(r)}, r = 1, ......, t-1
\end{equation}
-->
![\begin{equation}
\label{model-equation}
\log\frac{\pi^{(r)}_i}{\pi^{(J)}_i} = (x_i\beta)^{(r)}, r = 1, ......, t-1
\end{equation}
](https://render.githubusercontent.com/render/math?math=%5Cdisplaystyle+%5Cbegin%7Bequation%7D%0A%5Clabel%7Bmodel-equation%7D%0A%5Clog%5Cfrac%7B%5Cpi%5E%7B%28r%29%7D_i%7D%7B%5Cpi%5E%7B%28J%29%7D_i%7D+%3D+%28x_i%5Cbeta%29%5E%7B%28r%29%7D%2C+r+%3D+1%2C+......%2C+t-1++++++++++++%0A%5Cend%7Bequation%7D%0A)
<!--
The model compares the probabilities of each category _t_ with a base category. A set of contrasting equations with the reference category is estimated where $X^{(r)}$ is a set of predictor variables ($x_i$) that may be different for each equation (in this study, they are same as it is a probabilistic model) and $\beta^{(r)}$ are the respective estimated coefficients of these variables. For multiple predictor variables, equation \ref{model-equation} can be written as:
-->
The model compares the probabilities of each category _t_ with a base category. A set of contrasting equations with the reference category is estimated where ![X^{(r)}](https://render.githubusercontent.com/render/math?math=%5Cdisplaystyle+X%5E%7B%28r%29%7D) is a set of predictor variables (![x_i](https://render.githubusercontent.com/render/math?math=%5Cdisplaystyle+x_i)) that may be different for each equation (in this study, they are same as it is a probabilistic model) and ![\beta^{(r)}](https://render.githubusercontent.com/render/math?math=%5Cdisplaystyle+%5Cbeta%5E%7B%28r%29%7D) are the respective estimated coefficients of these variables. For multiple predictor variables, equation \ref{model-equation} can be written as:
<!--
\begin{equation}
\label{model-equation2}
\log\frac{\pi^{(r)}_i}{\pi^{(J)}_i} = \beta^{(r)}_0 + \beta^{(r)}_1x_i + \beta^{(r)}_2x_i + \cdots, r = 1, ......, J-1
\end{equation}
-->
![\begin{equation}
\label{model-equation2}
\log\frac{\pi^{(r)}_i}{\pi^{(J)}_i} = \beta^{(r)}_0 + \beta^{(r)}_1x_i + \beta^{(r)}_2x_i + \cdots, r = 1, ......, J-1
\end{equation}](https://render.githubusercontent.com/render/math?math=%5Cdisplaystyle+%5Cbegin%7Bequation%7D%0A%5Clabel%7Bmodel-equation2%7D%0A%5Clog%5Cfrac%7B%5Cpi%5E%7B%28r%29%7D_i%7D%7B%5Cpi%5E%7B%28J%29%7D_i%7D+%3D+%5Cbeta%5E%7B%28r%29%7D_0+%2B+%5Cbeta%5E%7B%28r%29%7D_1x_i+%2B+%5Cbeta%5E%7B%28r%29%7D_2x_i+%2B+%5Ccdots%2C+r+%3D+1%2C+......%2C+J-1++++++%0A%5Cend%7Bequation%7D)
Taking the exponential on both sides we can solve for the probabilities as follows:
<!--
\begin{equation}
\label{model-equation3}
\pi^{(r)}_i = \pi^{(J)}_ie^{\beta^{(r)}_0 + \beta^{(r)}_1x_i + \beta^{(r)}_2x_i + \cdots}
\end{equation}
-->
![\begin{equation}
\label{model-equation3}
\pi^{(r)}_i = \pi^{(J)}_ie^{\beta^{(r)}_0 + \beta^{(r)}_1x_i + \beta^{(r)}_2x_i + \cdots}
\end{equation}](https://render.githubusercontent.com/render/math?math=%5Cdisplaystyle+%5Cbegin%7Bequation%7D%0A%5Clabel%7Bmodel-equation3%7D%0A%5Cpi%5E%7B%28r%29%7D_i+%3D+%5Cpi%5E%7B%28J%29%7D_ie%5E%7B%5Cbeta%5E%7B%28r%29%7D_0+%2B+%5Cbeta%5E%7B%28r%29%7D_1x_i+%2B+%5Cbeta%5E%7B%28r%29%7D_2x_i+%2B+%5Ccdots%7D%0A%5Cend%7Bequation%7D)
<!--
Then, we can use the fact that the sum of the probabilities for all responses $r$ must be one to derive the following expression:
-->
Then, we can use the fact that the sum of the probabilities for all responses _r_ must be one to derive the following expression:
<!--
\begin{equation}
\label{model-probability-J}
\pi^{(J)}_i = \frac{1}{1+\sum_i^{J-1}e^{\beta^{(i)}_0 + \beta^{(i)}_1x_i + \beta^{(i)}_2x_i + \cdots}}
\end{equation}
-->
![\begin{equation}
\label{model-probability-J}
\pi^{(J)}_i = \frac{1}{1+\sum_i^{J-1}e^{\beta^{(i)}_0 + \beta^{(i)}_1x_i + \beta^{(i)}_2x_i + \cdots}}
\end{equation}](https://render.githubusercontent.com/render/math?math=%5Cdisplaystyle+%5Cbegin%7Bequation%7D%0A%5Clabel%7Bmodel-probability-J%7D%0A%5Cpi%5E%7B%28J%29%7D_i+%3D+%5Cfrac%7B1%7D%7B1%2B%5Csum_i%5E%7BJ-1%7De%5E%7B%5Cbeta%5E%7B%28i%29%7D_0+%2B+%5Cbeta%5E%7B%28i%29%7D_1x_i+%2B+%5Cbeta%5E%7B%28i%29%7D_2x_i+%2B+%5Ccdots%7D%7D%0A%5Cend%7Bequation%7D)
<!--
Equation \ref{model-probability-J} is used to derive the logit probability for response $r$ ($r \ne J$):
-->
Equation \ref{model-probability-J} is used to derive the logit probability for response _r_ (![r \ne J](https://render.githubusercontent.com/render/math?math=%5Cdisplaystyle+r+%5Cne+J)):
<!--
\begin{equation}
\label{model-probability-r}
\pi^{(r)}_i = \frac{e^{\beta^{(r)}_0 + \beta^{(r)}_1x_i + \beta^{(r)}_2x_i + \cdots}}{1+\sum_i^{J-1}e^{\beta^{(i)}_0 + \beta^{(i)}_1x_i + \beta^{(i)}_2x_i + \cdots}}
\end{equation}
-->
![\begin{equation}
\label{model-probability-r}
\pi^{(r)}_i = \frac{e^{\beta^{(r)}_0 + \beta^{(r)}_1x_i + \beta^{(r)}_2x_i + \cdots}}{1+\sum_i^{J-1}e^{\beta^{(i)}_0 + \beta^{(i)}_1x_i + \beta^{(i)}_2x_i + \cdots}}
\end{equation}](https://render.githubusercontent.com/render/math?math=%5Cdisplaystyle+%5Cbegin%7Bequation%7D%0A%5Clabel%7Bmodel-probability-r%7D%0A%5Cpi%5E%7B%28r%29%7D_i+%3D+%5Cfrac%7Be%5E%7B%5Cbeta%5E%7B%28r%29%7D_0+%2B+%5Cbeta%5E%7B%28r%29%7D_1x_i+%2B+%5Cbeta%5E%7B%28r%29%7D_2x_i+%2B+%5Ccdots%7D%7D%7B1%2B%5Csum_i%5E%7BJ-1%7De%5E%7B%5Cbeta%5E%7B%28i%29%7D_0+%2B+%5Cbeta%5E%7B%28i%29%7D_1x_i+%2B+%5Cbeta%5E%7B%28i%29%7D_2x_i+%2B+%5Ccdots%7D%7D%0A%5Cend%7Bequation%7D)
<!--
This multinomial logit model is estimated using well-established maximum likelihood techniques, which also provide goodness-of-fit indicators, such as AIC and McFadden's $\rho^2$.
-->
This multinomial logit model is estimated using well-established maximum likelihood techniques, which also provide goodness-of-fit indicators, such as AIC and McFadden's ![\rho^2](https://render.githubusercontent.com/render/math?math=%5Cdisplaystyle+%5Crho%5E2).
Analysis and Results
===================
Table \ref{tab:model-results} shows the results of a multinomial logistic model of commute mode use, as discussed above. Since the focus of the study is on UAT, walking has been selected as the reference mode. Several variables were tested, and based on their level of significance, some were omitted from the analysis to obtain the final model reported in the table. With the exception of status as a student, other socio-demographic variables did not reach conventional levels of significance (i.e., $p = 0.05$ or better), and were thus omitted from the final model. For some modes, insignificant variables were kept in the model as they have been found significant for another mode/choice. As a result, we included them for every mode. In the final model, walking is the most probable mode of travel, other things being equal. This was followed by bicycle and rickshaw. The number of motorized vehicles in the household is seen to be positively associated with the use of auto and rickshaw. Trip time is positively associated with all modes, which means with the increase in travel time, the probability of walking decreases.
In case of cyclist type, where cyclist type 1 refers to the least intensive cyclists and type 4 refers to be the most intensive cyclist, based on the level of significance, the model results show that with the increase of level of intensity of daily cycling (non-bicyclist being the reference), the probability of choosing cycle as a commute mode increases and the probability of choosing rickshaw and other modes as a commute mode decreases. This suggests that those who cycle daily for a longer duration have a higher probability of cycling for their commute. In addition, although the least intensive cyclists are less likely to choose bus as a commute mode, when the intensity of cycling increases (i.e. daily biking time increases), cyclists are more likely to choose bus a commute mode. Living in a residential area, in contrast, tends to increase the probability of traveling by bus while decreasing the probability of using cycle relative to walking.
The analysis indicates that individual perceptions of neighborhood conditions are significantly correlated with the use of different modes of transportation for commuting. Neighborhood-level social conditions, including higher levels of perceived safety from crime in the neighborhood, tend to associate positively with the UAT and rickshaw use. Also, perceived safety from crime influences auto use. In the Bangladeshi context, auto use can be thought of as a proxy for higher income. Therefore, it seems possible that auto users tend to live in high income neighborhoods, which are generally perceived as safe. Compared to walking, higher level of perceived pedestrian safety from vehicular traffic in the main roads increases the probability of rickshaw, bus, and other modes of transportation and decreases auto use. Perception of the neighborhood level physical conditions is also a significant correlate of mode use. As the level of perceived walking conditions in the neighborhood improves, the probability of walking tends to increase and use of auto, bus and other modes of transportation tend to decrease. Similarly, as the level of perceived cycling condition improves, compared to walking, both cycling and rickshaw see gains and auto, bus and other modes of transportation see decrease in the probability of use.
```{r model-estimation, eval=FALSE, echo=FALSE, message=FALSE, warning=FALSE}
## NOTE: NOT EVALUATED
# This is only for internal use by the authors. The publicly accessible files share the model instead of the data, to conform with the data use agreement.
# Estimate the null model (constants only)
model0 <- multinom(mode ~ 1,
data = wsb_clean.df,
trace = FALSE)
# Estimate the full model
model1 <- multinom(mode ~ trip_time + vehicles + cyclist_mode +
Std +
rate_crime_day + rate_safety_walk_main + rate_walk + rate_cycling +
landuse_res,
data = wsb_clean.df,
trace = FALSE)
#summary(model1)
## using trace so that the convergence doesn't appear in the text
## Estimate a full model using `nnet::multinom` function:
```
```{r rho2, echo=FALSE}
# Calculate rho2
rho2 <- 1 - model1$deviance / model0$deviance
```
```{r organize-model-results, eval=FALSE, echo=FALSE}
## NOTE: NOT EVALUATED
# This is only for internal use by the authors. The publicly accessible files share the model instead of the data, to conform with the data use agreement.
#Calculate z-scores and p-values:
z <- summary(model1)$coefficients/summary(model1)$standard.errors
p <- (1 - pnorm(abs(z), 0, 1)) * 2
# Create and store table
ctable <- coef(summary(model1))
ctable <- cbind(ctable, "z-score" = z, "p-value" = p)
# Rename cyclist_mode^4
colnames(ctable)[c(6, 24, 41)] <- "cyclist_mode.4"
model_results.df <- ctable %>%
data.frame() %>%
#rownames_to_column() %>%
#rename(Mode = rowname) %>%
select(Constant = X.Intercept.,
"Trip Time (Commute)" = trip_time,
"Number of Motorized Vehicles" = vehicles,
"Cyclist Type 1" = cyclist_mode.L,
"Cyclist Type 2" = cyclist_mode.Q,
"Cyclist Type 3" = cyclist_mode.C,
"Cyclist Type 4" = `cyclist_mode.4`,
"Occupation (Student)" = Std,
"Perception of Crime Situation in the Neighborhood during the day: Moderate" = rate_crime_day.L,
"Perception of Crime Situation in the Neighborhood during the day: Good" = rate_crime_day.Q,
"Perception of Pedestrian Safety from Vehicular Traffic in the Main Road: Moderate" = rate_safety_walk_main.L,
"Perception of Pedestrian Safety from Vehicular Traffic in the Main Road: Good" = rate_safety_walk_main.Q,
"Perception of Walking Condition in the Neighborhood: Moderate" = rate_walk.L,
"Perception of Walking Condition in the Neighborhood: Good" = rate_walk.Q,
"Perception of Cycling Condition in the Neighborhood: Moderate" = rate_cycling.L,
"Perception of Cycling Condition in the Neighborhood: Good" = rate_cycling.Q,
"Land use (Residential)" = landuse_res)
# Extract the names of the modes
modes <- rownames(model_results.df)
# Transpose the table with coefficients
model_results.df <- t(model_results.df)
# Rename the columns
colnames(model_results.df) <- modes
# Convert to data.frame
model_results.df <- data.frame(model_results.df) %>% rownames_to_column()
# Retrieve p-values
pvalues <- ctable[, (2 * ncol(ctable)/3 +1): ncol(ctable)] %>% t() %>% data.frame()
# Put the p-values in the table
model_results.df <- model_results.df %>% mutate(Cycling, p.cycling = pvalues$Cycling,
Rickshaw, p.rickshaw = pvalues$Rickshaw,
Auto, p.auto = pvalues$Auto,
Bus, p.bus = pvalues$Bus,
Other, p.other = pvalues$Other) %>%
select(Variable = rowname, Cycling, p.cycling, Rickshaw, p.rickshaw, Auto, p.auto, Bus, p.bus, Other, p.other) %>%
mutate(p.auto = ifelse(p.auto < 0.001, "0.001", round(p.auto, 3)),
p.bus = ifelse(p.bus < 0.001, "0.001", round(p.bus, 3)),
p.cycling = ifelse(p.cycling < 0.001, "0.001", round(p.cycling, 3)),
p.other = ifelse(p.other < 0.001, "0.001", round(p.other, 3)),
p.rickshaw = ifelse(p.rickshaw < 0.001, "0.001", round(p.rickshaw, 3)))
save(model0, model1, example_2.df, model_results.df, file = "Active-Travel-Bangladesh-Descriptives-and-Models.RData")
```
```{r tabulate-model-results, echo=FALSE}
kable(model_results.df,
"html",
#"latex",
digits = 2,
booktabs = TRUE,
caption = "\\label{tab:model-results}Results of multinomial logistic model" ,
col.names = c("Variable",
"Cycling", "p-val",
"Rickshaw", "p-val",
"Auto", "p-val",
"Bus", "p-val",
"Other", "p-val"),
#align = c("l", "|c", "c", "|c", "c", "|c", "c", "|c", "c", "|c", "c|")
align = c("l", "c", "c", "c", "c", "c", "c", "c", "c", "c", "c")) %>%
kable_styling(latex_options = c("scale_down")) %>%
footnote(c(paste("Walking is the reference mode for the model"),
paste("Initial log-likelihood = ", as.character(round(-model0$deviance/2, 2))),
paste("Final log-likelihood = ", as.character(round(-model1$deviance/2, 2))),
paste("McFadden's $\\\\rho ^ 2$ = ", as.character(round(rho2, 2)))), # Escaping the text requires four backslashes
escape = FALSE) %>%
landscape()
```
To better understand the effect on active modes of various perceived environmental conditions, the probabilities of walking and cycling were estimated and plotted as a function of the duration of the trip. At this stage of analysis, we divided the sample into non-student and student population to explore their active commuting patterns, as the literature suggests that the use of active modes for commuting is lower among non-student compared to the student population [@whalen2013mode; @molina2014active; @delmelle2012exploring]. Further, we consider different cyclist types from non-bicyclist to the most intensive cyclists, as discussed before. Finally, we also analyze the probabilities of active travel by residential and non-residential land-use types as it has been seen that active commuting behavior can differ by land-use type [@Jamal2020]. For simulation, we set the number of motorized vehicles to zero. We set the perceptions of conditions of the environment as follows: all perceptions are poor, all perceptions are moderate, all perceptions are good. This includes perceptions about neighborhood's walking condition, safety from traffic while walking, and crime situation during daytime. Perceptions of cycling were not aggregated for this and treated as a separate variable. The probabilities were simulated by commute travel time, ranging from 0-30 min. These values of travel times were chosen because approximately 80% of all commute trips reported were within this range.
```{r prediction-grid, echo=FALSE}
## Create prediction grid for full model:
pred.grid.model1 <- expand.grid(trip_time = seq(0, 30, 1),
vehicles = 0,
#daily_bike = c(0, 32),
cyclist_mode = c("Non-Bicyclist", "Cyclist 1", "Cyclist 2", "Cyclist 3", "Cyclist 4"),
Std = c (0, 1),
rate_crime_day = (model1$xlevels$rate_crime_day),
rate_walk = (model1$xlevels$rate_walk),
rate_cycling = (model1$xlevels$rate_cycling),
rate_safety_walk_main = (model1$xlevels$rate_safety_walk_main),
landuse_res = c(0, 1))
## age = quantile(wsb_clean.df$age, c(0.25, 0.5, 0.75))
```
```{r predicted-probabilities, echo=FALSE}
pp.model1 <- predict(model1, newdata = pred.grid.model1, type = "probs", se = TRUE) %>%
cbind(pred.grid.model1) %>%
gather(key = "Mode",
value = "probability", -c(trip_time,
vehicles,
#daily_bike,
cyclist_mode,
Std,
rate_crime_day,
rate_walk,
rate_cycling,
rate_safety_walk_main,
landuse_res)
)
```
```{r label-perceptions-environment, echo=FALSE}
# Create labels for perception groups with the exception of rate_cycling. For the figures we plot the probabilities for three cases: when every perception variable is "poor", "moderate", and "good".
pp.model1 <- pp.model1 %>%
mutate(Mode = factor(Mode,
levels = c("Walking",
"Cycling",
"Rickshaw",
"Auto",
"Bus",
"Other")),
Environment = case_when(rate_crime_day == "poor" &
rate_safety_walk_main == "poor" &
rate_walk == "poor" ~ "Poor", #&
#rate_cycling == "poor" ~ "Poor",
rate_crime_day == "moderate" &
rate_safety_walk_main == "moderate" &
rate_walk == "moderate" ~ "Moderate", #&
#rate_cycling == "moderate" ~ "Moderate",
rate_crime_day == "good" &
rate_safety_walk_main == "good" &
rate_walk == "good" ~ "Good", #&
#rate_cycling == "good" ~ "Good",
TRUE ~ "Other")) %>%
mutate(Environment = factor(Environment,
levels = c("Poor", "Moderate", "Good", "Other"),
labels = c("Poor",
"Moderate",
"Good",
"Other")),
rate_cycling = factor(rate_cycling,
levels = c("good", "moderate", "poor"),
labels = c("Good",
"Moderate",
"Poor")),
cyclist_mode = factor(cyclist_mode,
levels = c("Non-Bicyclist", "Cyclist 1", "Cyclist 2", "Cyclist 3", "Cyclist 4"),
labels = c("Non-Bicyclist", "Cyclist Type 1", "Cyclist Type 2", "Cyclist Type 3", "Cyclist Type 4"))) %>%
rename(Cycle = rate_cycling)
```
Figure \ref{fig:probabilities-perceptions-active-non-student-residential} and Figure \ref{fig:probabilities-perceptions-active-non-student-non-residential} show the simulated probabilities for non-students in residential and non-residential land-use by perceptions of the environment and perceptions of cycling. A few interesting trends have become apparent. Non-students whose trips start in a location with residential land-uses display a probability of walking for longer trips that increases with the improvement of the perceived neighborhood environment (i.e., of walking, safety from traffic and crime situations). The rate of increase is higher for non-bicyclists compared to cyclists. Combining the improvement of perceived cycling conditions with the other perceived neighborhood environmental conditions, there is a relatively smaller increase in the probability of walking for both cyclists and non-cyclists and the increase rate is still higher for non-bicyclists. This indicates that non-bicyclists are more likely to walk for longer duration of commute when perceived cycling and other environmental conditions are improved. In terms of cycling, the probability of using bicycle for longer trips among non-student cyclists increases rapidly when cycling conditions in the neighborhood are improved in the neighborhood, and the rate of increase is higher in non-residential land-uses compared to residential land-uses. For non-bicyclists (and non-students), other perceived environmental conditions seem to influence their probability of choosing cycle as a commute mode for longer duration more compared to perceived cycling conditions. The possible reason could be that as they do not use cycle at all, they are less able to evaluate the cycling condition in their neighborhoods, thus emphasizing other environmental conditions they experience regularly.
```{r figure-probabilities-perceptions-active-non-student-residential, echo=FALSE, fig.cap="\\label{fig:probabilities-perceptions-active-non-student-residential}Probabilities of active modes under perceived conditions of the environment in the neighborhood (crime, conditions for walking, safety from traffic when walking) vs perceived conditions for cycling, by cycling level of traveller (non-students in residential land uses)."}
ggplot(filter(pp.model1,
Environment != "Other",
Std == 0,
Mode == "Walking" | Mode == "Cycling" ,
#daily_bike == 0,
landuse_res == 1),
aes(x = trip_time, y = probability, color = Mode, linetype = cyclist_mode)) +
labs(x= "Trip Time", y= "Probability", linetype = "Cyclist Type") +
ylim(0, 1) +
#scale_color_viridis_d(option = "plasma") +
geom_line(size = 0.8) +
facet_grid(Cycle ~ Environment, labeller = label_both) +
theme_tufte()
```
```{r figure-probabilities-perceptions-active-non-student-non-residential, echo=FALSE, fig.cap="\\label{fig:probabilities-perceptions-active-non-student-non-residential}Probabilities of active modes under perceived conditions of the environment in the neighborhood (crime, conditions for walking, safety from traffic when walking) vs perceived conditions for cycling, by cycling level of traveller (non-students in non-residential land uses)."}
ggplot(filter(pp.model1,
Environment != "Other",
Std == 0,
Mode == "Walking" | Mode == "Cycling" ,
#daily_bike == 0,
landuse_res == 0),
aes(x = trip_time, y = probability, color = Mode, linetype = cyclist_mode)) +
labs(x= "Trip Time", y= "Probability", linetype = "Cyclist Type") +
ylim(0, 1) +
#scale_color_viridis_d(option = "plasma") +
geom_line(size = 0.8) +
facet_grid(Cycle ~ Environment, labeller = label_both) +
theme_tufte()
```
Figure \ref{fig:probabilities-perceptions-active-student-residential} and Figure \ref{fig:probabilities-perceptions-active-student-non-residential} show the simulation for students in residential and non-residential land-use by perceptions of the environment and perceptions of cycling. Similar to the non-student population, in both residential and non-residential land-uses, students' probability of walking for longer duration of commute increases with the improvement of perceived environmental conditions and the rate of increase is higher for non-bicyclists compared to cyclists. Although, after combining the perceived cycling conditions with other environmental conditions, the probability of walking for longer commute still increases, the rate of increase is less compared to the perceived improvements in the environmental conditions. Probability of cycling for longer duration of commute is higher in the non-residential land-uses compared to residential land-uses. With the improvements of perceived environmental conditions as well as perceived cycling conditions, even student non-bicyclists show a higher probability of cycling for commute for longer duration in non-residential land-uses compared to residential land-uses. For cyclists, improvements in environmental conditions along with cycling conditions increase the probability of cycling for longer duration of commute and the rate is higher in non-residential land-uses than in residential land-uses.
```{r figure-probabilities-perceptions-active-student-residential, echo=FALSE, fig.cap="\\label{fig:probabilities-perceptions-active-student-residential}Probabilities of active modes under perceived conditions of the environment in the neighborhood (crime, conditions for walking, safety from traffic when walking) vs perceived conditions for cycling, by cycling level of traveller (students in residential land uses)."}
ggplot(filter(pp.model1,
Environment != "Other",
Std == 1,
Mode == "Walking" | Mode == "Cycling" ,
#daily_bike == 0,
landuse_res == 1),
aes(x = trip_time, y = probability, color = Mode, linetype = cyclist_mode)) +
labs(x= "Trip Time", y= "Probability", linetype = "Cyclist Type") +
ylim(0, 1) +
#scale_color_viridis_d(option = "plasma") +
geom_line(size = 0.8) +
facet_grid(Cycle ~ Environment, labeller = label_both) +
theme_tufte()
```
```{r figure-probabilities-perceptions-active-student-non-residential, echo=FALSE, fig.cap="\\label{fig:probabilities-perceptions-active-student-non-residential}Probabilities of active modes under perceived conditions of the environment in the neighborhood (crime, conditions for walking, safety from traffic when walking) vs perceived conditions for cycling, by cycling level of traveller (students in non-residential land uses)."}
ggplot(filter(pp.model1,
Environment != "Other",
Std == 1,
Mode == "Walking" | Mode == "Cycling" ,
#daily_bike == 0,
landuse_res == 0),
aes(x = trip_time, y = probability, color = Mode, linetype = cyclist_mode)) +
labs(x= "Trip Time", y= "Probability", linetype = "Cyclist Type") +
ylim(0, 1) +
#scale_color_viridis_d(option = "plasma") +
geom_line(size = 0.8) +
facet_grid(Cycle ~ Environment, labeller = label_both) +
theme_tufte()
```
It would be interesting to see what other aspects of the environment besides cycling conditions contribute to the probability of travel by active modes. For instance, one might question whether to prioritize efforts to improve perception of crime or perception of walking conditions. To explore this, we proceed next to simulate the probabilities for non-students and students for both residential and non-residential land-use as follows: we set the perception of cycling to good, and perceptions of walking (walking and safety while walking) to poor, moderate, and good. This time, we kept the perceptions of crime during daytime as a separate variable. We simulate these probabilities by travel time, ranging from 0-30 min. The number of motorized vehicles was set to zero.
```{r label-perceptions-walking, echo=FALSE}
# Create labels for perception of walking (walk and safety for walking) with the exception of rate_crime_day. For the figures we plot the probabilities for three cases: when every perception variable is "poor", "moderate", and "good".
pp.model1 <- pp.model1 %>%
mutate(Perceptions_Walk = case_when(rate_safety_walk_main == "poor" &
rate_walk == "poor" ~ "Poor",
rate_safety_walk_main == "moderate" &
rate_walk == "moderate" ~ "Moderate",
rate_safety_walk_main == "good" &
rate_walk == "good" ~ "Good",
TRUE ~ "Other")) %>%
mutate(Perceptions_Walk = factor(Perceptions_Walk,
levels = c("Poor", "Moderate", "Good", "Other"),
labels = c("Poor",
"Moderate",
"Good",
"Other")),
rate_crime_day = factor(rate_crime_day,
levels = c("good", "moderate", "poor"),
labels = c("Good",
"Moderate",
"Poor"))) %>%
rename(Walk = Perceptions_Walk,
Crime = rate_crime_day)
```
Figure \ref{fig:probabilities-perceptions-walking-active-modes-non-students-residential} and Figure \ref{fig:probabilities-perceptions-walking-active-modes-non-students-non-residential} show the simulated probabilities of non-students' active mode use by perceptions of walking and perceptions of crime as a function of travel time for residential and non-residential land-use, where perceived cycling conditions is good. In both land-uses, the probability of non-bicyclists to use bicycle for longer duration of commute increases when perceived walking conditions improve from 'poor' to 'moderate'. This means that along with 'good' cycling conditions, improvement in the walking condition increases the probability of cycling for commute for non-bicyclists. For non-student cyclists, improvement in the walking and crime conditions increases their probability of cycling for longer duration of commute and the rate is higher in non-residential land-uses compared to residential land-use. Figure \ref{fig:probabilities-perceptions-walking-active-modes-students-residential} and Figure \ref{fig:probabilities-perceptions-walking-active-modes-students-non-residnetial} shows the simulation corresponding to students by residential and non-residential land-use types. A comparison with the preceding figures indicates that students use active modes more compared to non-students. With the improvement of walking and crime conditions, the probability of walking for longer duration of commute increases for non-bicyclists in both land-use types. The probability of student non-bicyclists of using bicycle for longer trips increases by improving the walking conditions in the neighborhood (recall that in this simulation cycling condition is already set to 'good') and the rate of increase is higher in non-residential land-use compared to residential land-use. For student cyclists, the probability of using bicycle for longer duration of commute increases with the improvement of walking and crime conditions in the neighborhood and the rate of increase is higher in the non-residential areas compared to residential areas.
```{r figure-probabilities-perceptions-walking-active-non-students-residential, echo=FALSE, fig.cap="\\label{fig:probabilities-perceptions-walking-active-modes-non-students-residential}Probabilities of active mode use when perceived conditions for cycling are good: perceived conditions for walking in the neighborhood (conditions for walking, safety from traffic when walking) vs perceived crime, by cycling level of traveller (non-students in residential landuse)."}
ggplot(filter(pp.model1,
Walk != "Other",
Cycle == "Good",
Std == 0,
# daily_bike == 0,
Mode == "Walking" | Mode == "Cycling",
landuse_res == 1),
aes(x = trip_time, y = probability, color = Mode, linetype = cyclist_mode)) +
labs(x= "Trip Time", y= "Probability", linetype = "Cyclist Type") +
ylim(0, 1) +
#scale_color_viridis_d(option = "plasma") +
geom_line(size = 0.8) +
facet_grid(Crime ~ Walk, labeller = label_both) +
theme_tufte()
```
```{r figure-probabilities-perceptions-walking-active-non-students-non-residential, echo=FALSE, fig.cap="\\label{fig:probabilities-perceptions-walking-active-modes-non-students-non-residential}Probabilities of active mode use when perceived conditions for cycling are good: perceived conditions for walking in the neighborhood (conditions for walking, safety from traffic when walking) vs perceived crime, by cycling level of traveller (non-students in non-residential landuse)."}
ggplot(filter(pp.model1,
Walk != "Other",
Cycle == "Good",
Std == 0,
# daily_bike == 0,
Mode == "Walking" | Mode == "Cycling",
landuse_res == 0),
aes(x = trip_time, y = probability, color = Mode, linetype = cyclist_mode)) +
labs(x= "Trip Time", y= "Probability", linetype = "Cyclist Type") +
ylim(0, 1) +
#scale_color_viridis_d(option = "plasma") +
geom_line(size = 0.8) +
facet_grid(Crime ~ Walk, labeller = label_both) +
theme_tufte()
```
```{r figure-probabilities-perceptions-walking-active-students-residential, echo=FALSE, fig.cap="\\label{fig:probabilities-perceptions-walking-active-modes-students-residential}Probabilities of active mode use when perceived conditions for cycling are good: perceived conditions for walking in the neighborhood (conditions for walking, safety from traffic when walking) vs perceived crime, by cycling level of traveller (students in residential landuse)."}
ggplot(filter(pp.model1,
Walk != "Other",
Cycle == "Good",
Std == 1,
# daily_bike == 0,
Mode == "Walking" | Mode == "Cycling",
landuse_res == 1),
aes(x = trip_time, y = probability, color = Mode, linetype = cyclist_mode)) +
labs(x= "Trip Time", y= "Probability", linetype = "Cyclist Type") +
ylim(0, 1) +
#scale_color_viridis_d(option = "plasma") +
geom_line(size = 0.8) +
facet_grid(Crime ~ Walk, labeller = label_both) +
theme_tufte()
```
```{r figure-probabilities-perceptions-walking-active-students-non-residential, echo=FALSE, fig.cap="\\label{fig:probabilities-perceptions-walking-active-modes-students-non-residnetial}Probabilities of active mode use when perceived conditions for cycling are good: perceived conditions for walking in the neighborhood (conditions for walking, safety from traffic when walking) vs perceived crime, by cycling level of traveller (students in non-residential landuse)."}
ggplot(filter(pp.model1,
Walk != "Other",
Cycle == "Good",
Std == 1,
# daily_bike == 0,
Mode == "Walking" | Mode == "Cycling",
landuse_res == 0),
aes(x = trip_time, y = probability, color = Mode, linetype = cyclist_mode)) +
labs(x= "Trip Time", y= "Probability", linetype = "Cyclist Type") +
ylim(0, 1) +
#scale_color_viridis_d(option = "plasma") +
geom_line(size = 0.8) +
facet_grid(Crime ~ Walk, labeller = label_both) +
theme_tufte()
```
Figure \ref{fig:comparison-walk-perceptions-change-non-students-residential} and Figure \ref{fig:comparison-walk-perceptions-change-non-students-non-residential} show the net change in probabilities by active modes for non-students in residential and non-residential land-uses respectively when perceived conditions for cycling are good: perceived conditions for walking in the neighborhood (conditions for walking, safety from traffic when walking) vs perceived conditions for crime change. In both cases, net increase in probability of using active modes is higher for non-bicyclist compared to cyclists, which is expected as cyclists are already cycling daily at different levels of intensity. For non-student non-bicyclists, probability of walking for longer duration of commute increases with the improvement in walking and crime condition in the neighborhood and the rate is higher in the non-residential land-uses compared to residential land-uses. On the other hand, their probability of cycling for longer duration of commute increases when walking conditions is improved from 'poor' to 'moderate' and crime conditions from 'poor' to 'good'. However, when walking conditions improved from 'moderate' to 'good' and with the improvement in the crime conditions, the probabilities of non-students non-bicyclists' active mode use decreases. One possible explanation could be that improved neighborhood conditions indicate affluent neighborhoods, which means that high income households live there among whom active modes are not popular and they usually use auto and rickshaw for their daily travel. Similar trend has been noticed for the student non-bicyclists in Figure \ref{fig:comparison-walk-perceptions-change-students-residential} and Figure \ref{fig:comparison-walk-perceptions-change-students-non-residential} which show the net change in probabilities by active modes for students in residential and non-residential land-uses respectively. Additionally, with improvement in the walking conditions from 'poor' to 'moderate' and crime conditions from 'poor' to 'good', student cyclists tend to use cycle for longer duration of commute and the rate of increase is higher compared to student non-bicyclists.
```{r spread-probabilities-by-perceived-walking-non-students-residential, echo=FALSE}
pp.comparison.walk <- pp.model1 %>%
filter(Walk != "Other",
Cycle == "Good",
Std == 0,
landuse_res == 1) %>%
mutate(Walk = factor(Walk,
levels = c("Poor", "Moderate", "Good", "Other"),
labels = c("Walk:Poor", "Walk:Moderate", "Walk:Good", "Walk:Other"))) %>%
select(Mode,
cyclist_mode,
probability,
trip_time,
Crime,
Walk) %>%
spread(Mode, probability) %>%
pivot_wider(names_from = Walk,
values_from = c(Walking, Cycling, Rickshaw, Auto, Bus, Other))
```
```{r probabilities-comparison-cycling-good-walk-change-active-non-students-residential, echo=FALSE}
pp.comparison.walk1 <- pp.comparison.walk %>%
transmute(trip_time,
Crime,
cyclist_mode,
Walking_Walk_Poor2Moderate = `Walking_Walk:Moderate` - `Walking_Walk:Poor`,
Walking_Walk_Moderate2Good = `Walking_Walk:Good` - `Walking_Walk:Moderate`,
Cycling_Walk_Poor2Moderate = `Cycling_Walk:Moderate` - `Cycling_Walk:Poor`,
Cycling_Walk_Moderate2Good = `Cycling_Walk:Good` - `Cycling_Walk:Moderate`) %>%
gather(Mode, probability, -c(trip_time, cyclist_mode, Crime)) %>%
mutate(Walk = str_split(Mode, "_", n = 2, simplify = TRUE)[,2],
Mode = str_split(Mode, "_", n = 2, simplify = TRUE)[,1],
Mode = factor(Mode,
levels = c("Walking",
"Cycling")),
# cyclist_mode = factor(cyclist_mode, levels = c("Non-Bicyclist", "Cyclist 1", "Cyclist 2", "Cyclist 3", "Cyclist 4")),
Walk = factor(Walk,
levels = c("Walk_Poor2Moderate",
"Walk_Moderate2Good"),
labels = c("Poor to Moderate",
"Moderate to Good")))
```
```{r figure-comparison-walk-perceptions-change-non-students-residential, echo=FALSE, fig.cap="\\label{fig:comparison-walk-perceptions-change-non-students-residential}Net change in probabilities of active mode use when perceived conditions for cycling are good: perceived conditions for walking in the neighborhood change (conditions for walking, safety from traffic when walking) vs perceived crime, by cycling level of traveller (non-students in residential landuse)."}
ggplot(data = pp.comparison.walk1,
aes(x = trip_time, y = probability, color = Mode, linetype = cyclist_mode)) +
labs(x= "Trip Time", y= "Probability", linetype = "Cyclist Type") +
geom_line(size = 0.8) +
ylim(-0.8, 0.8) +
#scale_color_viridis_d(option = "plasma") +
facet_grid(Crime ~ Walk, labeller = label_both) +
theme_tufte()
```
```{r spread-probabilities-by-perceived-walking-non-students-non-residential, echo=FALSE}
pp.comparison.walk <- pp.model1 %>%
filter(Walk != "Other",
Cycle == "Good",
Std == 0,
landuse_res == 0) %>%
mutate(Walk = factor(Walk,
levels = c("Poor", "Moderate", "Good", "Other"),
labels = c("Walk:Poor", "Walk:Moderate", "Walk:Good", "Walk:Other"))) %>%
select(Mode,
cyclist_mode,
probability,
trip_time,
Crime,
Walk) %>%
spread(Mode, probability) %>%
pivot_wider(names_from = Walk,
values_from = c(Walking, Cycling, Rickshaw, Auto, Bus, Other))
```
```{r probabilities-comparison-cycling-good-walk-change-active-non-students-non-residential, echo=FALSE}
pp.comparison.walk1 <- pp.comparison.walk %>%
transmute(trip_time,
Crime,
cyclist_mode,
Walking_Walk_Poor2Moderate = `Walking_Walk:Moderate` - `Walking_Walk:Poor`,
Walking_Walk_Moderate2Good = `Walking_Walk:Good` - `Walking_Walk:Moderate`,
Cycling_Walk_Poor2Moderate = `Cycling_Walk:Moderate` - `Cycling_Walk:Poor`,
Cycling_Walk_Moderate2Good = `Cycling_Walk:Good` - `Cycling_Walk:Moderate`) %>%
gather(Mode, probability, -c(trip_time, cyclist_mode, Crime)) %>%
mutate(Walk = str_split(Mode, "_", n = 2, simplify = TRUE)[,2],
Mode = str_split(Mode, "_", n = 2, simplify = TRUE)[,1],
Mode = factor(Mode,
levels = c("Walking",
"Cycling")),
# cyclist_mode = factor(cyclist_mode, levels = c("Non-Bicyclist", "Cyclist 1", "Cyclist 2", "Cyclist 3", "Cyclist 4")),
Walk = factor(Walk,
levels = c("Walk_Poor2Moderate",
"Walk_Moderate2Good"),
labels = c("Poor to Moderate",
"Moderate to Good")))
```
```{r figure-comparison-walk-perceptions-change-non-students-non-residential, echo=FALSE, fig.cap="\\label{fig:comparison-walk-perceptions-change-non-students-non-residential}Net change in probabilities of active mode use when perceived conditions for cycling are good: perceived conditions for walking in the neighborhood change (conditions for walking, safety from traffic when walking) vs perceived crime, by cycling level of traveller (non-students in non-residential landuse)."}
ggplot(data = pp.comparison.walk1,
aes(x = trip_time, y = probability, color = Mode, linetype = cyclist_mode)) +
labs(x= "Trip Time", y= "Probability", linetype = "Cyclist Type") +
geom_line(size = 0.8) +
ylim(-0.8, 0.8) +
#scale_color_viridis_d(option = "plasma") +
facet_grid(Crime ~ Walk, labeller = label_both) +
theme_tufte()
```
```{r spread-probabilities-by-perceived-walking-students-residential, echo=FALSE}
pp.comparison.walk <- pp.model1 %>%
filter(Walk != "Other",
Cycle == "Good",
Std == 1,
landuse_res == 1) %>%
mutate(Walk = factor(Walk,
levels = c("Poor", "Moderate", "Good", "Other"),
labels = c("Walk:Poor", "Walk:Moderate", "Walk:Good", "Walk:Other"))) %>%
select(Mode,
cyclist_mode,
probability,
trip_time,
Crime,
Walk) %>%
spread(Mode, probability) %>%
pivot_wider(names_from = Walk,
values_from = c(Walking, Cycling, Rickshaw, Auto, Bus, Other))
```
```{r probabilities-comparison-cycling-good-walk-change-active-students-residential, echo=FALSE}
pp.comparison.walk1 <- pp.comparison.walk %>%
transmute(trip_time,
Crime,
cyclist_mode,
Walking_Walk_Poor2Moderate = `Walking_Walk:Moderate` - `Walking_Walk:Poor`,
Walking_Walk_Moderate2Good = `Walking_Walk:Good` - `Walking_Walk:Moderate`,
Cycling_Walk_Poor2Moderate = `Cycling_Walk:Moderate` - `Cycling_Walk:Poor`,
Cycling_Walk_Moderate2Good = `Cycling_Walk:Good` - `Cycling_Walk:Moderate`) %>%
gather(Mode, probability, -c(trip_time, cyclist_mode, Crime)) %>%
mutate(Walk = str_split(Mode, "_", n = 2, simplify = TRUE)[,2],
Mode = str_split(Mode, "_", n = 2, simplify = TRUE)[,1],
Mode = factor(Mode,
levels = c("Walking",
"Cycling")),
# cyclist_mode = factor(cyclist_mode, levels = c("Non-Bicyclist", "Cyclist 1", "Cyclist 2", "Cyclist 3", "Cyclist 4")),
Walk = factor(Walk,
levels = c("Walk_Poor2Moderate",
"Walk_Moderate2Good"),
labels = c("Poor to Moderate",
"Moderate to Good")))
```
```{r figure-comparison-walk-perceptions-change-students-residential, echo=FALSE, fig.cap="\\label{fig:comparison-walk-perceptions-change-students-residential}Net change in probabilities of active mode use when perceived conditions for cycling are good: perceived conditions for walking in the neighborhood change (conditions for walking, safety from traffic when walking) vs perceived crime, by cycling level of traveller (students in residential landuse)."}
ggplot(data = pp.comparison.walk1,
aes(x = trip_time, y = probability, color = Mode, linetype = cyclist_mode)) +
labs(x= "Trip Time", y= "Probability", linetype = "Cyclist Type") +
geom_line(size = 0.8) +
ylim(-0.8, 0.8) +
#scale_color_viridis_d(option = "plasma") +
facet_grid(Crime ~ Walk, labeller = label_both) +
theme_tufte()
```
```{r spread-probabilities-by-perceived-walking-students-non-residential, echo=FALSE}
pp.comparison.walk <- pp.model1 %>%
filter(Walk != "Other",
Cycle == "Good",
Std == 1,
landuse_res == 0) %>%
mutate(Walk = factor(Walk,
levels = c("Poor", "Moderate", "Good", "Other"),
labels = c("Walk:Poor", "Walk:Moderate", "Walk:Good", "Walk:Other"))) %>%
select(Mode,
cyclist_mode,
probability,
trip_time,
Crime,
Walk) %>%
spread(Mode, probability) %>%
pivot_wider(names_from = Walk,
values_from = c(Walking, Cycling, Rickshaw, Auto, Bus, Other))
```
```{r probabilities-comparison-cycling-good-walk-change-active-students-non-residential, echo=FALSE}
pp.comparison.walk1 <- pp.comparison.walk %>%
transmute(trip_time,
Crime,
cyclist_mode,
Walking_Walk_Poor2Moderate = `Walking_Walk:Moderate` - `Walking_Walk:Poor`,
Walking_Walk_Moderate2Good = `Walking_Walk:Good` - `Walking_Walk:Moderate`,
Cycling_Walk_Poor2Moderate = `Cycling_Walk:Moderate` - `Cycling_Walk:Poor`,
Cycling_Walk_Moderate2Good = `Cycling_Walk:Good` - `Cycling_Walk:Moderate`) %>%
gather(Mode, probability, -c(trip_time, cyclist_mode, Crime)) %>%
mutate(Walk = str_split(Mode, "_", n = 2, simplify = TRUE)[,2],
Mode = str_split(Mode, "_", n = 2, simplify = TRUE)[,1],