<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.ubc.ca/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=VikasMenghwani</id>
	<title>UBC Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.ubc.ca/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=VikasMenghwani"/>
	<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/Special:Contributions/VikasMenghwani"/>
	<updated>2026-09-03T21:47:25Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Course:Cons452&amp;diff=571967</id>
		<title>Course:Cons452</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Course:Cons452&amp;diff=571967"/>
		<updated>2019-11-22T23:48:24Z</updated>

		<summary type="html">&lt;p&gt;VikasMenghwani: /* Understanding data */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Navigating the transition to a sustainable world is humanity’s current challenge. This will require fostering resilient interacting systems of people and ecosystems (resilient social-ecological systems). In this course, students will utilize a suite of tools and ideas useful in managing ecosystem services in a sustainable way. Each week we focus on a different theme related to sustainability and resilience, and work as small teams to apply these ideas to a set of diverse landscapes throughout the world. &lt;br /&gt;
&lt;br /&gt;
Many of the lab exercises and group projects involve “hands-on” spatial analysis of land cover change using GIS and remote sensing. We also assess socio-economic data to examine issues such as energy poverty. These quantitative approaches help us move beyond arm-waving about sustainability to making some tough choices, using the best available scientific information.   &lt;br /&gt;
&lt;br /&gt;
== SDG resources ==&lt;br /&gt;
* [https://www.globalgoals.org/ Sustainable Development Goals]&lt;br /&gt;
* [https://sdg-tracker.org/ Tracking SDGs]&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Sustainable_Development_Goals SDGs on Wikipedia]&lt;br /&gt;
&lt;br /&gt;
== Data collection ==&lt;br /&gt;
&lt;br /&gt;
=== Understanding data ===&lt;br /&gt;
[[File:Understanding_data.png|frame|863x863px|&#039;&#039;&#039;This graphic shows how can one go about finding data, based on the research problem. Click here for the bigger [https://wiki.ubc.ca/images/1/13/Understanding_data.png image].&#039;&#039;&#039;]]&lt;br /&gt;
The group projects for CONS452 may rely on a variety of data types, depending on the problem context. Going about data collection is often challenging, and the approach not only depends upon your knowledge about different data sources, but also on the nature of your research question. The graphic on the right could be a useful guide for going about data collection. &lt;br /&gt;
 &lt;br /&gt;
Data may vary in their content, collection methods, scale, and formats. &lt;br /&gt;
* Primary vs. secondary data&lt;br /&gt;
* Qualitative vs. quantitative data&lt;br /&gt;
* Observational vs. experimental data&lt;br /&gt;
* Cross-sectional vs. longitudinal data&lt;br /&gt;
* Socio-economic vs. ecological data&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Type of data&lt;br /&gt;
!Names of data sources&lt;br /&gt;
|-&lt;br /&gt;
|Socio-economic data&lt;br /&gt;
|[https://dhsprogram.com/data/Model-Datasets.cfm DHS] ([[Course:Cons452/DHS|Explainer]] , [[Sample data]])&lt;br /&gt;
[https://usa.ipums.org/usa/index.shtml IPUMS] ([[Course:Cons452/IPUMS|Explainer]], [[Sample Data]])&lt;br /&gt;
&lt;br /&gt;
[http://surveys.worldbank.org/lsms LSMS] ([[Course:Cons452/LSMS|Explainer]] , [[Sample data]]) &lt;br /&gt;
&lt;br /&gt;
[https://sedac.ciesin.columbia.edu/data/collection/gpw-v4 Gridded Pop World] ([[Course:Cons452/GriddedPopWorld|Explainer]] , Sample data)&lt;br /&gt;
&lt;br /&gt;
[https://mics.unicef.org/ MICS] ([[Course:Cons452/MICS|Explainer]] , Sample data)&lt;br /&gt;
&lt;br /&gt;
[https://data.cifor.org/dataset.xhtml?persistentId=doi:10.17528/CIFOR/DATA.00021 PEN] ([[Course:Cons452/PEN|Explainer]], Sample data) &lt;br /&gt;
|-&lt;br /&gt;
|Climate data&lt;br /&gt;
|[https://www.worldclim.org WorldClim] ([[Course:Cons452/WorldClim|Explainer]], Sample data)&lt;br /&gt;
|-&lt;br /&gt;
|Land use data&lt;br /&gt;
|[https://earthenginepartners.appspot.com/science-2013-global-forest/download_v1.2.html Hansen Global Forest Change ] ([[Course:Cons452/Hansen|Explainer]] , [[Sample data]])&lt;br /&gt;
[https://www.protectedplanet.net/ World Database on Protected Areas] ([[Course:Cons452/WDPA|Explainer]] , Sample data)&lt;br /&gt;
&lt;br /&gt;
AgChange (Explainer , Sample data)&lt;br /&gt;
&lt;br /&gt;
[http://www.earthstat.org/ EarthStat] ([[Course:Cons452/EarthStat|Explainer]] , Sample data)&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;&#039;&#039;Data search engines&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|[https://earthengine.google.com/ Google Earth Engine]&lt;br /&gt;
&lt;br /&gt;
[https://energydata.info/ Energydata.info]&lt;br /&gt;
&lt;br /&gt;
[https://freegisdata.rtwilson.com/ Free GIS Data]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Data analysis ==&lt;br /&gt;
For CONS452, we are encouraging the use of R for all data analysis (at least non GIS). &lt;br /&gt;
&lt;br /&gt;
RStudio is pre-installed on all the desktop systems in the lab. For your personal computers, please download it [https://rstudio.com/products/rstudio/download/ here].&lt;br /&gt;
&lt;br /&gt;
R can perform all functions available in MS Excel. &lt;br /&gt;
&lt;br /&gt;
Detailed help/guidelines on R for this course are available on the &#039;&#039;&#039;&amp;lt;big&amp;gt;[[Course:Cons452/UsingR|&amp;lt;u&amp;gt;R Wiki page here&amp;lt;/u&amp;gt;]]&amp;lt;/big&amp;gt;&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
== All Subpages ==&lt;br /&gt;
&amp;lt;dpl&amp;gt; &lt;br /&gt;
titlematch=Cons452/% &lt;br /&gt;
namespace=Course &lt;br /&gt;
shownamespace=false&lt;br /&gt;
&amp;lt;/dpl&amp;gt;&lt;br /&gt;
[[Category:Assignments]]&lt;br /&gt;
[[Category:Labs]]&lt;/div&gt;</summary>
		<author><name>VikasMenghwani</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Course:Cons452&amp;diff=571960</id>
		<title>Course:Cons452</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Course:Cons452&amp;diff=571960"/>
		<updated>2019-11-22T23:39:09Z</updated>

		<summary type="html">&lt;p&gt;VikasMenghwani: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Navigating the transition to a sustainable world is humanity’s current challenge. This will require fostering resilient interacting systems of people and ecosystems (resilient social-ecological systems). In this course, students will utilize a suite of tools and ideas useful in managing ecosystem services in a sustainable way. Each week we focus on a different theme related to sustainability and resilience, and work as small teams to apply these ideas to a set of diverse landscapes throughout the world. &lt;br /&gt;
&lt;br /&gt;
Many of the lab exercises and group projects involve “hands-on” spatial analysis of land cover change using GIS and remote sensing. We also assess socio-economic data to examine issues such as energy poverty. These quantitative approaches help us move beyond arm-waving about sustainability to making some tough choices, using the best available scientific information.   &lt;br /&gt;
&lt;br /&gt;
== SDG resources ==&lt;br /&gt;
* [https://www.globalgoals.org/ Sustainable Development Goals]&lt;br /&gt;
* [https://sdg-tracker.org/ Tracking SDGs]&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Sustainable_Development_Goals SDGs on Wikipedia]&lt;br /&gt;
&lt;br /&gt;
== Data collection ==&lt;br /&gt;
&lt;br /&gt;
=== Understanding data ===&lt;br /&gt;
[[File:Understanding_data.png|frame|863x863px|&#039;&#039;&#039;This graphic shows how can one go about finding data, based on the research problem. Click here for the bigger [https://wiki.ubc.ca/images/1/13/Understanding_data.png image].&#039;&#039;&#039;]]&lt;br /&gt;
The group projects for CONS452 may rely on a variety of data types, depending on the problem context. Data may vary in their content, collection methods, scale, and formats. &lt;br /&gt;
* Primary vs. secondary data&lt;br /&gt;
* Qualitative vs. quantitative data&lt;br /&gt;
* Observational vs. experimental data&lt;br /&gt;
* Cross-sectional vs. longitudinal data&lt;br /&gt;
* Socio-economic vs. ecological data&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Type of data&lt;br /&gt;
!Names of data sources&lt;br /&gt;
|-&lt;br /&gt;
|Socio-economic data&lt;br /&gt;
|[https://dhsprogram.com/data/Model-Datasets.cfm DHS] ([[Course:Cons452/DHS|Explainer]] , [[Sample data]])&lt;br /&gt;
[https://usa.ipums.org/usa/index.shtml IPUMS] ([[Course:Cons452/IPUMS|Explainer]], [[Sample Data]])&lt;br /&gt;
&lt;br /&gt;
[http://surveys.worldbank.org/lsms LSMS] ([[Course:Cons452/LSMS|Explainer]] , [[Sample data]]) &lt;br /&gt;
&lt;br /&gt;
[https://sedac.ciesin.columbia.edu/data/collection/gpw-v4 Gridded Pop World] ([[Course:Cons452/GriddedPopWorld|Explainer]] , Sample data)&lt;br /&gt;
&lt;br /&gt;
[https://mics.unicef.org/ MICS] ([[Course:Cons452/MICS|Explainer]] , Sample data)&lt;br /&gt;
&lt;br /&gt;
[https://data.cifor.org/dataset.xhtml?persistentId=doi:10.17528/CIFOR/DATA.00021 PEN] ([[Course:Cons452/PEN|Explainer]], Sample data) &lt;br /&gt;
|-&lt;br /&gt;
|Climate data&lt;br /&gt;
|[https://www.worldclim.org WorldClim] ([[Course:Cons452/WorldClim|Explainer]], Sample data)&lt;br /&gt;
|-&lt;br /&gt;
|Land use data&lt;br /&gt;
|[https://earthenginepartners.appspot.com/science-2013-global-forest/download_v1.2.html Hansen Global Forest Change ] ([[Course:Cons452/Hansen|Explainer]] , [[Sample data]])&lt;br /&gt;
[https://www.protectedplanet.net/ World Database on Protected Areas] ([[Course:Cons452/WDPA|Explainer]] , Sample data)&lt;br /&gt;
&lt;br /&gt;
AgChange (Explainer , Sample data)&lt;br /&gt;
&lt;br /&gt;
[http://www.earthstat.org/ EarthStat] ([[Course:Cons452/EarthStat|Explainer]] , Sample data)&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;&#039;&#039;Data search engines&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|[https://earthengine.google.com/ Google Earth Engine]&lt;br /&gt;
&lt;br /&gt;
[https://energydata.info/ Energydata.info]&lt;br /&gt;
&lt;br /&gt;
[https://freegisdata.rtwilson.com/ Free GIS Data]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Data analysis ==&lt;br /&gt;
For CONS452, we are encouraging the use of R for all data analysis (at least non GIS). &lt;br /&gt;
&lt;br /&gt;
RStudio is pre-installed on all the desktop systems in the lab. For your personal computers, please download it [https://rstudio.com/products/rstudio/download/ here].&lt;br /&gt;
&lt;br /&gt;
R can perform all functions available in MS Excel. &lt;br /&gt;
&lt;br /&gt;
Detailed help/guidelines on R for this course are available on the &#039;&#039;&#039;&amp;lt;big&amp;gt;[[Course:Cons452/UsingR|&amp;lt;u&amp;gt;R Wiki page here&amp;lt;/u&amp;gt;]]&amp;lt;/big&amp;gt;&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
== All Subpages ==&lt;br /&gt;
&amp;lt;dpl&amp;gt; &lt;br /&gt;
titlematch=Cons452/% &lt;br /&gt;
namespace=Course &lt;br /&gt;
shownamespace=false&lt;br /&gt;
&amp;lt;/dpl&amp;gt;&lt;br /&gt;
[[Category:Assignments]]&lt;br /&gt;
[[Category:Labs]]&lt;/div&gt;</summary>
		<author><name>VikasMenghwani</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Course:Cons452&amp;diff=571959</id>
		<title>Course:Cons452</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Course:Cons452&amp;diff=571959"/>
		<updated>2019-11-22T23:38:25Z</updated>

		<summary type="html">&lt;p&gt;VikasMenghwani: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Navigating the transition to a sustainable world is humanity’s current challenge. This will require fostering resilient interacting systems of people and ecosystems (resilient social-ecological systems). In this course, students will utilize a suite of tools and ideas useful in managing ecosystem services in a sustainable way. Each week we focus on a different theme related to sustainability and resilience, and work as small teams to apply these ideas to a set of diverse landscapes throughout the world. &lt;br /&gt;
&lt;br /&gt;
Many of the lab exercises and group projects involve “hands-on” spatial analysis of land cover change using GIS and remote sensing. We also assess socio-economic data to examine issues such as energy poverty. These quantitative approaches help us move beyond arm-waving about sustainability to making some tough choices, using the best available scientific information.   &lt;br /&gt;
&lt;br /&gt;
== SDG resources ==&lt;br /&gt;
* [https://www.globalgoals.org/ Sustainable Development Goals]&lt;br /&gt;
* [https://sdg-tracker.org/ Tracking SDGs]&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Sustainable_Development_Goals SDGs on Wikipedia]&lt;br /&gt;
&lt;br /&gt;
== Data collection ==&lt;br /&gt;
&lt;br /&gt;
=== Understanding data ===&lt;br /&gt;
[[File:Understanding_data.png|frame|863x863px|&#039;&#039;&#039;This graphic shows how can one go about finding data, based on the research problem. Click here for the bigger [[Images/1/13/Understanding data.png|image]].&#039;&#039;&#039;]]&lt;br /&gt;
The group projects for CONS452 may rely on a variety of data types, depending on the problem context. Data may vary in their content, collection methods, scale, and formats. &lt;br /&gt;
* Primary vs. secondary data&lt;br /&gt;
* Qualitative vs. quantitative data&lt;br /&gt;
* Observational vs. experimental data&lt;br /&gt;
* Cross-sectional vs. longitudinal data&lt;br /&gt;
* Socio-economic vs. ecological data&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Type of data&lt;br /&gt;
!Names of data sources&lt;br /&gt;
|-&lt;br /&gt;
|Socio-economic data&lt;br /&gt;
|[https://dhsprogram.com/data/Model-Datasets.cfm DHS] ([[Course:Cons452/DHS|Explainer]] , [[Sample data]])&lt;br /&gt;
[https://usa.ipums.org/usa/index.shtml IPUMS] ([[Course:Cons452/IPUMS|Explainer]], [[Sample Data]])&lt;br /&gt;
&lt;br /&gt;
[http://surveys.worldbank.org/lsms LSMS] ([[Course:Cons452/LSMS|Explainer]] , [[Sample data]]) &lt;br /&gt;
&lt;br /&gt;
[https://sedac.ciesin.columbia.edu/data/collection/gpw-v4 Gridded Pop World] ([[Course:Cons452/GriddedPopWorld|Explainer]] , Sample data)&lt;br /&gt;
&lt;br /&gt;
[https://mics.unicef.org/ MICS] ([[Course:Cons452/MICS|Explainer]] , Sample data)&lt;br /&gt;
&lt;br /&gt;
[https://data.cifor.org/dataset.xhtml?persistentId=doi:10.17528/CIFOR/DATA.00021 PEN] ([[Course:Cons452/PEN|Explainer]], Sample data) &lt;br /&gt;
|-&lt;br /&gt;
|Climate data&lt;br /&gt;
|[https://www.worldclim.org WorldClim] ([[Course:Cons452/WorldClim|Explainer]], Sample data)&lt;br /&gt;
|-&lt;br /&gt;
|Land use data&lt;br /&gt;
|[https://earthenginepartners.appspot.com/science-2013-global-forest/download_v1.2.html Hansen Global Forest Change ] ([[Course:Cons452/Hansen|Explainer]] , [[Sample data]])&lt;br /&gt;
[https://www.protectedplanet.net/ World Database on Protected Areas] ([[Course:Cons452/WDPA|Explainer]] , Sample data)&lt;br /&gt;
&lt;br /&gt;
AgChange (Explainer , Sample data)&lt;br /&gt;
&lt;br /&gt;
[http://www.earthstat.org/ EarthStat] ([[Course:Cons452/EarthStat|Explainer]] , Sample data)&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;&#039;&#039;Data search engines&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|[https://earthengine.google.com/ Google Earth Engine]&lt;br /&gt;
&lt;br /&gt;
[https://energydata.info/ Energydata.info]&lt;br /&gt;
&lt;br /&gt;
[https://freegisdata.rtwilson.com/ Free GIS Data]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Data analysis ==&lt;br /&gt;
For CONS452, we are encouraging the use of R for all data analysis (at least non GIS). &lt;br /&gt;
&lt;br /&gt;
RStudio is pre-installed on all the desktop systems in the lab. For your personal computers, please download it [https://rstudio.com/products/rstudio/download/ here].&lt;br /&gt;
&lt;br /&gt;
R can perform all functions available in MS Excel. &lt;br /&gt;
&lt;br /&gt;
Detailed help/guidelines on R for this course are available on the &#039;&#039;&#039;&amp;lt;big&amp;gt;[[Course:Cons452/UsingR|&amp;lt;u&amp;gt;R Wiki page here&amp;lt;/u&amp;gt;]]&amp;lt;/big&amp;gt;&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
== All Subpages ==&lt;br /&gt;
&amp;lt;dpl&amp;gt; &lt;br /&gt;
titlematch=Cons452/% &lt;br /&gt;
namespace=Course &lt;br /&gt;
shownamespace=false&lt;br /&gt;
&amp;lt;/dpl&amp;gt;&lt;br /&gt;
[[Category:Assignments]]&lt;br /&gt;
[[Category:Labs]]&lt;/div&gt;</summary>
		<author><name>VikasMenghwani</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Course:Cons452&amp;diff=571958</id>
		<title>Course:Cons452</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Course:Cons452&amp;diff=571958"/>
		<updated>2019-11-22T23:33:10Z</updated>

		<summary type="html">&lt;p&gt;VikasMenghwani: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Navigating the transition to a sustainable world is humanity’s current challenge. This will require fostering resilient interacting systems of people and ecosystems (resilient social-ecological systems). In this course, students will utilize a suite of tools and ideas useful in managing ecosystem services in a sustainable way. Each week we focus on a different theme related to sustainability and resilience, and work as small teams to apply these ideas to a set of diverse landscapes throughout the world. &lt;br /&gt;
&lt;br /&gt;
Many of the lab exercises and group projects involve “hands-on” spatial analysis of land cover change using GIS and remote sensing. We also assess socio-economic data to examine issues such as energy poverty. These quantitative approaches help us move beyond arm-waving about sustainability to making some tough choices, using the best available scientific information.   &lt;br /&gt;
&lt;br /&gt;
== SDG resources ==&lt;br /&gt;
* [https://www.globalgoals.org/ Sustainable Development Goals]&lt;br /&gt;
* [https://sdg-tracker.org/ Tracking SDGs]&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Sustainable_Development_Goals SDGs on Wikipedia]&lt;br /&gt;
&lt;br /&gt;
== Data collection ==&lt;br /&gt;
&lt;br /&gt;
=== Understanding data ===&lt;br /&gt;
[[File:Understanding_data.png|frame|863x863px|&#039;&#039;&#039;This graphic shows how can one go about finding data, based on the research problem.&#039;&#039;&#039;]]&lt;br /&gt;
The group projects for CONS452 may rely on a variety of data types, depending on the problem context. Data may vary in their content, collection methods, scale, and formats. &lt;br /&gt;
* Primary vs. secondary data&lt;br /&gt;
* Qualitative vs. quantitative data&lt;br /&gt;
* Observational vs. experimental data&lt;br /&gt;
* Cross-sectional vs. longitudinal data&lt;br /&gt;
* Socio-economic vs. ecological data&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Type of data&lt;br /&gt;
!Names of data sources&lt;br /&gt;
|-&lt;br /&gt;
|Socio-economic data&lt;br /&gt;
|[https://dhsprogram.com/data/Model-Datasets.cfm DHS] ([[Course:Cons452/DHS|Explainer]] , [[Sample data]])&lt;br /&gt;
[https://usa.ipums.org/usa/index.shtml IPUMS] ([[Course:Cons452/IPUMS|Explainer]], [[Sample Data]])&lt;br /&gt;
&lt;br /&gt;
[http://surveys.worldbank.org/lsms LSMS] ([[Course:Cons452/LSMS|Explainer]] , [[Sample data]]) &lt;br /&gt;
&lt;br /&gt;
[https://sedac.ciesin.columbia.edu/data/collection/gpw-v4 Gridded Pop World] ([[Course:Cons452/GriddedPopWorld|Explainer]] , Sample data)&lt;br /&gt;
&lt;br /&gt;
[https://mics.unicef.org/ MICS] ([[Course:Cons452/MICS|Explainer]] , Sample data)&lt;br /&gt;
&lt;br /&gt;
[https://data.cifor.org/dataset.xhtml?persistentId=doi:10.17528/CIFOR/DATA.00021 PEN] ([[Course:Cons452/PEN|Explainer]], Sample data) &lt;br /&gt;
|-&lt;br /&gt;
|Climate data&lt;br /&gt;
|[https://www.worldclim.org WorldClim] ([[Course:Cons452/WorldClim|Explainer]], Sample data)&lt;br /&gt;
|-&lt;br /&gt;
|Land use data&lt;br /&gt;
|[https://earthenginepartners.appspot.com/science-2013-global-forest/download_v1.2.html Hansen Global Forest Change ] ([[Course:Cons452/Hansen|Explainer]] , [[Sample data]])&lt;br /&gt;
[https://www.protectedplanet.net/ World Database on Protected Areas] ([[Course:Cons452/WDPA|Explainer]] , Sample data)&lt;br /&gt;
&lt;br /&gt;
AgChange (Explainer , Sample data)&lt;br /&gt;
&lt;br /&gt;
[http://www.earthstat.org/ EarthStat] ([[Course:Cons452/EarthStat|Explainer]] , Sample data)&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;&#039;&#039;Data search engines&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|[https://earthengine.google.com/ Google Earth Engine]&lt;br /&gt;
&lt;br /&gt;
[https://energydata.info/ Energydata.info]&lt;br /&gt;
&lt;br /&gt;
[https://freegisdata.rtwilson.com/ Free GIS Data]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Data analysis ==&lt;br /&gt;
For CONS452, we are encouraging the use of R for all data analysis (at least non GIS). &lt;br /&gt;
&lt;br /&gt;
RStudio is pre-installed on all the desktop systems in the lab. For your personal computers, please download it [https://rstudio.com/products/rstudio/download/ here].&lt;br /&gt;
&lt;br /&gt;
R can perform all functions available in MS Excel. &lt;br /&gt;
&lt;br /&gt;
Detailed help/guidelines on R for this course are available on the &#039;&#039;&#039;&amp;lt;big&amp;gt;[[Course:Cons452/UsingR|&amp;lt;u&amp;gt;R Wiki page here&amp;lt;/u&amp;gt;]]&amp;lt;/big&amp;gt;&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
== All Subpages ==&lt;br /&gt;
&amp;lt;dpl&amp;gt; &lt;br /&gt;
titlematch=Cons452/% &lt;br /&gt;
namespace=Course &lt;br /&gt;
shownamespace=false&lt;br /&gt;
&amp;lt;/dpl&amp;gt;&lt;br /&gt;
[[Category:Assignments]]&lt;br /&gt;
[[Category:Labs]]&lt;/div&gt;</summary>
		<author><name>VikasMenghwani</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Course:Cons452&amp;diff=571957</id>
		<title>Course:Cons452</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Course:Cons452&amp;diff=571957"/>
		<updated>2019-11-22T23:30:26Z</updated>

		<summary type="html">&lt;p&gt;VikasMenghwani: /* Understanding data */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Navigating the transition to a sustainable world is humanity’s current challenge. This will require fostering resilient interacting systems of people and ecosystems (resilient social-ecological systems). In this course, students will utilize a suite of tools and ideas useful in managing ecosystem services in a sustainable way. Each week we focus on a different theme related to sustainability and resilience, and work as small teams to apply these ideas to a set of diverse landscapes throughout the world. &lt;br /&gt;
&lt;br /&gt;
Many of the lab exercises and group projects involve “hands-on” spatial analysis of land cover change using GIS and remote sensing. We also assess socio-economic data to examine issues such as energy poverty. These quantitative approaches help us move beyond arm-waving about sustainability to making some tough choices, using the best available scientific information.   &lt;br /&gt;
&lt;br /&gt;
== SDG resources ==&lt;br /&gt;
* [https://www.globalgoals.org/ Sustainable Development Goals]&lt;br /&gt;
* [https://sdg-tracker.org/ Tracking SDGs]&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Sustainable_Development_Goals SDGs on Wikipedia]&lt;br /&gt;
&lt;br /&gt;
== Data collection ==&lt;br /&gt;
&lt;br /&gt;
=== Understanding data ===&lt;br /&gt;
[[File:Understanding data.png|thumb|This graphic shows how can one go about finding data, based on the research problem.]]  &lt;br /&gt;
&lt;br /&gt;
The group projects for CONS452 may rely on a variety of data types, depending on the problem context. Data may vary in their content, collection methods, scale, and formats. &lt;br /&gt;
* Primary vs. secondary data&lt;br /&gt;
* Qualitative vs. quantitative data&lt;br /&gt;
* Observational vs. experimental data&lt;br /&gt;
* Cross-sectional vs. longitudinal data&lt;br /&gt;
* Socio-economic vs. ecological data&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Type of data&lt;br /&gt;
!Names of data sources&lt;br /&gt;
|-&lt;br /&gt;
|Socio-economic data&lt;br /&gt;
|[https://dhsprogram.com/data/Model-Datasets.cfm DHS] ([[Course:Cons452/DHS|Explainer]] , [[Sample data]])&lt;br /&gt;
[https://usa.ipums.org/usa/index.shtml IPUMS] ([[Course:Cons452/IPUMS|Explainer]], [[Sample Data]])&lt;br /&gt;
&lt;br /&gt;
[http://surveys.worldbank.org/lsms LSMS] ([[Course:Cons452/LSMS|Explainer]] , [[Sample data]]) &lt;br /&gt;
&lt;br /&gt;
[https://sedac.ciesin.columbia.edu/data/collection/gpw-v4 Gridded Pop World] ([[Course:Cons452/GriddedPopWorld|Explainer]] , Sample data)&lt;br /&gt;
&lt;br /&gt;
[https://mics.unicef.org/ MICS] ([[Course:Cons452/MICS|Explainer]] , Sample data)&lt;br /&gt;
&lt;br /&gt;
[https://data.cifor.org/dataset.xhtml?persistentId=doi:10.17528/CIFOR/DATA.00021 PEN] ([[Course:Cons452/PEN|Explainer]], Sample data) &lt;br /&gt;
|-&lt;br /&gt;
|Climate data&lt;br /&gt;
|[https://www.worldclim.org WorldClim] ([[Course:Cons452/WorldClim|Explainer]], Sample data)&lt;br /&gt;
|-&lt;br /&gt;
|Land use data&lt;br /&gt;
|[https://earthenginepartners.appspot.com/science-2013-global-forest/download_v1.2.html Hansen Global Forest Change ] ([[Course:Cons452/Hansen|Explainer]] , [[Sample data]])&lt;br /&gt;
[https://www.protectedplanet.net/ World Database on Protected Areas] ([[Course:Cons452/WDPA|Explainer]] , Sample data)&lt;br /&gt;
&lt;br /&gt;
AgChange (Explainer , Sample data)&lt;br /&gt;
&lt;br /&gt;
[http://www.earthstat.org/ EarthStat] ([[Course:Cons452/EarthStat|Explainer]] , Sample data)&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;&#039;&#039;Data search engines&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|[https://earthengine.google.com/ Google Earth Engine]&lt;br /&gt;
&lt;br /&gt;
[https://energydata.info/ Energydata.info]&lt;br /&gt;
&lt;br /&gt;
[https://freegisdata.rtwilson.com/ Free GIS Data]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Data analysis ==&lt;br /&gt;
For CONS452, we are encouraging the use of R for all data analysis (at least non GIS). &lt;br /&gt;
&lt;br /&gt;
RStudio is pre-installed on all the desktop systems in the lab. For your personal computers, please download it [https://rstudio.com/products/rstudio/download/ here].&lt;br /&gt;
&lt;br /&gt;
R can perform all functions available in MS Excel. &lt;br /&gt;
&lt;br /&gt;
Detailed help/guidelines on R for this course are available on the &#039;&#039;&#039;&amp;lt;big&amp;gt;[[Course:Cons452/UsingR|&amp;lt;u&amp;gt;R Wiki page here&amp;lt;/u&amp;gt;]]&amp;lt;/big&amp;gt;&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
== All Subpages ==&lt;br /&gt;
&amp;lt;dpl&amp;gt; &lt;br /&gt;
titlematch=Cons452/% &lt;br /&gt;
namespace=Course &lt;br /&gt;
shownamespace=false&lt;br /&gt;
&amp;lt;/dpl&amp;gt;&lt;br /&gt;
[[Category:Assignments]]&lt;br /&gt;
[[Category:Labs]]&lt;/div&gt;</summary>
		<author><name>VikasMenghwani</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Course:Cons452&amp;diff=571956</id>
		<title>Course:Cons452</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Course:Cons452&amp;diff=571956"/>
		<updated>2019-11-22T23:20:34Z</updated>

		<summary type="html">&lt;p&gt;VikasMenghwani: /* Understanding data */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Navigating the transition to a sustainable world is humanity’s current challenge. This will require fostering resilient interacting systems of people and ecosystems (resilient social-ecological systems). In this course, students will utilize a suite of tools and ideas useful in managing ecosystem services in a sustainable way. Each week we focus on a different theme related to sustainability and resilience, and work as small teams to apply these ideas to a set of diverse landscapes throughout the world. &lt;br /&gt;
&lt;br /&gt;
Many of the lab exercises and group projects involve “hands-on” spatial analysis of land cover change using GIS and remote sensing. We also assess socio-economic data to examine issues such as energy poverty. These quantitative approaches help us move beyond arm-waving about sustainability to making some tough choices, using the best available scientific information.   &lt;br /&gt;
&lt;br /&gt;
== SDG resources ==&lt;br /&gt;
* [https://www.globalgoals.org/ Sustainable Development Goals]&lt;br /&gt;
* [https://sdg-tracker.org/ Tracking SDGs]&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Sustainable_Development_Goals SDGs on Wikipedia]&lt;br /&gt;
&lt;br /&gt;
== Data collection ==&lt;br /&gt;
&lt;br /&gt;
=== Understanding data === &lt;br /&gt;
 &lt;br /&gt;
The group projects for CONS452 may rely on a variety of data types, depending on the problem context. Data may vary in their content, collection methods, scale, and formats. &lt;br /&gt;
* Primary vs. secondary data&lt;br /&gt;
* Qualitative vs. quantitative data&lt;br /&gt;
* Observational vs. experimental data&lt;br /&gt;
* Cross-sectional vs. longitudinal data&lt;br /&gt;
* Socio-economic vs. ecological data&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Type of data&lt;br /&gt;
!Names of data sources&lt;br /&gt;
|-&lt;br /&gt;
|Socio-economic data&lt;br /&gt;
|[https://dhsprogram.com/data/Model-Datasets.cfm DHS] ([[Course:Cons452/DHS|Explainer]] , [[Sample data]])&lt;br /&gt;
[https://usa.ipums.org/usa/index.shtml IPUMS] ([[Course:Cons452/IPUMS|Explainer]], [[Sample Data]])&lt;br /&gt;
&lt;br /&gt;
[http://surveys.worldbank.org/lsms LSMS] ([[Course:Cons452/LSMS|Explainer]] , [[Sample data]]) &lt;br /&gt;
&lt;br /&gt;
[https://sedac.ciesin.columbia.edu/data/collection/gpw-v4 Gridded Pop World] ([[Course:Cons452/GriddedPopWorld|Explainer]] , Sample data)&lt;br /&gt;
&lt;br /&gt;
[https://mics.unicef.org/ MICS] ([[Course:Cons452/MICS|Explainer]] , Sample data)&lt;br /&gt;
&lt;br /&gt;
[https://data.cifor.org/dataset.xhtml?persistentId=doi:10.17528/CIFOR/DATA.00021 PEN] ([[Course:Cons452/PEN|Explainer]], Sample data) &lt;br /&gt;
|-&lt;br /&gt;
|Climate data&lt;br /&gt;
|[https://www.worldclim.org WorldClim] ([[Course:Cons452/WorldClim|Explainer]], Sample data)&lt;br /&gt;
|-&lt;br /&gt;
|Land use data&lt;br /&gt;
|[https://earthenginepartners.appspot.com/science-2013-global-forest/download_v1.2.html Hansen Global Forest Change ] ([[Course:Cons452/Hansen|Explainer]] , [[Sample data]])&lt;br /&gt;
[https://www.protectedplanet.net/ World Database on Protected Areas] ([[Course:Cons452/WDPA|Explainer]] , Sample data)&lt;br /&gt;
&lt;br /&gt;
AgChange (Explainer , Sample data)&lt;br /&gt;
&lt;br /&gt;
[http://www.earthstat.org/ EarthStat] ([[Course:Cons452/EarthStat|Explainer]] , Sample data)&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;&#039;&#039;Data search engines&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|[https://earthengine.google.com/ Google Earth Engine]&lt;br /&gt;
&lt;br /&gt;
[https://energydata.info/ Energydata.info]&lt;br /&gt;
&lt;br /&gt;
[https://freegisdata.rtwilson.com/ Free GIS Data]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Data analysis ==&lt;br /&gt;
For CONS452, we are encouraging the use of R for all data analysis (at least non GIS). &lt;br /&gt;
&lt;br /&gt;
RStudio is pre-installed on all the desktop systems in the lab. For your personal computers, please download it [https://rstudio.com/products/rstudio/download/ here].&lt;br /&gt;
&lt;br /&gt;
R can perform all functions available in MS Excel. &lt;br /&gt;
&lt;br /&gt;
Detailed help/guidelines on R for this course are available on the &#039;&#039;&#039;&amp;lt;big&amp;gt;[[Course:Cons452/UsingR|&amp;lt;u&amp;gt;R Wiki page here&amp;lt;/u&amp;gt;]]&amp;lt;/big&amp;gt;&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
== All Subpages ==&lt;br /&gt;
&amp;lt;dpl&amp;gt; &lt;br /&gt;
titlematch=Cons452/% &lt;br /&gt;
namespace=Course &lt;br /&gt;
shownamespace=false&lt;br /&gt;
&amp;lt;/dpl&amp;gt;&lt;br /&gt;
[[Category:Assignments]]&lt;br /&gt;
[[Category:Labs]]&lt;/div&gt;</summary>
		<author><name>VikasMenghwani</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=File:Understanding_data.png&amp;diff=571955</id>
		<title>File:Understanding data.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=File:Understanding_data.png&amp;diff=571955"/>
		<updated>2019-11-22T23:16:23Z</updated>

		<summary type="html">&lt;p&gt;VikasMenghwani: User created page with UploadWizard&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=={{int:filedesc}}==&lt;br /&gt;
{{Information&lt;br /&gt;
|description={{en|1=This graphic shows how can one go about finding data, based on the research problem.}}&lt;br /&gt;
|date=2019-11-07&lt;br /&gt;
|source={{own}}&lt;br /&gt;
|author=[[User:VikasMenghwani|VikasMenghwani]]&lt;br /&gt;
|permission=&lt;br /&gt;
|other versions=&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=={{int:license-header}}==&lt;br /&gt;
{{self|cc-by-sa-4.0}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Tools, Data]]&lt;/div&gt;</summary>
		<author><name>VikasMenghwani</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Course:Cons452/UsingR&amp;diff=570337</id>
		<title>Course:Cons452/UsingR</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Course:Cons452/UsingR&amp;diff=570337"/>
		<updated>2019-11-08T02:47:20Z</updated>

		<summary type="html">&lt;p&gt;VikasMenghwani: /* Getting familiar */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What is R ==&lt;br /&gt;
[[File:R_vs_R_studio.png|thumb|R studio relies on the R programming language and uses it to write statistical programs. R studio can then be used to perform statistical analysis. R is the engine, while R studio is like the dashboard.|564x564px]]R is a programming language and a open source software environment for statistical computing, and is widely used for [https://en.wikipedia.org/wiki/Data_analysis data analysis]. R allows an extraordinary range of statistical calculations. It is a free program, mainly written by voluntary contributions from statisticians around the world. R has its home page at https://www.r-project.org/. &lt;br /&gt;
&lt;br /&gt;
For this course, to utilize R for various statistical analysis, we will use [https://en.wikipedia.org/wiki/RStudio R Studio], which is an [https://en.wikipedia.org/wiki/Integrated_development_environment Integrated Development Environment] (IDE). There are other IDEs available for running R but R Studio is the most popularly used. The picture below depicts the main difference between the two. &lt;br /&gt;
== Installing R and R Studio Desktop ==&lt;br /&gt;
You need to install both R and R studio on your computer. First, you should install R, followed by R Studio. We will be relying on R Studio Desktop version (it also has a cloud version called R Studio Server)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!R&lt;br /&gt;
!R Studio&lt;br /&gt;
|-&lt;br /&gt;
|Download: &lt;br /&gt;
# Go to https://cran.r-project.org/&lt;br /&gt;
# Click on download links on the top of the page&lt;br /&gt;
#* For &#039;&#039;&#039;Mac OS&#039;&#039;&#039;, click on Download R for (Mac) OS X&lt;br /&gt;
#** Click on the latest &amp;lt;code&amp;gt;.pkg&amp;lt;/code&amp;gt; file e.g. &amp;lt;code&amp;gt;R-3.6.1.pkg&amp;lt;/code&amp;gt;&lt;br /&gt;
#* For &#039;&#039;&#039;Windows&#039;&#039;&#039;, click on Download R for Windows&lt;br /&gt;
#** Click on &#039;&#039;&#039;&amp;lt;u&amp;gt;install R for the first time&amp;lt;/u&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
#** Click on the top most Download link&lt;br /&gt;
# Click on the downloaded files and follow the installation instructions.&lt;br /&gt;
|Download: &lt;br /&gt;
# Go to https://rstudio.com/products/rstudio/download/&lt;br /&gt;
# Click and download the appropriate file depending on your operating system.&lt;br /&gt;
# Click on the downloaded files and follow the installation instructions.&lt;br /&gt;
|}&lt;br /&gt;
After installing, access R Studio like you would access any other application on your computer. It may be useful to add a desktop shortcut for easy access.&lt;br /&gt;
&lt;br /&gt;
== Getting familiar ==&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;small&amp;gt;Data types and Data structures&amp;lt;/small&amp;gt;&amp;lt;ref&amp;gt;{{Cite web|url=https://swcarpentry.github.io/r-novice-inflammation/13-supp-data-structures/|title=Data Types and Structures|last=|first=|date=|website=|archive-url=|archive-date=|dead-url=|access-date=November 7, 2019}}&amp;lt;/ref&amp;gt; ===&lt;br /&gt;
&lt;br /&gt;
Everything in R is an object.&lt;br /&gt;
&lt;br /&gt;
R has basic 6 data types:&lt;br /&gt;
* character: &amp;lt;code&amp;gt;&amp;quot;cons452&amp;quot;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;quot;lab&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
* numeric: &amp;lt;code&amp;gt;2&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;13.4&amp;lt;/code&amp;gt;&lt;br /&gt;
* integer: &amp;lt;code&amp;gt;3L&amp;lt;/code&amp;gt; (&amp;lt;code&amp;gt;L&amp;lt;/code&amp;gt; is for telling R to store this as an integer)&lt;br /&gt;
* logical: &amp;lt;code&amp;gt;True&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;False&amp;lt;/code&amp;gt;&lt;br /&gt;
* complex:&amp;lt;code&amp;gt;3+4i&amp;lt;/code&amp;gt;&lt;br /&gt;
A simple object in R could be a collection of elements - e.g. sequence of numbers. When all elements are of the same data type, it is called a &#039;&#039;&#039;vector&#039;&#039;&#039; (more specifically atomic vector). Vector is the simplest data structure in R. R data structures include:&lt;br /&gt;
* atomic vector&lt;br /&gt;
* list&lt;br /&gt;
* matrix&lt;br /&gt;
* &#039;&#039;&#039;data frame&#039;&#039;&#039;&lt;br /&gt;
* factors&lt;br /&gt;
For the purpose of CONS 452, data frame is the most relevant data structure. A typical data file (a spreadsheet where columns represent different variables and the rows involve observations), resembles a Data frame in R.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Navigating the Interface:&#039;&#039;&#039; &lt;br /&gt;
*&amp;quot;getting familiar&amp;quot; with interface ; ie: command line, saving your code, defining variables] &lt;br /&gt;
&#039;&#039;&#039;Packages:&#039;&#039;&#039;&lt;br /&gt;
*To performing a particular task, there are numerous approaches within R - they are linked to various packages. Follow these instructions to download a package of choice.  [insert PDF &amp;quot;How to Download a Package] &lt;br /&gt;
== Reading data ==&lt;br /&gt;
&#039;&#039;&#039;Importing Data Cheatsheet :&#039;&#039;&#039;&lt;br /&gt;
* &lt;br /&gt;
[[File:Data_Import_CS.pdf|thumb|The Data Import cheat sheet reminds you how to read in flat files with http://readr.tidyverse.org/, work with the results as tibbles, and reshape messy data with tidyr. Use tidyr to reshape your tables into tidy data, the data format that works the most seamlessly with R and the tidyverse]] &lt;br /&gt;
*Reading in .csv files&lt;br /&gt;
* Reading other formats:&lt;br /&gt;
** converting .dta to .csv&lt;br /&gt;
** &lt;br /&gt;
&lt;br /&gt;
Exporting or writing your output file back as a table (.csv)&lt;br /&gt;
&lt;br /&gt;
== Data Transformation ==&lt;br /&gt;
Packages used: tydyr, dplyr&lt;br /&gt;
&lt;br /&gt;
* Date Transformation with [https://wiki.ubc.ca/images/6/6d/Data_Transformation_CS.pdf dplyr Cheatsheet]&lt;br /&gt;
** dplyr provides a grammar for manipulating tables in R. This cheat sheet will guide you through the grammar, reminding you how to select, filter, arrange, mutate, summarise, group, and join data frames and tibbles. &lt;br /&gt;
*Data Manipulation with [https://wiki.ubc.ca/images/7/73/Data_Table_CS.pdf data table Cheatsheet]  &lt;br /&gt;
*Reading your data &lt;br /&gt;
* Adding columns or changing columns&lt;br /&gt;
* Deleting/subsetting&lt;br /&gt;
* Performing simple algebra or Tabular data (excel like analysis)&lt;br /&gt;
&lt;br /&gt;
== Data visualization ==&lt;br /&gt;
Packages used: ggplot2&lt;br /&gt;
* ggplot2 Cheatsheet: [[File:Ggplot2_CS.pdf|thumb|Datavisualization with ggplot2]]&lt;br /&gt;
* Scatter Plot&lt;br /&gt;
* Frequency plots&lt;br /&gt;
* Boxplots&lt;br /&gt;
* &lt;br /&gt;
&lt;br /&gt;
== Data analysis ==&lt;br /&gt;
Packages used:&lt;br /&gt;
&lt;br /&gt;
* Descriptive statistics&lt;br /&gt;
** Summarizing data (mean, median, sd etc.)&lt;br /&gt;
** box plots&lt;br /&gt;
* Statistical tests&lt;br /&gt;
** linear regression&lt;br /&gt;
** t-tests, ANOVA&lt;br /&gt;
** Summarizing regression results&lt;br /&gt;
&lt;br /&gt;
* &lt;br /&gt;
&lt;br /&gt;
== Cheatsheets ==&lt;br /&gt;
Cheatsheets are pamphlet like utility documents for specific purposes. They contain shortcut instructions either for numerous functions from within a particular R package or for a certain category of useful functions. We encourage you to keep these cheatsheet pdf files handy. &lt;br /&gt;
* [https://resources.rstudio.com/rstudio-cheatsheets/rstudio-ide-cheat-sheet R Studio IDE] &lt;br /&gt;
* [https://wiki.ubc.ca/images/c/cf/Basic_R_CS.pdf Basics] &lt;br /&gt;
* [https://wiki.ubc.ca/images/2/29/Data_Import_CS.pdf Data import] &lt;br /&gt;
* R Markdown Cheatsheet:&lt;br /&gt;
&lt;br /&gt;
== Organizing your workspace and files ==&lt;br /&gt;
* To minimize revision of the code within the team, while working on your project, it would be useful to save your files on the coursedrive&lt;br /&gt;
* Have a folder with your project name on the course drive&lt;br /&gt;
* Let the instruction for reading your .csv file be like the following&lt;br /&gt;
{{YouTube|id=OJ4WBjV5o1I|width=|height=400}}&lt;br /&gt;
&lt;br /&gt;
* &lt;br /&gt;
*&lt;br /&gt;
== References ==&lt;/div&gt;</summary>
		<author><name>VikasMenghwani</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Course:Cons452/UsingR&amp;diff=570336</id>
		<title>Course:Cons452/UsingR</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Course:Cons452/UsingR&amp;diff=570336"/>
		<updated>2019-11-08T02:43:10Z</updated>

		<summary type="html">&lt;p&gt;VikasMenghwani: /* Organizing your workspace and files */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What is R ==&lt;br /&gt;
[[File:R_vs_R_studio.png|thumb|R studio relies on the R programming language and uses it to write statistical programs. R studio can then be used to perform statistical analysis. R is the engine, while R studio is like the dashboard.|564x564px]]R is a programming language and a open source software environment for statistical computing, and is widely used for [https://en.wikipedia.org/wiki/Data_analysis data analysis]. R allows an extraordinary range of statistical calculations. It is a free program, mainly written by voluntary contributions from statisticians around the world. R has its home page at https://www.r-project.org/. &lt;br /&gt;
&lt;br /&gt;
For this course, to utilize R for various statistical analysis, we will use [https://en.wikipedia.org/wiki/RStudio R Studio], which is an [https://en.wikipedia.org/wiki/Integrated_development_environment Integrated Development Environment] (IDE). There are other IDEs available for running R but R Studio is the most popularly used. The picture below depicts the main difference between the two. &lt;br /&gt;
== Installing R and R Studio Desktop ==&lt;br /&gt;
You need to install both R and R studio on your computer. First, you should install R, followed by R Studio. We will be relying on R Studio Desktop version (it also has a cloud version called R Studio Server)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!R&lt;br /&gt;
!R Studio&lt;br /&gt;
|-&lt;br /&gt;
|Download: &lt;br /&gt;
# Go to https://cran.r-project.org/&lt;br /&gt;
# Click on download links on the top of the page&lt;br /&gt;
#* For &#039;&#039;&#039;Mac OS&#039;&#039;&#039;, click on Download R for (Mac) OS X&lt;br /&gt;
#** Click on the latest &amp;lt;code&amp;gt;.pkg&amp;lt;/code&amp;gt; file e.g. &amp;lt;code&amp;gt;R-3.6.1.pkg&amp;lt;/code&amp;gt;&lt;br /&gt;
#* For &#039;&#039;&#039;Windows&#039;&#039;&#039;, click on Download R for Windows&lt;br /&gt;
#** Click on &#039;&#039;&#039;&amp;lt;u&amp;gt;install R for the first time&amp;lt;/u&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
#** Click on the top most Download link&lt;br /&gt;
# Click on the downloaded files and follow the installation instructions.&lt;br /&gt;
|Download: &lt;br /&gt;
# Go to https://rstudio.com/products/rstudio/download/&lt;br /&gt;
# Click and download the appropriate file depending on your operating system.&lt;br /&gt;
# Click on the downloaded files and follow the installation instructions.&lt;br /&gt;
|}&lt;br /&gt;
After installing, access R Studio like you would access any other application on your computer. It may be useful to add a desktop shortcut for easy access.&lt;br /&gt;
&lt;br /&gt;
== Getting familiar ==&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;small&amp;gt;Data types and Data structures&amp;lt;/small&amp;gt;&amp;lt;ref&amp;gt;{{Cite web|url=https://swcarpentry.github.io/r-novice-inflammation/13-supp-data-structures/|title=Data Types and Structures|last=|first=|date=|website=|archive-url=|archive-date=|dead-url=|access-date=November 7, 2019}}&amp;lt;/ref&amp;gt; ===&lt;br /&gt;
&lt;br /&gt;
Everything in R is an object.&lt;br /&gt;
&lt;br /&gt;
R has basic 6 data types:&lt;br /&gt;
* character: &amp;lt;code&amp;gt;&amp;quot;cons452&amp;quot;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;quot;lab&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
* numeric: &amp;lt;code&amp;gt;2&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;13.4&amp;lt;/code&amp;gt;&lt;br /&gt;
* integer: &amp;lt;code&amp;gt;3L&amp;lt;/code&amp;gt; (&amp;lt;code&amp;gt;L&amp;lt;/code&amp;gt; is for telling R to store this as an integer)&lt;br /&gt;
* logical: &amp;lt;code&amp;gt;True&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;False&amp;lt;/code&amp;gt;&lt;br /&gt;
* complex:&amp;lt;code&amp;gt;3+4i&amp;lt;/code&amp;gt;&lt;br /&gt;
A simple object in R could be a collection of elements - e.g. sequence of numbers. When all elements are of the same data type, it is called a &#039;&#039;&#039;vector&#039;&#039;&#039;. Vector is the simplest data structure in R. R data structures include:&lt;br /&gt;
* atomic vector&lt;br /&gt;
* list&lt;br /&gt;
* matrix&lt;br /&gt;
* &#039;&#039;&#039;data frame&#039;&#039;&#039;&lt;br /&gt;
* factors&lt;br /&gt;
For the purpose of CONS 452, data frame is the most relevant data structure. A typical data file (a spreadsheet where columns represent different variables and the rows involve observations), resembles a Data frame in R.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Navigating the Interface:&#039;&#039;&#039; &lt;br /&gt;
*&amp;quot;getting familiar&amp;quot; with interface ; ie: command line, saving your code, defining variables] &lt;br /&gt;
&#039;&#039;&#039;Packages:&#039;&#039;&#039;&lt;br /&gt;
*To performing a particular task, there are numerous approaches within R - they are linked to various packages. Follow these instructions to download a package of choice.  [insert PDF &amp;quot;How to Download a Package] &lt;br /&gt;
== Reading data ==&lt;br /&gt;
&#039;&#039;&#039;Importing Data Cheatsheet :&#039;&#039;&#039;&lt;br /&gt;
* &lt;br /&gt;
[[File:Data_Import_CS.pdf|thumb|The Data Import cheat sheet reminds you how to read in flat files with http://readr.tidyverse.org/, work with the results as tibbles, and reshape messy data with tidyr. Use tidyr to reshape your tables into tidy data, the data format that works the most seamlessly with R and the tidyverse]] &lt;br /&gt;
*Reading in .csv files&lt;br /&gt;
* Reading other formats:&lt;br /&gt;
** converting .dta to .csv&lt;br /&gt;
** &lt;br /&gt;
&lt;br /&gt;
Exporting or writing your output file back as a table (.csv)&lt;br /&gt;
&lt;br /&gt;
== Data Transformation ==&lt;br /&gt;
Packages used: tydyr, dplyr&lt;br /&gt;
&lt;br /&gt;
* Date Transformation with dplyr Cheatsheet: [[File:Data_Transformation_CS.pdf|thumb|dplyr provides a grammar for manipulating tables in R. This cheat sheet will guide you through the grammar, reminding you how to select, filter, arrange, mutate, summarise, group, and join data frames and tibbles.]]&lt;br /&gt;
*Data Manipulation with data table Cheatsheet: [[File:Data_Table_CS.pdf|thumb|Data manipulation with data.table.]] &lt;br /&gt;
*Reading your data &lt;br /&gt;
* Adding columns or changing columns&lt;br /&gt;
* Deleting/subsetting&lt;br /&gt;
* Performing simple algebra or Tabular data (excel like analysis)&lt;br /&gt;
&lt;br /&gt;
== Data visualization ==&lt;br /&gt;
Packages used: ggplot2&lt;br /&gt;
* ggplot2 Cheatsheet: [[File:Ggplot2_CS.pdf|thumb|Datavisualization with ggplot2]]&lt;br /&gt;
* Scatter Plot&lt;br /&gt;
* Frequency plots&lt;br /&gt;
* Boxplots&lt;br /&gt;
* &lt;br /&gt;
&lt;br /&gt;
== Data analysis ==&lt;br /&gt;
Packages used:&lt;br /&gt;
&lt;br /&gt;
* Descriptive statistics&lt;br /&gt;
** Summarizing data (mean, median, sd etc.)&lt;br /&gt;
** box plots&lt;br /&gt;
* Statistical tests&lt;br /&gt;
** linear regression&lt;br /&gt;
** t-tests, ANOVA&lt;br /&gt;
** Summarizing regression results&lt;br /&gt;
&lt;br /&gt;
* &lt;br /&gt;
&lt;br /&gt;
== Cheatsheets ==&lt;br /&gt;
Cheatsheets are pamphlet like utility documents for specific purposes. They contain shortcut instructions either for numerous functions from within a particular R package or for a certain category of useful functions. We encourage you to keep these cheatsheet pdf files handy. &lt;br /&gt;
* [https://resources.rstudio.com/rstudio-cheatsheets/rstudio-ide-cheat-sheet R Studio IDE] &lt;br /&gt;
* [https://wiki.ubc.ca/images/c/cf/Basic_R_CS.pdf Basics] &lt;br /&gt;
* [https://wiki.ubc.ca/images/2/29/Data_Import_CS.pdf Data import] &lt;br /&gt;
* R Markdown Cheatsheet:&lt;br /&gt;
&lt;br /&gt;
== Organizing your workspace and files ==&lt;br /&gt;
* To minimize revision of the code within the team, while working on your project, it would be useful to save your files on the coursedrive&lt;br /&gt;
* Have a folder with your project name on the course drive&lt;br /&gt;
* Let the instruction for reading your .csv file be like the following&lt;br /&gt;
{{YouTube|id=OJ4WBjV5o1I|width=|height=400}}&lt;br /&gt;
&lt;br /&gt;
* &lt;br /&gt;
*&lt;br /&gt;
== References ==&lt;/div&gt;</summary>
		<author><name>VikasMenghwani</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Course:Cons452/UsingR&amp;diff=570335</id>
		<title>Course:Cons452/UsingR</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Course:Cons452/UsingR&amp;diff=570335"/>
		<updated>2019-11-08T02:42:04Z</updated>

		<summary type="html">&lt;p&gt;VikasMenghwani: /* Data types and Data structures[1] */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What is R ==&lt;br /&gt;
[[File:R_vs_R_studio.png|thumb|R studio relies on the R programming language and uses it to write statistical programs. R studio can then be used to perform statistical analysis. R is the engine, while R studio is like the dashboard.|564x564px]]R is a programming language and a open source software environment for statistical computing, and is widely used for [https://en.wikipedia.org/wiki/Data_analysis data analysis]. R allows an extraordinary range of statistical calculations. It is a free program, mainly written by voluntary contributions from statisticians around the world. R has its home page at https://www.r-project.org/. &lt;br /&gt;
&lt;br /&gt;
For this course, to utilize R for various statistical analysis, we will use [https://en.wikipedia.org/wiki/RStudio R Studio], which is an [https://en.wikipedia.org/wiki/Integrated_development_environment Integrated Development Environment] (IDE). There are other IDEs available for running R but R Studio is the most popularly used. The picture below depicts the main difference between the two. &lt;br /&gt;
== Installing R and R Studio Desktop ==&lt;br /&gt;
You need to install both R and R studio on your computer. First, you should install R, followed by R Studio. We will be relying on R Studio Desktop version (it also has a cloud version called R Studio Server)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!R&lt;br /&gt;
!R Studio&lt;br /&gt;
|-&lt;br /&gt;
|Download: &lt;br /&gt;
# Go to https://cran.r-project.org/&lt;br /&gt;
# Click on download links on the top of the page&lt;br /&gt;
#* For &#039;&#039;&#039;Mac OS&#039;&#039;&#039;, click on Download R for (Mac) OS X&lt;br /&gt;
#** Click on the latest &amp;lt;code&amp;gt;.pkg&amp;lt;/code&amp;gt; file e.g. &amp;lt;code&amp;gt;R-3.6.1.pkg&amp;lt;/code&amp;gt;&lt;br /&gt;
#* For &#039;&#039;&#039;Windows&#039;&#039;&#039;, click on Download R for Windows&lt;br /&gt;
#** Click on &#039;&#039;&#039;&amp;lt;u&amp;gt;install R for the first time&amp;lt;/u&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
#** Click on the top most Download link&lt;br /&gt;
# Click on the downloaded files and follow the installation instructions.&lt;br /&gt;
|Download: &lt;br /&gt;
# Go to https://rstudio.com/products/rstudio/download/&lt;br /&gt;
# Click and download the appropriate file depending on your operating system.&lt;br /&gt;
# Click on the downloaded files and follow the installation instructions.&lt;br /&gt;
|}&lt;br /&gt;
After installing, access R Studio like you would access any other application on your computer. It may be useful to add a desktop shortcut for easy access.&lt;br /&gt;
&lt;br /&gt;
== Getting familiar ==&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;small&amp;gt;Data types and Data structures&amp;lt;/small&amp;gt;&amp;lt;ref&amp;gt;{{Cite web|url=https://swcarpentry.github.io/r-novice-inflammation/13-supp-data-structures/|title=Data Types and Structures|last=|first=|date=|website=|archive-url=|archive-date=|dead-url=|access-date=November 7, 2019}}&amp;lt;/ref&amp;gt; ===&lt;br /&gt;
&lt;br /&gt;
Everything in R is an object.&lt;br /&gt;
&lt;br /&gt;
R has basic 6 data types:&lt;br /&gt;
* character: &amp;lt;code&amp;gt;&amp;quot;cons452&amp;quot;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;quot;lab&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
* numeric: &amp;lt;code&amp;gt;2&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;13.4&amp;lt;/code&amp;gt;&lt;br /&gt;
* integer: &amp;lt;code&amp;gt;3L&amp;lt;/code&amp;gt; (&amp;lt;code&amp;gt;L&amp;lt;/code&amp;gt; is for telling R to store this as an integer)&lt;br /&gt;
* logical: &amp;lt;code&amp;gt;True&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;False&amp;lt;/code&amp;gt;&lt;br /&gt;
* complex:&amp;lt;code&amp;gt;3+4i&amp;lt;/code&amp;gt;&lt;br /&gt;
A simple object in R could be a collection of elements - e.g. sequence of numbers. When all elements are of the same data type, it is called a &#039;&#039;&#039;vector&#039;&#039;&#039;. Vector is the simplest data structure in R. R data structures include:&lt;br /&gt;
* atomic vector&lt;br /&gt;
* list&lt;br /&gt;
* matrix&lt;br /&gt;
* &#039;&#039;&#039;data frame&#039;&#039;&#039;&lt;br /&gt;
* factors&lt;br /&gt;
For the purpose of CONS 452, data frame is the most relevant data structure. A typical data file (a spreadsheet where columns represent different variables and the rows involve observations), resembles a Data frame in R.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Navigating the Interface:&#039;&#039;&#039; &lt;br /&gt;
*&amp;quot;getting familiar&amp;quot; with interface ; ie: command line, saving your code, defining variables] &lt;br /&gt;
&#039;&#039;&#039;Packages:&#039;&#039;&#039;&lt;br /&gt;
*To performing a particular task, there are numerous approaches within R - they are linked to various packages. Follow these instructions to download a package of choice.  [insert PDF &amp;quot;How to Download a Package] &lt;br /&gt;
== Reading data ==&lt;br /&gt;
&#039;&#039;&#039;Importing Data Cheatsheet :&#039;&#039;&#039;&lt;br /&gt;
* &lt;br /&gt;
[[File:Data_Import_CS.pdf|thumb|The Data Import cheat sheet reminds you how to read in flat files with http://readr.tidyverse.org/, work with the results as tibbles, and reshape messy data with tidyr. Use tidyr to reshape your tables into tidy data, the data format that works the most seamlessly with R and the tidyverse]] &lt;br /&gt;
*Reading in .csv files&lt;br /&gt;
* Reading other formats:&lt;br /&gt;
** converting .dta to .csv&lt;br /&gt;
** &lt;br /&gt;
&lt;br /&gt;
Exporting or writing your output file back as a table (.csv)&lt;br /&gt;
&lt;br /&gt;
== Data Transformation ==&lt;br /&gt;
Packages used: tydyr, dplyr&lt;br /&gt;
&lt;br /&gt;
* Date Transformation with dplyr Cheatsheet: [[File:Data_Transformation_CS.pdf|thumb|dplyr provides a grammar for manipulating tables in R. This cheat sheet will guide you through the grammar, reminding you how to select, filter, arrange, mutate, summarise, group, and join data frames and tibbles.]]&lt;br /&gt;
*Data Manipulation with data table Cheatsheet: [[File:Data_Table_CS.pdf|thumb|Data manipulation with data.table.]] &lt;br /&gt;
*Reading your data &lt;br /&gt;
* Adding columns or changing columns&lt;br /&gt;
* Deleting/subsetting&lt;br /&gt;
* Performing simple algebra or Tabular data (excel like analysis)&lt;br /&gt;
&lt;br /&gt;
== Data visualization ==&lt;br /&gt;
Packages used: ggplot2&lt;br /&gt;
* ggplot2 Cheatsheet: [[File:Ggplot2_CS.pdf|thumb|Datavisualization with ggplot2]]&lt;br /&gt;
* Scatter Plot&lt;br /&gt;
* Frequency plots&lt;br /&gt;
* Boxplots&lt;br /&gt;
* &lt;br /&gt;
&lt;br /&gt;
== Data analysis ==&lt;br /&gt;
Packages used:&lt;br /&gt;
&lt;br /&gt;
* Descriptive statistics&lt;br /&gt;
** Summarizing data (mean, median, sd etc.)&lt;br /&gt;
** box plots&lt;br /&gt;
* Statistical tests&lt;br /&gt;
** linear regression&lt;br /&gt;
** t-tests, ANOVA&lt;br /&gt;
** Summarizing regression results&lt;br /&gt;
&lt;br /&gt;
* &lt;br /&gt;
&lt;br /&gt;
== Cheatsheets ==&lt;br /&gt;
Cheatsheets are pamphlet like utility documents for specific purposes. They contain shortcut instructions either for numerous functions from within a particular R package or for a certain category of useful functions. We encourage you to keep these cheatsheet pdf files handy. &lt;br /&gt;
* [https://resources.rstudio.com/rstudio-cheatsheets/rstudio-ide-cheat-sheet R Studio IDE] &lt;br /&gt;
* [https://wiki.ubc.ca/images/c/cf/Basic_R_CS.pdf Basics] &lt;br /&gt;
* [https://wiki.ubc.ca/images/2/29/Data_Import_CS.pdf Data import] &lt;br /&gt;
* R Markdown Cheatsheet:&lt;br /&gt;
&lt;br /&gt;
== Organizing your workspace and files ==&lt;br /&gt;
* To minimize revision of the code within the team, while working on your project, it would be useful to save your files on the coursedrive&lt;br /&gt;
* Have a folder with your project name on the course drive&lt;br /&gt;
* Let the instruction for reading your .csv file be like the following&lt;br /&gt;
{{YouTube|id=OJ4WBjV5o1I|width=|height=400}}&lt;br /&gt;
&lt;br /&gt;
* &lt;br /&gt;
*&lt;/div&gt;</summary>
		<author><name>VikasMenghwani</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Course:Cons452/UsingR&amp;diff=570332</id>
		<title>Course:Cons452/UsingR</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Course:Cons452/UsingR&amp;diff=570332"/>
		<updated>2019-11-08T02:27:04Z</updated>

		<summary type="html">&lt;p&gt;VikasMenghwani: /* Getting familiar */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What is R ==&lt;br /&gt;
[[File:R_vs_R_studio.png|thumb|R studio relies on the R programming language and uses it to write statistical programs. R studio can then be used to perform statistical analysis. R is the engine, while R studio is like the dashboard.|564x564px]]R is a programming language and a open source software environment for statistical computing, and is widely used for [https://en.wikipedia.org/wiki/Data_analysis data analysis]. R allows an extraordinary range of statistical calculations. It is a free program, mainly written by voluntary contributions from statisticians around the world. R has its home page at https://www.r-project.org/. &lt;br /&gt;
&lt;br /&gt;
For this course, to utilize R for various statistical analysis, we will use [https://en.wikipedia.org/wiki/RStudio R Studio], which is an [https://en.wikipedia.org/wiki/Integrated_development_environment Integrated Development Environment] (IDE). There are other IDEs available for running R but R Studio is the most popularly used. The picture below depicts the main difference between the two. &lt;br /&gt;
== Installing R and R Studio Desktop ==&lt;br /&gt;
You need to install both R and R studio on your computer. First, you should install R, followed by R Studio. We will be relying on R Studio Desktop version (it also has a cloud version called R Studio Server)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!R&lt;br /&gt;
!R Studio&lt;br /&gt;
|-&lt;br /&gt;
|Download: &lt;br /&gt;
# Go to https://cran.r-project.org/&lt;br /&gt;
# Click on download links on the top of the page&lt;br /&gt;
#* For &#039;&#039;&#039;Mac OS&#039;&#039;&#039;, click on Download R for (Mac) OS X&lt;br /&gt;
#** Click on the latest &amp;lt;code&amp;gt;.pkg&amp;lt;/code&amp;gt; file e.g. &amp;lt;code&amp;gt;R-3.6.1.pkg&amp;lt;/code&amp;gt;&lt;br /&gt;
#* For &#039;&#039;&#039;Windows&#039;&#039;&#039;, click on Download R for Windows&lt;br /&gt;
#** Click on &#039;&#039;&#039;&amp;lt;u&amp;gt;install R for the first time&amp;lt;/u&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
#** Click on the top most Download link&lt;br /&gt;
# Click on the downloaded files and follow the installation instructions.&lt;br /&gt;
|Download: &lt;br /&gt;
# Go to https://rstudio.com/products/rstudio/download/&lt;br /&gt;
# Click and download the appropriate file depending on your operating system.&lt;br /&gt;
# Click on the downloaded files and follow the installation instructions.&lt;br /&gt;
|}&lt;br /&gt;
After installing, access R Studio like you would access any other application on your computer. It may be useful to add a desktop shortcut for easy access.&lt;br /&gt;
&lt;br /&gt;
== Getting familiar ==&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;small&amp;gt;Data types and Data structures&amp;lt;/small&amp;gt;&amp;lt;ref&amp;gt;{{Cite web|url=https://swcarpentry.github.io/r-novice-inflammation/13-supp-data-structures/|title=Data Types and Structures|last=|first=|date=|website=|archive-url=|archive-date=|dead-url=|access-date=November 7, 2019}}&amp;lt;/ref&amp;gt; ===&lt;br /&gt;
&lt;br /&gt;
R has basic 6 data types:&lt;br /&gt;
* character: &amp;lt;code&amp;gt;&amp;quot;cons452&amp;quot;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;quot;lab&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
* numeric: &amp;lt;code&amp;gt;2&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;13.4&amp;lt;/code&amp;gt;&lt;br /&gt;
* integer: &amp;lt;code&amp;gt;3L&amp;lt;/code&amp;gt; (&amp;lt;code&amp;gt;L&amp;lt;/code&amp;gt; is for telling R to store this as an integer)&lt;br /&gt;
* logical: &amp;lt;code&amp;gt;True&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;False&amp;lt;/code&amp;gt;&lt;br /&gt;
* complex:&amp;lt;code&amp;gt;3+4i&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Navigating the Interface:&#039;&#039;&#039; &lt;br /&gt;
*&amp;quot;getting familiar&amp;quot; with interface ; ie: command line, saving your code, defining variables] &lt;br /&gt;
&#039;&#039;&#039;Packages:&#039;&#039;&#039;&lt;br /&gt;
*To performing a particular task, there are numerous approaches within R - they are linked to various packages. Follow these instructions to download a package of choice.  [insert PDF &amp;quot;How to Download a Package] &lt;br /&gt;
== Reading data ==&lt;br /&gt;
&#039;&#039;&#039;Importing Data Cheatsheet :&#039;&#039;&#039;&lt;br /&gt;
* &lt;br /&gt;
[[File:Data_Import_CS.pdf|thumb|The Data Import cheat sheet reminds you how to read in flat files with http://readr.tidyverse.org/, work with the results as tibbles, and reshape messy data with tidyr. Use tidyr to reshape your tables into tidy data, the data format that works the most seamlessly with R and the tidyverse]] &lt;br /&gt;
*Reading in .csv files&lt;br /&gt;
* Reading other formats:&lt;br /&gt;
** converting .dta to .csv&lt;br /&gt;
** &lt;br /&gt;
&lt;br /&gt;
Exporting or writing your output file back as a table (.csv)&lt;br /&gt;
&lt;br /&gt;
== Data Transformation ==&lt;br /&gt;
Packages used: tydyr, dplyr&lt;br /&gt;
&lt;br /&gt;
* Date Transformation with dplyr Cheatsheet: [[File:Data_Transformation_CS.pdf|thumb|dplyr provides a grammar for manipulating tables in R. This cheat sheet will guide you through the grammar, reminding you how to select, filter, arrange, mutate, summarise, group, and join data frames and tibbles.]]&lt;br /&gt;
*Data Manipulation with data table Cheatsheet: [[File:Data_Table_CS.pdf|thumb|Data manipulation with data.table.]] &lt;br /&gt;
*Reading your data &lt;br /&gt;
* Adding columns or changing columns&lt;br /&gt;
* Deleting/subsetting&lt;br /&gt;
* Performing simple algebra or Tabular data (excel like analysis)&lt;br /&gt;
&lt;br /&gt;
== Data visualization ==&lt;br /&gt;
Packages used: ggplot2&lt;br /&gt;
* ggplot2 Cheatsheet: [[File:Ggplot2_CS.pdf|thumb|Datavisualization with ggplot2]]&lt;br /&gt;
* Scatter Plot&lt;br /&gt;
* Frequency plots&lt;br /&gt;
* Boxplots&lt;br /&gt;
* &lt;br /&gt;
&lt;br /&gt;
== Data analysis ==&lt;br /&gt;
Packages used:&lt;br /&gt;
&lt;br /&gt;
* Descriptive statistics&lt;br /&gt;
** Summarizing data (mean, median, sd etc.)&lt;br /&gt;
** box plots&lt;br /&gt;
* Statistical tests&lt;br /&gt;
** linear regression&lt;br /&gt;
** t-tests, ANOVA&lt;br /&gt;
** Summarizing regression results&lt;br /&gt;
&lt;br /&gt;
* &lt;br /&gt;
&lt;br /&gt;
== Cheatsheets ==&lt;br /&gt;
Cheatsheets are pamphlet like utility documents for specific purposes. They contain shortcut instructions either for numerous functions from within a particular R package or for a certain category of useful functions. We encourage you to keep these cheatsheet pdf files handy. &lt;br /&gt;
* [https://resources.rstudio.com/rstudio-cheatsheets/rstudio-ide-cheat-sheet R Studio IDE] &lt;br /&gt;
* [https://wiki.ubc.ca/images/c/cf/Basic_R_CS.pdf Basics] &lt;br /&gt;
* [https://wiki.ubc.ca/images/2/29/Data_Import_CS.pdf Data import] &lt;br /&gt;
* R Markdown Cheatsheet:&lt;br /&gt;
&lt;br /&gt;
== Organizing your workspace and files ==&lt;br /&gt;
* To minimize revision of the code within the team, while working on your project, it would be useful to save your files on the coursedrive&lt;br /&gt;
* Have a folder with your project name on the course drive&lt;br /&gt;
* Let the instruction for reading your .csv file be like the following&lt;br /&gt;
{{YouTube|id=OJ4WBjV5o1I|width=|height=400}}&lt;br /&gt;
&lt;br /&gt;
* &lt;br /&gt;
*&lt;/div&gt;</summary>
		<author><name>VikasMenghwani</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Course:Cons452/UsingR&amp;diff=570331</id>
		<title>Course:Cons452/UsingR</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Course:Cons452/UsingR&amp;diff=570331"/>
		<updated>2019-11-08T02:18:21Z</updated>

		<summary type="html">&lt;p&gt;VikasMenghwani: /* Getting familiar */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What is R ==&lt;br /&gt;
[[File:R_vs_R_studio.png|thumb|R studio relies on the R programming language and uses it to write statistical programs. R studio can then be used to perform statistical analysis. R is the engine, while R studio is like the dashboard.|564x564px]]R is a programming language and a open source software environment for statistical computing, and is widely used for [https://en.wikipedia.org/wiki/Data_analysis data analysis]. R allows an extraordinary range of statistical calculations. It is a free program, mainly written by voluntary contributions from statisticians around the world. R has its home page at https://www.r-project.org/. &lt;br /&gt;
&lt;br /&gt;
For this course, to utilize R for various statistical analysis, we will use [https://en.wikipedia.org/wiki/RStudio R Studio], which is an [https://en.wikipedia.org/wiki/Integrated_development_environment Integrated Development Environment] (IDE). There are other IDEs available for running R but R Studio is the most popularly used. The picture below depicts the main difference between the two. &lt;br /&gt;
== Installing R and R Studio Desktop ==&lt;br /&gt;
You need to install both R and R studio on your computer. First, you should install R, followed by R Studio. We will be relying on R Studio Desktop version (it also has a cloud version called R Studio Server)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!R&lt;br /&gt;
!R Studio&lt;br /&gt;
|-&lt;br /&gt;
|Download: &lt;br /&gt;
# Go to https://cran.r-project.org/&lt;br /&gt;
# Click on download links on the top of the page&lt;br /&gt;
#* For &#039;&#039;&#039;Mac OS&#039;&#039;&#039;, click on Download R for (Mac) OS X&lt;br /&gt;
#** Click on the latest &amp;lt;code&amp;gt;.pkg&amp;lt;/code&amp;gt; file e.g. &amp;lt;code&amp;gt;R-3.6.1.pkg&amp;lt;/code&amp;gt;&lt;br /&gt;
#* For &#039;&#039;&#039;Windows&#039;&#039;&#039;, click on Download R for Windows&lt;br /&gt;
#** Click on &#039;&#039;&#039;&amp;lt;u&amp;gt;install R for the first time&amp;lt;/u&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
#** Click on the top most Download link&lt;br /&gt;
# Click on the downloaded files and follow the installation instructions.&lt;br /&gt;
|Download: &lt;br /&gt;
# Go to https://rstudio.com/products/rstudio/download/&lt;br /&gt;
# Click and download the appropriate file depending on your operating system.&lt;br /&gt;
# Click on the downloaded files and follow the installation instructions.&lt;br /&gt;
|}&lt;br /&gt;
After installing, access R Studio like you would access any other application on your computer. It may be useful to add a desktop shortcut for easy access.&lt;br /&gt;
&lt;br /&gt;
== Getting familiar ==&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;small&amp;gt;Data types and Data structures&amp;lt;/small&amp;gt; ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Navigating the Interface:&#039;&#039;&#039; &lt;br /&gt;
*&amp;quot;getting familiar&amp;quot; with interface ; ie: command line, saving your code, defining variables] &lt;br /&gt;
&#039;&#039;&#039;Packages:&#039;&#039;&#039;&lt;br /&gt;
*To performing a particular task, there are numerous approaches within R - they are linked to various packages. Follow these instructions to download a package of choice.  [insert PDF &amp;quot;How to Download a Package] &lt;br /&gt;
== Reading data ==&lt;br /&gt;
&#039;&#039;&#039;Importing Data Cheatsheet :&#039;&#039;&#039;&lt;br /&gt;
* &lt;br /&gt;
[[File:Data_Import_CS.pdf|thumb|The Data Import cheat sheet reminds you how to read in flat files with http://readr.tidyverse.org/, work with the results as tibbles, and reshape messy data with tidyr. Use tidyr to reshape your tables into tidy data, the data format that works the most seamlessly with R and the tidyverse]] &lt;br /&gt;
*Reading in .csv files&lt;br /&gt;
* Reading other formats:&lt;br /&gt;
** converting .dta to .csv&lt;br /&gt;
** &lt;br /&gt;
&lt;br /&gt;
Exporting or writing your output file back as a table (.csv)&lt;br /&gt;
&lt;br /&gt;
== Data Transformation ==&lt;br /&gt;
Packages used: tydyr, dplyr&lt;br /&gt;
&lt;br /&gt;
* Date Transformation with dplyr Cheatsheet: [[File:Data_Transformation_CS.pdf|thumb|dplyr provides a grammar for manipulating tables in R. This cheat sheet will guide you through the grammar, reminding you how to select, filter, arrange, mutate, summarise, group, and join data frames and tibbles.]]&lt;br /&gt;
*Data Manipulation with data table Cheatsheet: [[File:Data_Table_CS.pdf|thumb|Data manipulation with data.table.]] &lt;br /&gt;
*Reading your data &lt;br /&gt;
* Adding columns or changing columns&lt;br /&gt;
* Deleting/subsetting&lt;br /&gt;
* Performing simple algebra or Tabular data (excel like analysis)&lt;br /&gt;
&lt;br /&gt;
== Data visualization ==&lt;br /&gt;
Packages used: ggplot2&lt;br /&gt;
* ggplot2 Cheatsheet: [[File:Ggplot2_CS.pdf|thumb|Datavisualization with ggplot2]]&lt;br /&gt;
* Scatter Plot&lt;br /&gt;
* Frequency plots&lt;br /&gt;
* Boxplots&lt;br /&gt;
* &lt;br /&gt;
&lt;br /&gt;
== Data analysis ==&lt;br /&gt;
Packages used:&lt;br /&gt;
&lt;br /&gt;
* Descriptive statistics&lt;br /&gt;
** Summarizing data (mean, median, sd etc.)&lt;br /&gt;
** box plots&lt;br /&gt;
* Statistical tests&lt;br /&gt;
** linear regression&lt;br /&gt;
** t-tests, ANOVA&lt;br /&gt;
** Summarizing regression results&lt;br /&gt;
&lt;br /&gt;
* &lt;br /&gt;
&lt;br /&gt;
== Cheatsheets ==&lt;br /&gt;
Cheatsheets are pamphlet like utility documents for specific purposes. They contain shortcut instructions either for numerous functions from within a particular R package or for a certain category of useful functions. We encourage you to keep these cheatsheet pdf files handy. &lt;br /&gt;
* [https://resources.rstudio.com/rstudio-cheatsheets/rstudio-ide-cheat-sheet R Studio IDE] &lt;br /&gt;
* [https://wiki.ubc.ca/images/c/cf/Basic_R_CS.pdf Basics] &lt;br /&gt;
* [https://wiki.ubc.ca/images/2/29/Data_Import_CS.pdf Data import] &lt;br /&gt;
* R Markdown Cheatsheet:&lt;br /&gt;
&lt;br /&gt;
== Organizing your workspace and files ==&lt;br /&gt;
* To minimize revision of the code within the team, while working on your project, it would be useful to save your files on the coursedrive&lt;br /&gt;
* Have a folder with your project name on the course drive&lt;br /&gt;
* Let the instruction for reading your .csv file be like the following&lt;br /&gt;
{{YouTube|id=OJ4WBjV5o1I|width=|height=400}}&lt;br /&gt;
&lt;br /&gt;
* &lt;br /&gt;
*&lt;/div&gt;</summary>
		<author><name>VikasMenghwani</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Course:Cons452/UsingR&amp;diff=570330</id>
		<title>Course:Cons452/UsingR</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Course:Cons452/UsingR&amp;diff=570330"/>
		<updated>2019-11-08T02:15:01Z</updated>

		<summary type="html">&lt;p&gt;VikasMenghwani: /* Getting familiar */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What is R ==&lt;br /&gt;
[[File:R_vs_R_studio.png|thumb|R studio relies on the R programming language and uses it to write statistical programs. R studio can then be used to perform statistical analysis. R is the engine, while R studio is like the dashboard.|564x564px]]R is a programming language and a open source software environment for statistical computing, and is widely used for [https://en.wikipedia.org/wiki/Data_analysis data analysis]. R allows an extraordinary range of statistical calculations. It is a free program, mainly written by voluntary contributions from statisticians around the world. R has its home page at https://www.r-project.org/. &lt;br /&gt;
&lt;br /&gt;
For this course, to utilize R for various statistical analysis, we will use [https://en.wikipedia.org/wiki/RStudio R Studio], which is an [https://en.wikipedia.org/wiki/Integrated_development_environment Integrated Development Environment] (IDE). There are other IDEs available for running R but R Studio is the most popularly used. The picture below depicts the main difference between the two. &lt;br /&gt;
== Installing R and R Studio Desktop ==&lt;br /&gt;
You need to install both R and R studio on your computer. First, you should install R, followed by R Studio. We will be relying on R Studio Desktop version (it also has a cloud version called R Studio Server)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!R&lt;br /&gt;
!R Studio&lt;br /&gt;
|-&lt;br /&gt;
|Download: &lt;br /&gt;
# Go to https://cran.r-project.org/&lt;br /&gt;
# Click on download links on the top of the page&lt;br /&gt;
#* For &#039;&#039;&#039;Mac OS&#039;&#039;&#039;, click on Download R for (Mac) OS X&lt;br /&gt;
#** Click on the latest &amp;lt;code&amp;gt;.pkg&amp;lt;/code&amp;gt; file e.g. &amp;lt;code&amp;gt;R-3.6.1.pkg&amp;lt;/code&amp;gt;&lt;br /&gt;
#* For &#039;&#039;&#039;Windows&#039;&#039;&#039;, click on Download R for Windows&lt;br /&gt;
#** Click on &#039;&#039;&#039;&amp;lt;u&amp;gt;install R for the first time&amp;lt;/u&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
#** Click on the top most Download link&lt;br /&gt;
# Click on the downloaded files and follow the installation instructions.&lt;br /&gt;
|Download: &lt;br /&gt;
# Go to https://rstudio.com/products/rstudio/download/&lt;br /&gt;
# Click and download the appropriate file depending on your operating system.&lt;br /&gt;
# Click on the downloaded files and follow the installation instructions.&lt;br /&gt;
|}&lt;br /&gt;
After installing, access R Studio like you would access any other application on your computer. It may be useful to add a desktop shortcut for easy access.&lt;br /&gt;
&lt;br /&gt;
== Getting familiar ==&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;small&amp;gt;Data types&amp;lt;/small&amp;gt; ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Navigating the Interface:&#039;&#039;&#039; &lt;br /&gt;
*&amp;quot;getting familiar&amp;quot; with interface ; ie: command line, saving your code, defining variables] &lt;br /&gt;
&#039;&#039;&#039;Packages:&#039;&#039;&#039;&lt;br /&gt;
*To performing a particular task, there are numerous approaches within R - they are linked to various packages. Follow these instructions to download a package of choice.  [insert PDF &amp;quot;How to Download a Package] &lt;br /&gt;
== Reading data ==&lt;br /&gt;
&#039;&#039;&#039;Importing Data Cheatsheet :&#039;&#039;&#039;&lt;br /&gt;
* &lt;br /&gt;
[[File:Data_Import_CS.pdf|thumb|The Data Import cheat sheet reminds you how to read in flat files with http://readr.tidyverse.org/, work with the results as tibbles, and reshape messy data with tidyr. Use tidyr to reshape your tables into tidy data, the data format that works the most seamlessly with R and the tidyverse]] &lt;br /&gt;
*Reading in .csv files&lt;br /&gt;
* Reading other formats:&lt;br /&gt;
** converting .dta to .csv&lt;br /&gt;
** &lt;br /&gt;
&lt;br /&gt;
Exporting or writing your output file back as a table (.csv)&lt;br /&gt;
&lt;br /&gt;
== Data Transformation ==&lt;br /&gt;
Packages used: tydyr, dplyr&lt;br /&gt;
&lt;br /&gt;
* Date Transformation with dplyr Cheatsheet: [[File:Data_Transformation_CS.pdf|thumb|dplyr provides a grammar for manipulating tables in R. This cheat sheet will guide you through the grammar, reminding you how to select, filter, arrange, mutate, summarise, group, and join data frames and tibbles.]]&lt;br /&gt;
*Data Manipulation with data table Cheatsheet: [[File:Data_Table_CS.pdf|thumb|Data manipulation with data.table.]] &lt;br /&gt;
*Reading your data &lt;br /&gt;
* Adding columns or changing columns&lt;br /&gt;
* Deleting/subsetting&lt;br /&gt;
* Performing simple algebra or Tabular data (excel like analysis)&lt;br /&gt;
&lt;br /&gt;
== Data visualization ==&lt;br /&gt;
Packages used: ggplot2&lt;br /&gt;
* ggplot2 Cheatsheet: [[File:Ggplot2_CS.pdf|thumb|Datavisualization with ggplot2]]&lt;br /&gt;
* Scatter Plot&lt;br /&gt;
* Frequency plots&lt;br /&gt;
* Boxplots&lt;br /&gt;
* &lt;br /&gt;
&lt;br /&gt;
== Data analysis ==&lt;br /&gt;
Packages used:&lt;br /&gt;
&lt;br /&gt;
* Descriptive statistics&lt;br /&gt;
** Summarizing data (mean, median, sd etc.)&lt;br /&gt;
** box plots&lt;br /&gt;
* Statistical tests&lt;br /&gt;
** linear regression&lt;br /&gt;
** t-tests, ANOVA&lt;br /&gt;
** Summarizing regression results&lt;br /&gt;
&lt;br /&gt;
* &lt;br /&gt;
&lt;br /&gt;
== Cheatsheets ==&lt;br /&gt;
Cheatsheets are pamphlet like utility documents for specific purposes. They contain shortcut instructions either for numerous functions from within a particular R package or for a certain category of useful functions. We encourage you to keep these cheatsheet pdf files handy. &lt;br /&gt;
* [https://resources.rstudio.com/rstudio-cheatsheets/rstudio-ide-cheat-sheet R Studio IDE] &lt;br /&gt;
* [https://wiki.ubc.ca/images/c/cf/Basic_R_CS.pdf Basics] &lt;br /&gt;
* [https://wiki.ubc.ca/images/2/29/Data_Import_CS.pdf Data import] &lt;br /&gt;
* R Markdown Cheatsheet:&lt;br /&gt;
&lt;br /&gt;
== Organizing your workspace and files ==&lt;br /&gt;
* To minimize revision of the code within the team, while working on your project, it would be useful to save your files on the coursedrive&lt;br /&gt;
* Have a folder with your project name on the course drive&lt;br /&gt;
* Let the instruction for reading your .csv file be like the following&lt;br /&gt;
{{YouTube|id=OJ4WBjV5o1I|width=|height=400}}&lt;br /&gt;
&lt;br /&gt;
* &lt;br /&gt;
*&lt;/div&gt;</summary>
		<author><name>VikasMenghwani</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Course:Cons452/UsingR&amp;diff=570329</id>
		<title>Course:Cons452/UsingR</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Course:Cons452/UsingR&amp;diff=570329"/>
		<updated>2019-11-08T02:11:05Z</updated>

		<summary type="html">&lt;p&gt;VikasMenghwani: /* Getting familiar with R Studio */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What is R ==&lt;br /&gt;
[[File:R_vs_R_studio.png|thumb|R studio relies on the R programming language and uses it to write statistical programs. R studio can then be used to perform statistical analysis. R is the engine, while R studio is like the dashboard.|564x564px]]R is a programming language and a open source software environment for statistical computing, and is widely used for [https://en.wikipedia.org/wiki/Data_analysis data analysis]. R allows an extraordinary range of statistical calculations. It is a free program, mainly written by voluntary contributions from statisticians around the world. R has its home page at https://www.r-project.org/. &lt;br /&gt;
&lt;br /&gt;
For this course, to utilize R for various statistical analysis, we will use [https://en.wikipedia.org/wiki/RStudio R Studio], which is an [https://en.wikipedia.org/wiki/Integrated_development_environment Integrated Development Environment] (IDE). There are other IDEs available for running R but R Studio is the most popularly used. The picture below depicts the main difference between the two. &lt;br /&gt;
== Installing R and R Studio Desktop ==&lt;br /&gt;
You need to install both R and R studio on your computer. First, you should install R, followed by R Studio. We will be relying on R Studio Desktop version (it also has a cloud version called R Studio Server)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!R&lt;br /&gt;
!R Studio&lt;br /&gt;
|-&lt;br /&gt;
|Download: &lt;br /&gt;
# Go to https://cran.r-project.org/&lt;br /&gt;
# Click on download links on the top of the page&lt;br /&gt;
#* For &#039;&#039;&#039;Mac OS&#039;&#039;&#039;, click on Download R for (Mac) OS X&lt;br /&gt;
#** Click on the latest &amp;lt;code&amp;gt;.pkg&amp;lt;/code&amp;gt; file e.g. &amp;lt;code&amp;gt;R-3.6.1.pkg&amp;lt;/code&amp;gt;&lt;br /&gt;
#* For &#039;&#039;&#039;Windows&#039;&#039;&#039;, click on Download R for Windows&lt;br /&gt;
#** Click on &#039;&#039;&#039;&amp;lt;u&amp;gt;install R for the first time&amp;lt;/u&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
#** Click on the top most Download link&lt;br /&gt;
# Click on the downloaded files and follow the installation instructions.&lt;br /&gt;
|Download: &lt;br /&gt;
# Go to https://rstudio.com/products/rstudio/download/&lt;br /&gt;
# Click and download the appropriate file depending on your operating system.&lt;br /&gt;
# Click on the downloaded files and follow the installation instructions.&lt;br /&gt;
|}&lt;br /&gt;
After installing, access R Studio like you would access any other application on your computer. It may be useful to add a desktop shortcut for easy access.&lt;br /&gt;
&lt;br /&gt;
== Getting familiar ==&lt;br /&gt;
&#039;&#039;&#039;Navigating the Interface:&#039;&#039;&#039; &lt;br /&gt;
*[ Create PDF &amp;quot;getting familiar&amp;quot; with interface ; ie: command line, saving your code, defining variables] &lt;br /&gt;
&#039;&#039;&#039;Download a Package:&#039;&#039;&#039;&lt;br /&gt;
*To performing a particular task, there are numerous approaches within R - they are linked to various packages. Follow these instructions to download a package of choice.  [insert PDF &amp;quot;How to Download a Package] &lt;br /&gt;
&#039;&#039;&#039;Cheatsheets&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Cheatsheets are pamphlet like utility documents for specific purposes. They contain shortcut instructions either for numerous functions from within a particular R package or for a certain category of useful functions. We encourage you to keep these cheatsheet pdf files handy. &lt;br /&gt;
* [https://resources.rstudio.com/rstudio-cheatsheets/rstudio-ide-cheat-sheet R Studio IDE] &lt;br /&gt;
* [https://wiki.ubc.ca/images/c/cf/Basic_R_CS.pdf Basics] &lt;br /&gt;
* [https://wiki.ubc.ca/images/2/29/Data_Import_CS.pdf Data import] &lt;br /&gt;
* R Markdown Cheatsheet:&lt;br /&gt;
&lt;br /&gt;
== Reading data ==&lt;br /&gt;
&#039;&#039;&#039;Importing Data Cheatsheet :&#039;&#039;&#039;&lt;br /&gt;
* &lt;br /&gt;
[[File:Data_Import_CS.pdf|thumb|The Data Import cheat sheet reminds you how to read in flat files with http://readr.tidyverse.org/, work with the results as tibbles, and reshape messy data with tidyr. Use tidyr to reshape your tables into tidy data, the data format that works the most seamlessly with R and the tidyverse]] &lt;br /&gt;
*Reading in .csv files&lt;br /&gt;
* Reading other formats:&lt;br /&gt;
** converting .dta to .csv&lt;br /&gt;
** &lt;br /&gt;
&lt;br /&gt;
Exporting or writing your output file back as a table (.csv)&lt;br /&gt;
&lt;br /&gt;
== Data Transformation ==&lt;br /&gt;
Packages used: tydyr, dplyr&lt;br /&gt;
&lt;br /&gt;
* Date Transformation with dplyr Cheatsheet: [[File:Data_Transformation_CS.pdf|thumb|dplyr provides a grammar for manipulating tables in R. This cheat sheet will guide you through the grammar, reminding you how to select, filter, arrange, mutate, summarise, group, and join data frames and tibbles.]]&lt;br /&gt;
*Data Manipulation with data table Cheatsheet: [[File:Data_Table_CS.pdf|thumb|Data manipulation with data.table.]] &lt;br /&gt;
*Reading your data &lt;br /&gt;
* Adding columns or changing columns&lt;br /&gt;
* Deleting/subsetting&lt;br /&gt;
* Performing simple algebra or Tabular data (excel like analysis)&lt;br /&gt;
&lt;br /&gt;
== Data visualization ==&lt;br /&gt;
Packages used: ggplot2&lt;br /&gt;
* ggplot2 Cheatsheet: [[File:Ggplot2_CS.pdf|thumb|Datavisualization with ggplot2]]&lt;br /&gt;
* Scatter Plot&lt;br /&gt;
* Frequency plots&lt;br /&gt;
* Boxplots&lt;br /&gt;
* &lt;br /&gt;
&lt;br /&gt;
== Data analysis ==&lt;br /&gt;
Packages used:&lt;br /&gt;
&lt;br /&gt;
* Descriptive statistics&lt;br /&gt;
** Summarizing data (mean, median, sd etc.)&lt;br /&gt;
** box plots&lt;br /&gt;
* Statistical tests&lt;br /&gt;
** linear regression&lt;br /&gt;
** t-tests, ANOVA&lt;br /&gt;
** Summarizing regression results&lt;br /&gt;
&lt;br /&gt;
* &lt;br /&gt;
&lt;br /&gt;
== Organizing your workspace and files ==&lt;br /&gt;
* To minimize revision of the code within the team, while working on your project, it would be useful to save your files on the coursedrive&lt;br /&gt;
* Have a folder with your project name on the course drive&lt;br /&gt;
* Let the instruction for reading your .csv file be like the following&lt;br /&gt;
{{YouTube|id=OJ4WBjV5o1I|width=|height=400}}&lt;br /&gt;
&lt;br /&gt;
* &lt;br /&gt;
*&lt;/div&gt;</summary>
		<author><name>VikasMenghwani</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Course:Cons452/UsingR&amp;diff=570327</id>
		<title>Course:Cons452/UsingR</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Course:Cons452/UsingR&amp;diff=570327"/>
		<updated>2019-11-08T02:04:31Z</updated>

		<summary type="html">&lt;p&gt;VikasMenghwani: /* Organizing your workspace and files */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What is R ==&lt;br /&gt;
[[File:R_vs_R_studio.png|thumb|R studio relies on the R programming language and uses it to write statistical programs. R studio can then be used to perform statistical analysis. R is the engine, while R studio is like the dashboard.|564x564px]]R is a programming language and a open source software environment for statistical computing, and is widely used for [https://en.wikipedia.org/wiki/Data_analysis data analysis]. R allows an extraordinary range of statistical calculations. It is a free program, mainly written by voluntary contributions from statisticians around the world. R has its home page at https://www.r-project.org/. &lt;br /&gt;
&lt;br /&gt;
For this course, to utilize R for various statistical analysis, we will use [https://en.wikipedia.org/wiki/RStudio R Studio], which is an [https://en.wikipedia.org/wiki/Integrated_development_environment Integrated Development Environment] (IDE). There are other IDEs available for running R but R Studio is the most popularly used. The picture below depicts the main difference between the two. &lt;br /&gt;
== Installing R and R Studio Desktop ==&lt;br /&gt;
You need to install both R and R studio on your computer. First, you should install R, followed by R Studio. We will be relying on R Studio Desktop version (it also has a cloud version called R Studio Server)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!R&lt;br /&gt;
!R Studio&lt;br /&gt;
|-&lt;br /&gt;
|Download: &lt;br /&gt;
# Go to https://cran.r-project.org/&lt;br /&gt;
# Click on download links on the top of the page&lt;br /&gt;
#* For &#039;&#039;&#039;Mac OS&#039;&#039;&#039;, click on Download R for (Mac) OS X&lt;br /&gt;
#** Click on the latest &amp;lt;code&amp;gt;.pkg&amp;lt;/code&amp;gt; file e.g. &amp;lt;code&amp;gt;R-3.6.1.pkg&amp;lt;/code&amp;gt;&lt;br /&gt;
#* For &#039;&#039;&#039;Windows&#039;&#039;&#039;, click on Download R for Windows&lt;br /&gt;
#** Click on &#039;&#039;&#039;&amp;lt;u&amp;gt;install R for the first time&amp;lt;/u&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
#** Click on the top most Download link&lt;br /&gt;
# Click on the downloaded files and follow the installation instructions.&lt;br /&gt;
|Download: &lt;br /&gt;
# Go to https://rstudio.com/products/rstudio/download/&lt;br /&gt;
# Click and download the appropriate file depending on your operating system.&lt;br /&gt;
# Click on the downloaded files and follow the installation instructions.&lt;br /&gt;
|}&lt;br /&gt;
After installing, access R Studio like you would access any other application on your computer. It may be useful to add a desktop shortcut for easy access.&lt;br /&gt;
&lt;br /&gt;
== Getting familiar with R Studio ==&lt;br /&gt;
&#039;&#039;&#039;Navigating the Interface:&#039;&#039;&#039; &lt;br /&gt;
*[ Create PDF &amp;quot;getting familiar&amp;quot; with interface ; ie: command line, saving your code, defining variables] &lt;br /&gt;
&#039;&#039;&#039;Download a Package:&#039;&#039;&#039;&lt;br /&gt;
*To performing a particular task, there are numerous approaches within R - they are linked to various packages. Follow these instructions to download a package of choice.  [insert PDF &amp;quot;How to Download a Package] &lt;br /&gt;
&#039;&#039;&#039;Cheatsheets&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Cheatsheets are pamphlet like utility documents for specific purposes. They contain shortcut instructions either for numerous functions from within a particular R package or for a certain category of useful functions. We encourage you to keep these cheatsheet pdf files handy. &lt;br /&gt;
* [https://resources.rstudio.com/rstudio-cheatsheets/rstudio-ide-cheat-sheet R Studio IDE] &lt;br /&gt;
* [https://wiki.ubc.ca/images/c/cf/Basic_R_CS.pdf Basics] &lt;br /&gt;
* [https://wiki.ubc.ca/images/2/29/Data_Import_CS.pdf Data import] &lt;br /&gt;
* R Markdown Cheatsheet:&lt;br /&gt;
&lt;br /&gt;
== Reading data ==&lt;br /&gt;
&#039;&#039;&#039;Importing Data Cheatsheet :&#039;&#039;&#039;&lt;br /&gt;
* &lt;br /&gt;
[[File:Data_Import_CS.pdf|thumb|The Data Import cheat sheet reminds you how to read in flat files with http://readr.tidyverse.org/, work with the results as tibbles, and reshape messy data with tidyr. Use tidyr to reshape your tables into tidy data, the data format that works the most seamlessly with R and the tidyverse]] &lt;br /&gt;
*Reading in .csv files&lt;br /&gt;
* Reading other formats:&lt;br /&gt;
** converting .dta to .csv&lt;br /&gt;
** &lt;br /&gt;
&lt;br /&gt;
Exporting or writing your output file back as a table (.csv)&lt;br /&gt;
&lt;br /&gt;
== Data Transformation ==&lt;br /&gt;
Packages used: tydyr, dplyr&lt;br /&gt;
&lt;br /&gt;
* Date Transformation with dplyr Cheatsheet: [[File:Data_Transformation_CS.pdf|thumb|dplyr provides a grammar for manipulating tables in R. This cheat sheet will guide you through the grammar, reminding you how to select, filter, arrange, mutate, summarise, group, and join data frames and tibbles.]]&lt;br /&gt;
*Data Manipulation with data table Cheatsheet: [[File:Data_Table_CS.pdf|thumb|Data manipulation with data.table.]] &lt;br /&gt;
*Reading your data &lt;br /&gt;
* Adding columns or changing columns&lt;br /&gt;
* Deleting/subsetting&lt;br /&gt;
* Performing simple algebra or Tabular data (excel like analysis)&lt;br /&gt;
&lt;br /&gt;
== Data visualization ==&lt;br /&gt;
Packages used: ggplot2&lt;br /&gt;
* ggplot2 Cheatsheet: [[File:Ggplot2_CS.pdf|thumb|Datavisualization with ggplot2]]&lt;br /&gt;
* Scatter Plot&lt;br /&gt;
* Frequency plots&lt;br /&gt;
* Boxplots&lt;br /&gt;
* &lt;br /&gt;
&lt;br /&gt;
== Data analysis ==&lt;br /&gt;
Packages used:&lt;br /&gt;
&lt;br /&gt;
* Descriptive statistics&lt;br /&gt;
** Summarizing data (mean, median, sd etc.)&lt;br /&gt;
** box plots&lt;br /&gt;
* Statistical tests&lt;br /&gt;
** linear regression&lt;br /&gt;
** t-tests, ANOVA&lt;br /&gt;
** Summarizing regression results&lt;br /&gt;
&lt;br /&gt;
* &lt;br /&gt;
&lt;br /&gt;
== Organizing your workspace and files ==&lt;br /&gt;
* To minimize revision of the code within the team, while working on your project, it would be useful to save your files on the coursedrive&lt;br /&gt;
* Have a folder with your project name on the course drive&lt;br /&gt;
* Let the instruction for reading your .csv file be like the following&lt;br /&gt;
{{YouTube|id=OJ4WBjV5o1I|width=|height=400}}&lt;br /&gt;
&lt;br /&gt;
* &lt;br /&gt;
*&lt;/div&gt;</summary>
		<author><name>VikasMenghwani</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Course:Cons452/UsingR&amp;diff=570326</id>
		<title>Course:Cons452/UsingR</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Course:Cons452/UsingR&amp;diff=570326"/>
		<updated>2019-11-08T02:03:52Z</updated>

		<summary type="html">&lt;p&gt;VikasMenghwani: /* What is R */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What is R ==&lt;br /&gt;
[[File:R_vs_R_studio.png|thumb|R studio relies on the R programming language and uses it to write statistical programs. R studio can then be used to perform statistical analysis. R is the engine, while R studio is like the dashboard.|564x564px]]R is a programming language and a open source software environment for statistical computing, and is widely used for [https://en.wikipedia.org/wiki/Data_analysis data analysis]. R allows an extraordinary range of statistical calculations. It is a free program, mainly written by voluntary contributions from statisticians around the world. R has its home page at https://www.r-project.org/. &lt;br /&gt;
&lt;br /&gt;
For this course, to utilize R for various statistical analysis, we will use [https://en.wikipedia.org/wiki/RStudio R Studio], which is an [https://en.wikipedia.org/wiki/Integrated_development_environment Integrated Development Environment] (IDE). There are other IDEs available for running R but R Studio is the most popularly used. The picture below depicts the main difference between the two. &lt;br /&gt;
== Installing R and R Studio Desktop ==&lt;br /&gt;
You need to install both R and R studio on your computer. First, you should install R, followed by R Studio. We will be relying on R Studio Desktop version (it also has a cloud version called R Studio Server)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!R&lt;br /&gt;
!R Studio&lt;br /&gt;
|-&lt;br /&gt;
|Download: &lt;br /&gt;
# Go to https://cran.r-project.org/&lt;br /&gt;
# Click on download links on the top of the page&lt;br /&gt;
#* For &#039;&#039;&#039;Mac OS&#039;&#039;&#039;, click on Download R for (Mac) OS X&lt;br /&gt;
#** Click on the latest &amp;lt;code&amp;gt;.pkg&amp;lt;/code&amp;gt; file e.g. &amp;lt;code&amp;gt;R-3.6.1.pkg&amp;lt;/code&amp;gt;&lt;br /&gt;
#* For &#039;&#039;&#039;Windows&#039;&#039;&#039;, click on Download R for Windows&lt;br /&gt;
#** Click on &#039;&#039;&#039;&amp;lt;u&amp;gt;install R for the first time&amp;lt;/u&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
#** Click on the top most Download link&lt;br /&gt;
# Click on the downloaded files and follow the installation instructions.&lt;br /&gt;
|Download: &lt;br /&gt;
# Go to https://rstudio.com/products/rstudio/download/&lt;br /&gt;
# Click and download the appropriate file depending on your operating system.&lt;br /&gt;
# Click on the downloaded files and follow the installation instructions.&lt;br /&gt;
|}&lt;br /&gt;
After installing, access R Studio like you would access any other application on your computer. It may be useful to add a desktop shortcut for easy access.&lt;br /&gt;
&lt;br /&gt;
== Getting familiar with R Studio ==&lt;br /&gt;
&#039;&#039;&#039;Navigating the Interface:&#039;&#039;&#039; &lt;br /&gt;
*[ Create PDF &amp;quot;getting familiar&amp;quot; with interface ; ie: command line, saving your code, defining variables] &lt;br /&gt;
&#039;&#039;&#039;Download a Package:&#039;&#039;&#039;&lt;br /&gt;
*To performing a particular task, there are numerous approaches within R - they are linked to various packages. Follow these instructions to download a package of choice.  [insert PDF &amp;quot;How to Download a Package] &lt;br /&gt;
&#039;&#039;&#039;Cheatsheets&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Cheatsheets are pamphlet like utility documents for specific purposes. They contain shortcut instructions either for numerous functions from within a particular R package or for a certain category of useful functions. We encourage you to keep these cheatsheet pdf files handy. &lt;br /&gt;
* [https://resources.rstudio.com/rstudio-cheatsheets/rstudio-ide-cheat-sheet R Studio IDE] &lt;br /&gt;
* [https://wiki.ubc.ca/images/c/cf/Basic_R_CS.pdf Basics] &lt;br /&gt;
* [https://wiki.ubc.ca/images/2/29/Data_Import_CS.pdf Data import] &lt;br /&gt;
* R Markdown Cheatsheet:&lt;br /&gt;
&lt;br /&gt;
== Reading data ==&lt;br /&gt;
&#039;&#039;&#039;Importing Data Cheatsheet :&#039;&#039;&#039;&lt;br /&gt;
* &lt;br /&gt;
[[File:Data_Import_CS.pdf|thumb|The Data Import cheat sheet reminds you how to read in flat files with http://readr.tidyverse.org/, work with the results as tibbles, and reshape messy data with tidyr. Use tidyr to reshape your tables into tidy data, the data format that works the most seamlessly with R and the tidyverse]] &lt;br /&gt;
*Reading in .csv files&lt;br /&gt;
* Reading other formats:&lt;br /&gt;
** converting .dta to .csv&lt;br /&gt;
** &lt;br /&gt;
&lt;br /&gt;
Exporting or writing your output file back as a table (.csv)&lt;br /&gt;
&lt;br /&gt;
== Data Transformation ==&lt;br /&gt;
Packages used: tydyr, dplyr&lt;br /&gt;
&lt;br /&gt;
* Date Transformation with dplyr Cheatsheet: [[File:Data_Transformation_CS.pdf|thumb|dplyr provides a grammar for manipulating tables in R. This cheat sheet will guide you through the grammar, reminding you how to select, filter, arrange, mutate, summarise, group, and join data frames and tibbles.]]&lt;br /&gt;
*Data Manipulation with data table Cheatsheet: [[File:Data_Table_CS.pdf|thumb|Data manipulation with data.table.]] &lt;br /&gt;
*Reading your data &lt;br /&gt;
* Adding columns or changing columns&lt;br /&gt;
* Deleting/subsetting&lt;br /&gt;
* Performing simple algebra or Tabular data (excel like analysis)&lt;br /&gt;
&lt;br /&gt;
== Data visualization ==&lt;br /&gt;
Packages used: ggplot2&lt;br /&gt;
* ggplot2 Cheatsheet: [[File:Ggplot2_CS.pdf|thumb|Datavisualization with ggplot2]]&lt;br /&gt;
* Scatter Plot&lt;br /&gt;
* Frequency plots&lt;br /&gt;
* Boxplots&lt;br /&gt;
* &lt;br /&gt;
&lt;br /&gt;
== Data analysis ==&lt;br /&gt;
Packages used:&lt;br /&gt;
&lt;br /&gt;
* Descriptive statistics&lt;br /&gt;
** Summarizing data (mean, median, sd etc.)&lt;br /&gt;
** box plots&lt;br /&gt;
* Statistical tests&lt;br /&gt;
** linear regression&lt;br /&gt;
** t-tests, ANOVA&lt;br /&gt;
** Summarizing regression results&lt;br /&gt;
&lt;br /&gt;
* &lt;br /&gt;
&lt;br /&gt;
== Organizing your workspace and files ==&lt;br /&gt;
* To minimize revision of the code within the team, while working on your project, it would be useful to save your files on the coursedrive&lt;br /&gt;
* Have a folder with your project name on the course drive&lt;br /&gt;
* Let the instruction for reading your .csv file be like the following&lt;br /&gt;
{{YouTube|id=OJ4WBjV5o1I|width=400|height=300}}&lt;br /&gt;
&lt;br /&gt;
* &lt;br /&gt;
*&lt;/div&gt;</summary>
		<author><name>VikasMenghwani</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Course:Cons452/UsingR&amp;diff=570325</id>
		<title>Course:Cons452/UsingR</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Course:Cons452/UsingR&amp;diff=570325"/>
		<updated>2019-11-08T01:43:43Z</updated>

		<summary type="html">&lt;p&gt;VikasMenghwani: /* Getting familiar with R Studio */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What is R ==&lt;br /&gt;
[[File:R_vs_R_studio.png|thumb|R studio relies on the R programming language and uses it to write statistical programs. R studio can then be used to perform statistical analysis. R is the engine, while R studio is like the dashboard.|564x564px]]R is a programming language and a open source software environment for statistical computing, and is widely used for [https://en.wikipedia.org/wiki/Data_analysis data analysis]. R allows an extraordinary range of statistical calculations. It is a free program, mainly written by voluntary contributions from statisticians around the world. R has its home page at https://www.r-project.org/. &lt;br /&gt;
&lt;br /&gt;
For this course, to utilize R for various statistical analysis, we will utilize [https://en.wikipedia.org/wiki/RStudio R Studio], which is an [https://en.wikipedia.org/wiki/Integrated_development_environment Integrated Development Environment] (IDE). The picture below depicts the main difference between the two. &lt;br /&gt;
== Installing R and R Studio Desktop ==&lt;br /&gt;
You need to install both R and R studio on your computer. First, you should install R, followed by R Studio. We will be relying on R Studio Desktop version (it also has a cloud version called R Studio Server)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!R&lt;br /&gt;
!R Studio&lt;br /&gt;
|-&lt;br /&gt;
|Download: &lt;br /&gt;
# Go to https://cran.r-project.org/&lt;br /&gt;
# Click on download links on the top of the page&lt;br /&gt;
#* For &#039;&#039;&#039;Mac OS&#039;&#039;&#039;, click on Download R for (Mac) OS X&lt;br /&gt;
#** Click on the latest &amp;lt;code&amp;gt;.pkg&amp;lt;/code&amp;gt; file e.g. &amp;lt;code&amp;gt;R-3.6.1.pkg&amp;lt;/code&amp;gt;&lt;br /&gt;
#* For &#039;&#039;&#039;Windows&#039;&#039;&#039;, click on Download R for Windows&lt;br /&gt;
#** Click on &#039;&#039;&#039;&amp;lt;u&amp;gt;install R for the first time&amp;lt;/u&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
#** Click on the top most Download link&lt;br /&gt;
# Click on the downloaded files and follow the installation instructions.&lt;br /&gt;
|Download: &lt;br /&gt;
# Go to https://rstudio.com/products/rstudio/download/&lt;br /&gt;
# Click and download the appropriate file depending on your operating system.&lt;br /&gt;
# Click on the downloaded files and follow the installation instructions.&lt;br /&gt;
|}&lt;br /&gt;
After installing, access R Studio like you would access any other application on your computer. It may be useful to add a desktop shortcut for easy access.&lt;br /&gt;
&lt;br /&gt;
== Getting familiar with R Studio ==&lt;br /&gt;
&#039;&#039;&#039;Navigating the Interface:&#039;&#039;&#039; &lt;br /&gt;
*[ Create PDF &amp;quot;getting familiar&amp;quot; with interface ; ie: command line, saving your code, defining variables] &lt;br /&gt;
&#039;&#039;&#039;Download a Package:&#039;&#039;&#039;&lt;br /&gt;
*To performing a particular task, there are numerous approaches within R - they are linked to various packages. Follow these instructions to download a package of choice.  [insert PDF &amp;quot;How to Download a Package] &lt;br /&gt;
&#039;&#039;&#039;Getting Familiar Cheatsheets:&#039;&#039;&#039; &lt;br /&gt;
* [https://wiki.ubc.ca/images/c/cf/Basic_R_CS.pdf Basics] &lt;br /&gt;
* [https://wiki.ubc.ca/images/2/29/Data_Import_CS.pdf Data import] &lt;br /&gt;
* R Markdown Cheatsheet:&lt;br /&gt;
&lt;br /&gt;
== Reading data ==&lt;br /&gt;
&#039;&#039;&#039;Importing Data Cheatsheet :&#039;&#039;&#039;&lt;br /&gt;
* &lt;br /&gt;
[[File:Data_Import_CS.pdf|thumb|The Data Import cheat sheet reminds you how to read in flat files with http://readr.tidyverse.org/, work with the results as tibbles, and reshape messy data with tidyr. Use tidyr to reshape your tables into tidy data, the data format that works the most seamlessly with R and the tidyverse]] &lt;br /&gt;
*Reading in .csv files&lt;br /&gt;
* Reading other formats:&lt;br /&gt;
** converting .dta to .csv&lt;br /&gt;
** &lt;br /&gt;
&lt;br /&gt;
Exporting or writing your output file back as a table (.csv)&lt;br /&gt;
&lt;br /&gt;
== Data Transformation ==&lt;br /&gt;
Packages used: tydyr, dplyr&lt;br /&gt;
&lt;br /&gt;
* Date Transformation with dplyr Cheatsheet: [[File:Data_Transformation_CS.pdf|thumb|dplyr provides a grammar for manipulating tables in R. This cheat sheet will guide you through the grammar, reminding you how to select, filter, arrange, mutate, summarise, group, and join data frames and tibbles.]]&lt;br /&gt;
*Data Manipulation with data table Cheatsheet: [[File:Data_Table_CS.pdf|thumb|Data manipulation with data.table.]] &lt;br /&gt;
*Reading your data &lt;br /&gt;
* Adding columns or changing columns&lt;br /&gt;
* Deleting/subsetting&lt;br /&gt;
* Performing simple algebra or Tabular data (excel like analysis)&lt;br /&gt;
&lt;br /&gt;
== Data visualization ==&lt;br /&gt;
Packages used: ggplot2&lt;br /&gt;
* ggplot2 Cheatsheet: [[File:Ggplot2_CS.pdf|thumb|Datavisualization with ggplot2]]&lt;br /&gt;
* Scatter Plot&lt;br /&gt;
* Frequency plots&lt;br /&gt;
* Boxplots&lt;br /&gt;
* &lt;br /&gt;
&lt;br /&gt;
== Data analysis ==&lt;br /&gt;
Packages used:&lt;br /&gt;
&lt;br /&gt;
* Descriptive statistics&lt;br /&gt;
** Summarizing data (mean, median, sd etc.)&lt;br /&gt;
** box plots&lt;br /&gt;
* Statistical tests&lt;br /&gt;
** linear regression&lt;br /&gt;
** t-tests, ANOVA&lt;br /&gt;
** Summarizing regression results&lt;br /&gt;
&lt;br /&gt;
* &lt;br /&gt;
&lt;br /&gt;
== Organizing your workspace and files ==&lt;br /&gt;
* To minimize revision of the code within the team, while working on your project, it would be useful to save your files on the coursedrive&lt;br /&gt;
* Have a folder with your project name on the course drive&lt;br /&gt;
* Let the instruction for reading your .csv file be like the following&lt;br /&gt;
* &lt;br /&gt;
*&lt;/div&gt;</summary>
		<author><name>VikasMenghwani</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Course:Cons452/UsingR&amp;diff=570324</id>
		<title>Course:Cons452/UsingR</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Course:Cons452/UsingR&amp;diff=570324"/>
		<updated>2019-11-08T01:42:25Z</updated>

		<summary type="html">&lt;p&gt;VikasMenghwani: /* Getting familiar with R Studio */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What is R ==&lt;br /&gt;
[[File:R_vs_R_studio.png|thumb|R studio relies on the R programming language and uses it to write statistical programs. R studio can then be used to perform statistical analysis. R is the engine, while R studio is like the dashboard.|564x564px]]R is a programming language and a open source software environment for statistical computing, and is widely used for [https://en.wikipedia.org/wiki/Data_analysis data analysis]. R allows an extraordinary range of statistical calculations. It is a free program, mainly written by voluntary contributions from statisticians around the world. R has its home page at https://www.r-project.org/. &lt;br /&gt;
&lt;br /&gt;
For this course, to utilize R for various statistical analysis, we will utilize [https://en.wikipedia.org/wiki/RStudio R Studio], which is an [https://en.wikipedia.org/wiki/Integrated_development_environment Integrated Development Environment] (IDE). The picture below depicts the main difference between the two. &lt;br /&gt;
== Installing R and R Studio Desktop ==&lt;br /&gt;
You need to install both R and R studio on your computer. First, you should install R, followed by R Studio. We will be relying on R Studio Desktop version (it also has a cloud version called R Studio Server)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!R&lt;br /&gt;
!R Studio&lt;br /&gt;
|-&lt;br /&gt;
|Download: &lt;br /&gt;
# Go to https://cran.r-project.org/&lt;br /&gt;
# Click on download links on the top of the page&lt;br /&gt;
#* For &#039;&#039;&#039;Mac OS&#039;&#039;&#039;, click on Download R for (Mac) OS X&lt;br /&gt;
#** Click on the latest &amp;lt;code&amp;gt;.pkg&amp;lt;/code&amp;gt; file e.g. &amp;lt;code&amp;gt;R-3.6.1.pkg&amp;lt;/code&amp;gt;&lt;br /&gt;
#* For &#039;&#039;&#039;Windows&#039;&#039;&#039;, click on Download R for Windows&lt;br /&gt;
#** Click on &#039;&#039;&#039;&amp;lt;u&amp;gt;install R for the first time&amp;lt;/u&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
#** Click on the top most Download link&lt;br /&gt;
# Click on the downloaded files and follow the installation instructions.&lt;br /&gt;
|Download: &lt;br /&gt;
# Go to https://rstudio.com/products/rstudio/download/&lt;br /&gt;
# Click and download the appropriate file depending on your operating system.&lt;br /&gt;
# Click on the downloaded files and follow the installation instructions.&lt;br /&gt;
|}&lt;br /&gt;
After installing, access R Studio like you would access any other application on your computer. It may be useful to add a desktop shortcut for easy access.&lt;br /&gt;
&lt;br /&gt;
== Getting familiar with R Studio ==&lt;br /&gt;
&#039;&#039;&#039;Navigating the Interface:&#039;&#039;&#039; &lt;br /&gt;
*[ Create PDF &amp;quot;getting familiar&amp;quot; with interface ; ie: command line, saving your code, defining variables] &lt;br /&gt;
&#039;&#039;&#039;Download a Package:&#039;&#039;&#039;&lt;br /&gt;
*To performing a particular task, there are numerous approaches within R - they are linked to various packages. Follow these instructions to download a package of choice.  [insert PDF &amp;quot;How to Download a Package] &lt;br /&gt;
&#039;&#039;&#039;Getting Familiar Cheatsheets:&#039;&#039;&#039; &lt;br /&gt;
* [https://wiki.ubc.ca/images/c/cf/Basic_R_CS.pdf Basics] &lt;br /&gt;
* R Markdown Cheatsheet:&lt;br /&gt;
&lt;br /&gt;
== Reading data ==&lt;br /&gt;
&#039;&#039;&#039;Importing Data Cheatsheet :&#039;&#039;&#039;&lt;br /&gt;
* &lt;br /&gt;
[[File:Data_Import_CS.pdf|thumb|The Data Import cheat sheet reminds you how to read in flat files with http://readr.tidyverse.org/, work with the results as tibbles, and reshape messy data with tidyr. Use tidyr to reshape your tables into tidy data, the data format that works the most seamlessly with R and the tidyverse]] &lt;br /&gt;
*Reading in .csv files&lt;br /&gt;
* Reading other formats:&lt;br /&gt;
** converting .dta to .csv&lt;br /&gt;
** &lt;br /&gt;
&lt;br /&gt;
Exporting or writing your output file back as a table (.csv)&lt;br /&gt;
&lt;br /&gt;
== Data Transformation ==&lt;br /&gt;
Packages used: tydyr, dplyr&lt;br /&gt;
&lt;br /&gt;
* Date Transformation with dplyr Cheatsheet: [[File:Data_Transformation_CS.pdf|thumb|dplyr provides a grammar for manipulating tables in R. This cheat sheet will guide you through the grammar, reminding you how to select, filter, arrange, mutate, summarise, group, and join data frames and tibbles.]]&lt;br /&gt;
*Data Manipulation with data table Cheatsheet: [[File:Data_Table_CS.pdf|thumb|Data manipulation with data.table.]] &lt;br /&gt;
*Reading your data &lt;br /&gt;
* Adding columns or changing columns&lt;br /&gt;
* Deleting/subsetting&lt;br /&gt;
* Performing simple algebra or Tabular data (excel like analysis)&lt;br /&gt;
&lt;br /&gt;
== Data visualization ==&lt;br /&gt;
Packages used: ggplot2&lt;br /&gt;
* ggplot2 Cheatsheet: [[File:Ggplot2_CS.pdf|thumb|Datavisualization with ggplot2]]&lt;br /&gt;
* Scatter Plot&lt;br /&gt;
* Frequency plots&lt;br /&gt;
* Boxplots&lt;br /&gt;
* &lt;br /&gt;
&lt;br /&gt;
== Data analysis ==&lt;br /&gt;
Packages used:&lt;br /&gt;
&lt;br /&gt;
* Descriptive statistics&lt;br /&gt;
** Summarizing data (mean, median, sd etc.)&lt;br /&gt;
** box plots&lt;br /&gt;
* Statistical tests&lt;br /&gt;
** linear regression&lt;br /&gt;
** t-tests, ANOVA&lt;br /&gt;
** Summarizing regression results&lt;br /&gt;
&lt;br /&gt;
* &lt;br /&gt;
&lt;br /&gt;
== Organizing your workspace and files ==&lt;br /&gt;
* To minimize revision of the code within the team, while working on your project, it would be useful to save your files on the coursedrive&lt;br /&gt;
* Have a folder with your project name on the course drive&lt;br /&gt;
* Let the instruction for reading your .csv file be like the following&lt;br /&gt;
* &lt;br /&gt;
*&lt;/div&gt;</summary>
		<author><name>VikasMenghwani</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Course:Cons452/UsingR&amp;diff=570323</id>
		<title>Course:Cons452/UsingR</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Course:Cons452/UsingR&amp;diff=570323"/>
		<updated>2019-11-08T01:41:28Z</updated>

		<summary type="html">&lt;p&gt;VikasMenghwani: /* Getting familiar with R Studio */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What is R ==&lt;br /&gt;
[[File:R_vs_R_studio.png|thumb|R studio relies on the R programming language and uses it to write statistical programs. R studio can then be used to perform statistical analysis. R is the engine, while R studio is like the dashboard.|564x564px]]R is a programming language and a open source software environment for statistical computing, and is widely used for [https://en.wikipedia.org/wiki/Data_analysis data analysis]. R allows an extraordinary range of statistical calculations. It is a free program, mainly written by voluntary contributions from statisticians around the world. R has its home page at https://www.r-project.org/. &lt;br /&gt;
&lt;br /&gt;
For this course, to utilize R for various statistical analysis, we will utilize [https://en.wikipedia.org/wiki/RStudio R Studio], which is an [https://en.wikipedia.org/wiki/Integrated_development_environment Integrated Development Environment] (IDE). The picture below depicts the main difference between the two. &lt;br /&gt;
== Installing R and R Studio Desktop ==&lt;br /&gt;
You need to install both R and R studio on your computer. First, you should install R, followed by R Studio. We will be relying on R Studio Desktop version (it also has a cloud version called R Studio Server)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!R&lt;br /&gt;
!R Studio&lt;br /&gt;
|-&lt;br /&gt;
|Download: &lt;br /&gt;
# Go to https://cran.r-project.org/&lt;br /&gt;
# Click on download links on the top of the page&lt;br /&gt;
#* For &#039;&#039;&#039;Mac OS&#039;&#039;&#039;, click on Download R for (Mac) OS X&lt;br /&gt;
#** Click on the latest &amp;lt;code&amp;gt;.pkg&amp;lt;/code&amp;gt; file e.g. &amp;lt;code&amp;gt;R-3.6.1.pkg&amp;lt;/code&amp;gt;&lt;br /&gt;
#* For &#039;&#039;&#039;Windows&#039;&#039;&#039;, click on Download R for Windows&lt;br /&gt;
#** Click on &#039;&#039;&#039;&amp;lt;u&amp;gt;install R for the first time&amp;lt;/u&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
#** Click on the top most Download link&lt;br /&gt;
# Click on the downloaded files and follow the installation instructions.&lt;br /&gt;
|Download: &lt;br /&gt;
# Go to https://rstudio.com/products/rstudio/download/&lt;br /&gt;
# Click and download the appropriate file depending on your operating system.&lt;br /&gt;
# Click on the downloaded files and follow the installation instructions.&lt;br /&gt;
|}&lt;br /&gt;
After installing, access R Studio like you would access any other application on your computer. It may be useful to add a desktop shortcut for easy access.&lt;br /&gt;
&lt;br /&gt;
== Getting familiar with R Studio ==&lt;br /&gt;
&#039;&#039;&#039;Navigating the Interface:&#039;&#039;&#039; &lt;br /&gt;
*[ Create PDF &amp;quot;getting familiar&amp;quot; with interface ; ie: command line, saving your code, defining variables] &lt;br /&gt;
&#039;&#039;&#039;Download a Package:&#039;&#039;&#039;&lt;br /&gt;
*To performing a particular task, there are numerous approaches within R - they are linked to various packages. Follow these instructions to download a package of choice.  [insert PDF &amp;quot;How to Download a Package] &lt;br /&gt;
&#039;&#039;&#039;Getting Familiar Cheatsheets:&#039;&#039;&#039; &lt;br /&gt;
* [https://wiki.ubc.ca/images/c/cf/Basic_R_CS.pdf Basics] of R Cheatsheet: [[File:Basic_R_CS.pdf|thumb|Vectors, Matrices, Lists, Data Frames, Functions and more in base R]] &lt;br /&gt;
* R Markdown Cheatsheet: &lt;br /&gt;
&lt;br /&gt;
== Reading data ==&lt;br /&gt;
&#039;&#039;&#039;Importing Data Cheatsheet :&#039;&#039;&#039;&lt;br /&gt;
* &lt;br /&gt;
[[File:Data_Import_CS.pdf|thumb|The Data Import cheat sheet reminds you how to read in flat files with http://readr.tidyverse.org/, work with the results as tibbles, and reshape messy data with tidyr. Use tidyr to reshape your tables into tidy data, the data format that works the most seamlessly with R and the tidyverse]] &lt;br /&gt;
*Reading in .csv files&lt;br /&gt;
* Reading other formats:&lt;br /&gt;
** converting .dta to .csv&lt;br /&gt;
** &lt;br /&gt;
&lt;br /&gt;
Exporting or writing your output file back as a table (.csv)&lt;br /&gt;
&lt;br /&gt;
== Data Transformation ==&lt;br /&gt;
Packages used: tydyr, dplyr&lt;br /&gt;
&lt;br /&gt;
* Date Transformation with dplyr Cheatsheet: [[File:Data_Transformation_CS.pdf|thumb|dplyr provides a grammar for manipulating tables in R. This cheat sheet will guide you through the grammar, reminding you how to select, filter, arrange, mutate, summarise, group, and join data frames and tibbles.]]&lt;br /&gt;
*Data Manipulation with data table Cheatsheet: [[File:Data_Table_CS.pdf|thumb|Data manipulation with data.table.]] &lt;br /&gt;
*Reading your data &lt;br /&gt;
* Adding columns or changing columns&lt;br /&gt;
* Deleting/subsetting&lt;br /&gt;
* Performing simple algebra or Tabular data (excel like analysis)&lt;br /&gt;
&lt;br /&gt;
== Data visualization ==&lt;br /&gt;
Packages used: ggplot2&lt;br /&gt;
* ggplot2 Cheatsheet: [[File:Ggplot2_CS.pdf|thumb|Datavisualization with ggplot2]]&lt;br /&gt;
* Scatter Plot&lt;br /&gt;
* Frequency plots&lt;br /&gt;
* Boxplots&lt;br /&gt;
* &lt;br /&gt;
&lt;br /&gt;
== Data analysis ==&lt;br /&gt;
Packages used:&lt;br /&gt;
&lt;br /&gt;
* Descriptive statistics&lt;br /&gt;
** Summarizing data (mean, median, sd etc.)&lt;br /&gt;
** box plots&lt;br /&gt;
* Statistical tests&lt;br /&gt;
** linear regression&lt;br /&gt;
** t-tests, ANOVA&lt;br /&gt;
** Summarizing regression results&lt;br /&gt;
&lt;br /&gt;
* &lt;br /&gt;
&lt;br /&gt;
== Organizing your workspace and files ==&lt;br /&gt;
* To minimize revision of the code within the team, while working on your project, it would be useful to save your files on the coursedrive&lt;br /&gt;
* Have a folder with your project name on the course drive&lt;br /&gt;
* Let the instruction for reading your .csv file be like the following&lt;br /&gt;
* &lt;br /&gt;
*&lt;/div&gt;</summary>
		<author><name>VikasMenghwani</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Course:Cons452/UsingR&amp;diff=570322</id>
		<title>Course:Cons452/UsingR</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Course:Cons452/UsingR&amp;diff=570322"/>
		<updated>2019-11-08T01:39:43Z</updated>

		<summary type="html">&lt;p&gt;VikasMenghwani: /* Getting familiar with R Studio */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What is R ==&lt;br /&gt;
[[File:R_vs_R_studio.png|thumb|R studio relies on the R programming language and uses it to write statistical programs. R studio can then be used to perform statistical analysis. R is the engine, while R studio is like the dashboard.|564x564px]]R is a programming language and a open source software environment for statistical computing, and is widely used for [https://en.wikipedia.org/wiki/Data_analysis data analysis]. R allows an extraordinary range of statistical calculations. It is a free program, mainly written by voluntary contributions from statisticians around the world. R has its home page at https://www.r-project.org/. &lt;br /&gt;
&lt;br /&gt;
For this course, to utilize R for various statistical analysis, we will utilize [https://en.wikipedia.org/wiki/RStudio R Studio], which is an [https://en.wikipedia.org/wiki/Integrated_development_environment Integrated Development Environment] (IDE). The picture below depicts the main difference between the two. &lt;br /&gt;
== Installing R and R Studio Desktop ==&lt;br /&gt;
You need to install both R and R studio on your computer. First, you should install R, followed by R Studio. We will be relying on R Studio Desktop version (it also has a cloud version called R Studio Server)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!R&lt;br /&gt;
!R Studio&lt;br /&gt;
|-&lt;br /&gt;
|Download: &lt;br /&gt;
# Go to https://cran.r-project.org/&lt;br /&gt;
# Click on download links on the top of the page&lt;br /&gt;
#* For &#039;&#039;&#039;Mac OS&#039;&#039;&#039;, click on Download R for (Mac) OS X&lt;br /&gt;
#** Click on the latest &amp;lt;code&amp;gt;.pkg&amp;lt;/code&amp;gt; file e.g. &amp;lt;code&amp;gt;R-3.6.1.pkg&amp;lt;/code&amp;gt;&lt;br /&gt;
#* For &#039;&#039;&#039;Windows&#039;&#039;&#039;, click on Download R for Windows&lt;br /&gt;
#** Click on &#039;&#039;&#039;&amp;lt;u&amp;gt;install R for the first time&amp;lt;/u&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
#** Click on the top most Download link&lt;br /&gt;
# Click on the downloaded files and follow the installation instructions.&lt;br /&gt;
|Download: &lt;br /&gt;
# Go to https://rstudio.com/products/rstudio/download/&lt;br /&gt;
# Click and download the appropriate file depending on your operating system.&lt;br /&gt;
# Click on the downloaded files and follow the installation instructions.&lt;br /&gt;
|}&lt;br /&gt;
After installing, access R Studio like you would access any other application on your computer. It may be useful to add a desktop shortcut for easy access.&lt;br /&gt;
&lt;br /&gt;
== Getting familiar with R Studio ==&lt;br /&gt;
&#039;&#039;&#039;Navigating the Interface:&#039;&#039;&#039; &lt;br /&gt;
*[ Create PDF &amp;quot;getting familiar&amp;quot; with interface ; ie: command line, saving your code, defining variables] &lt;br /&gt;
&#039;&#039;&#039;Download a Package:&#039;&#039;&#039;&lt;br /&gt;
*To performing a particular task, there are numerous approaches within R - they are linked to various packages. Follow these instructions to download a package of choice.  [insert PDF &amp;quot;How to Download a Package] &lt;br /&gt;
&#039;&#039;&#039;Getting Familiar Cheatsheets:&#039;&#039;&#039; &lt;br /&gt;
* [[Images/c/cf/Basic R CS.pdf|Basics]] of R Cheatsheet: [[File:Basic_R_CS.pdf|thumb|Vectors, Matrices, Lists, Data Frames, Functions and more in base R]] &lt;br /&gt;
* R Markdown Cheatsheet: &lt;br /&gt;
&lt;br /&gt;
== Reading data ==&lt;br /&gt;
&#039;&#039;&#039;Importing Data Cheatsheet :&#039;&#039;&#039;&lt;br /&gt;
* &lt;br /&gt;
[[File:Data_Import_CS.pdf|thumb|The Data Import cheat sheet reminds you how to read in flat files with http://readr.tidyverse.org/, work with the results as tibbles, and reshape messy data with tidyr. Use tidyr to reshape your tables into tidy data, the data format that works the most seamlessly with R and the tidyverse]] &lt;br /&gt;
*Reading in .csv files&lt;br /&gt;
* Reading other formats:&lt;br /&gt;
** converting .dta to .csv&lt;br /&gt;
** &lt;br /&gt;
&lt;br /&gt;
Exporting or writing your output file back as a table (.csv)&lt;br /&gt;
&lt;br /&gt;
== Data Transformation ==&lt;br /&gt;
Packages used: tydyr, dplyr&lt;br /&gt;
&lt;br /&gt;
* Date Transformation with dplyr Cheatsheet: [[File:Data_Transformation_CS.pdf|thumb|dplyr provides a grammar for manipulating tables in R. This cheat sheet will guide you through the grammar, reminding you how to select, filter, arrange, mutate, summarise, group, and join data frames and tibbles.]]&lt;br /&gt;
*Data Manipulation with data table Cheatsheet: [[File:Data_Table_CS.pdf|thumb|Data manipulation with data.table.]] &lt;br /&gt;
*Reading your data &lt;br /&gt;
* Adding columns or changing columns&lt;br /&gt;
* Deleting/subsetting&lt;br /&gt;
* Performing simple algebra or Tabular data (excel like analysis)&lt;br /&gt;
&lt;br /&gt;
== Data visualization ==&lt;br /&gt;
Packages used: ggplot2&lt;br /&gt;
* ggplot2 Cheatsheet: [[File:Ggplot2_CS.pdf|thumb|Datavisualization with ggplot2]]&lt;br /&gt;
* Scatter Plot&lt;br /&gt;
* Frequency plots&lt;br /&gt;
* Boxplots&lt;br /&gt;
* &lt;br /&gt;
&lt;br /&gt;
== Data analysis ==&lt;br /&gt;
Packages used:&lt;br /&gt;
&lt;br /&gt;
* Descriptive statistics&lt;br /&gt;
** Summarizing data (mean, median, sd etc.)&lt;br /&gt;
** box plots&lt;br /&gt;
* Statistical tests&lt;br /&gt;
** linear regression&lt;br /&gt;
** t-tests, ANOVA&lt;br /&gt;
** Summarizing regression results&lt;br /&gt;
&lt;br /&gt;
* &lt;br /&gt;
&lt;br /&gt;
== Organizing your workspace and files ==&lt;br /&gt;
* To minimize revision of the code within the team, while working on your project, it would be useful to save your files on the coursedrive&lt;br /&gt;
* Have a folder with your project name on the course drive&lt;br /&gt;
* Let the instruction for reading your .csv file be like the following&lt;br /&gt;
* &lt;br /&gt;
*&lt;/div&gt;</summary>
		<author><name>VikasMenghwani</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Course:Cons452/UsingR&amp;diff=570321</id>
		<title>Course:Cons452/UsingR</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Course:Cons452/UsingR&amp;diff=570321"/>
		<updated>2019-11-08T01:38:22Z</updated>

		<summary type="html">&lt;p&gt;VikasMenghwani: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What is R ==&lt;br /&gt;
[[File:R_vs_R_studio.png|thumb|R studio relies on the R programming language and uses it to write statistical programs. R studio can then be used to perform statistical analysis. R is the engine, while R studio is like the dashboard.|564x564px]]R is a programming language and a open source software environment for statistical computing, and is widely used for [https://en.wikipedia.org/wiki/Data_analysis data analysis]. R allows an extraordinary range of statistical calculations. It is a free program, mainly written by voluntary contributions from statisticians around the world. R has its home page at https://www.r-project.org/. &lt;br /&gt;
&lt;br /&gt;
For this course, to utilize R for various statistical analysis, we will utilize [https://en.wikipedia.org/wiki/RStudio R Studio], which is an [https://en.wikipedia.org/wiki/Integrated_development_environment Integrated Development Environment] (IDE). The picture below depicts the main difference between the two. &lt;br /&gt;
== Installing R and R Studio Desktop ==&lt;br /&gt;
You need to install both R and R studio on your computer. First, you should install R, followed by R Studio. We will be relying on R Studio Desktop version (it also has a cloud version called R Studio Server)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!R&lt;br /&gt;
!R Studio&lt;br /&gt;
|-&lt;br /&gt;
|Download: &lt;br /&gt;
# Go to https://cran.r-project.org/&lt;br /&gt;
# Click on download links on the top of the page&lt;br /&gt;
#* For &#039;&#039;&#039;Mac OS&#039;&#039;&#039;, click on Download R for (Mac) OS X&lt;br /&gt;
#** Click on the latest &amp;lt;code&amp;gt;.pkg&amp;lt;/code&amp;gt; file e.g. &amp;lt;code&amp;gt;R-3.6.1.pkg&amp;lt;/code&amp;gt;&lt;br /&gt;
#* For &#039;&#039;&#039;Windows&#039;&#039;&#039;, click on Download R for Windows&lt;br /&gt;
#** Click on &#039;&#039;&#039;&amp;lt;u&amp;gt;install R for the first time&amp;lt;/u&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
#** Click on the top most Download link&lt;br /&gt;
# Click on the downloaded files and follow the installation instructions.&lt;br /&gt;
|Download: &lt;br /&gt;
# Go to https://rstudio.com/products/rstudio/download/&lt;br /&gt;
# Click and download the appropriate file depending on your operating system.&lt;br /&gt;
# Click on the downloaded files and follow the installation instructions.&lt;br /&gt;
|}&lt;br /&gt;
After installing, access R Studio like you would access any other application on your computer. It may be useful to add a desktop shortcut for easy access.&lt;br /&gt;
&lt;br /&gt;
== Getting familiar with R Studio ==&lt;br /&gt;
&#039;&#039;&#039;Navigating the Interface:&#039;&#039;&#039; &lt;br /&gt;
*[ Create PDF &amp;quot;getting familiar&amp;quot; with interface ; ie: command line, saving your code, defining variables] &lt;br /&gt;
&#039;&#039;&#039;Download a Package:&#039;&#039;&#039;&lt;br /&gt;
*To performing a particular task, there are numerous approaches within R - they are linked to various packages. Follow these instructions to download a package of choice.  [insert PDF &amp;quot;How to Download a Package] &lt;br /&gt;
&#039;&#039;&#039;Getting Familiar Cheatsheets:&#039;&#039;&#039; &lt;br /&gt;
* Basics of R Cheatsheet: [[File:Basic_R_CS.pdf|thumb|Vectors, Matrices, Lists, Data Frames, Functions and more in base R]] &lt;br /&gt;
* R Markdown Cheatsheet: &lt;br /&gt;
&lt;br /&gt;
== Reading data ==&lt;br /&gt;
&#039;&#039;&#039;Importing Data Cheatsheet :&#039;&#039;&#039;&lt;br /&gt;
* &lt;br /&gt;
[[File:Data_Import_CS.pdf|thumb|The Data Import cheat sheet reminds you how to read in flat files with http://readr.tidyverse.org/, work with the results as tibbles, and reshape messy data with tidyr. Use tidyr to reshape your tables into tidy data, the data format that works the most seamlessly with R and the tidyverse]] &lt;br /&gt;
*Reading in .csv files&lt;br /&gt;
* Reading other formats:&lt;br /&gt;
** converting .dta to .csv&lt;br /&gt;
** &lt;br /&gt;
&lt;br /&gt;
Exporting or writing your output file back as a table (.csv)&lt;br /&gt;
&lt;br /&gt;
== Data Transformation ==&lt;br /&gt;
Packages used: tydyr, dplyr&lt;br /&gt;
&lt;br /&gt;
* Date Transformation with dplyr Cheatsheet: [[File:Data_Transformation_CS.pdf|thumb|dplyr provides a grammar for manipulating tables in R. This cheat sheet will guide you through the grammar, reminding you how to select, filter, arrange, mutate, summarise, group, and join data frames and tibbles.]]&lt;br /&gt;
*Data Manipulation with data table Cheatsheet: [[File:Data_Table_CS.pdf|thumb|Data manipulation with data.table.]] &lt;br /&gt;
*Reading your data &lt;br /&gt;
* Adding columns or changing columns&lt;br /&gt;
* Deleting/subsetting&lt;br /&gt;
* Performing simple algebra or Tabular data (excel like analysis)&lt;br /&gt;
&lt;br /&gt;
== Data visualization ==&lt;br /&gt;
Packages used: ggplot2&lt;br /&gt;
* ggplot2 Cheatsheet: [[File:Ggplot2_CS.pdf|thumb|Datavisualization with ggplot2]]&lt;br /&gt;
* Scatter Plot&lt;br /&gt;
* Frequency plots&lt;br /&gt;
* Boxplots&lt;br /&gt;
* &lt;br /&gt;
&lt;br /&gt;
== Data analysis ==&lt;br /&gt;
Packages used:&lt;br /&gt;
&lt;br /&gt;
* Descriptive statistics&lt;br /&gt;
** Summarizing data (mean, median, sd etc.)&lt;br /&gt;
** box plots&lt;br /&gt;
* Statistical tests&lt;br /&gt;
** linear regression&lt;br /&gt;
** t-tests, ANOVA&lt;br /&gt;
** Summarizing regression results&lt;br /&gt;
&lt;br /&gt;
* &lt;br /&gt;
&lt;br /&gt;
== Organizing your workspace and files ==&lt;br /&gt;
* To minimize revision of the code within the team, while working on your project, it would be useful to save your files on the coursedrive&lt;br /&gt;
* Have a folder with your project name on the course drive&lt;br /&gt;
* Let the instruction for reading your .csv file be like the following&lt;br /&gt;
* &lt;br /&gt;
*&lt;/div&gt;</summary>
		<author><name>VikasMenghwani</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Course:Cons452/UsingR&amp;diff=570320</id>
		<title>Course:Cons452/UsingR</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Course:Cons452/UsingR&amp;diff=570320"/>
		<updated>2019-11-08T01:29:29Z</updated>

		<summary type="html">&lt;p&gt;VikasMenghwani: /* Reading data in R */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What is R ==&lt;br /&gt;
[[File:R_vs_R_studio.png|thumb|R studio relies on the R programming language and uses it to write statistical programs. R studio can then be used to perform statistical analysis. R is the engine, while R studio is like the dashboard.|564x564px]]R is a programming language and a open source software environment for statistical computing, and is widely used for [https://en.wikipedia.org/wiki/Data_analysis data analysis]. R allows an extraordinary range of statistical calculations. It is a free program, mainly written by voluntary contributions from statisticians around the world. R has its home page at https://www.r-project.org/. &lt;br /&gt;
&lt;br /&gt;
For this course, to utilize R for various statistical analysis, we will utilize [https://en.wikipedia.org/wiki/RStudio R Studio], which is an [https://en.wikipedia.org/wiki/Integrated_development_environment Integrated Development Environment] (IDE). The picture below depicts the main difference between the two. &lt;br /&gt;
== Installing R and R Studio Desktop ==&lt;br /&gt;
You need to install both R and R studio on your computer. First, you should install R, followed by R Studio. We will be relying on R Studio Desktop version (it also has a cloud version called R Studio Server)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!R&lt;br /&gt;
!R Studio&lt;br /&gt;
|-&lt;br /&gt;
|Download: &lt;br /&gt;
# Go to https://cran.r-project.org/&lt;br /&gt;
# Click on download links on the top of the page&lt;br /&gt;
#* For &#039;&#039;&#039;Mac OS&#039;&#039;&#039;, click on Download R for (Mac) OS X&lt;br /&gt;
#** Click on the latest &amp;lt;code&amp;gt;.pkg&amp;lt;/code&amp;gt; file e.g. &amp;lt;code&amp;gt;R-3.6.1.pkg&amp;lt;/code&amp;gt;&lt;br /&gt;
#* For &#039;&#039;&#039;Windows&#039;&#039;&#039;, click on Download R for Windows&lt;br /&gt;
#** Click on &#039;&#039;&#039;&amp;lt;u&amp;gt;install R for the first time&amp;lt;/u&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
#** Click on the top most Download link&lt;br /&gt;
# Click on the downloaded files and follow the installation instructions.&lt;br /&gt;
|Download: &lt;br /&gt;
# Go to https://rstudio.com/products/rstudio/download/&lt;br /&gt;
# Click and download the appropriate file depending on your operating system.&lt;br /&gt;
# Click on the downloaded files and follow the installation instructions.&lt;br /&gt;
|}&lt;br /&gt;
After installing, access R Studio like you would access any other application on your computer. It may be useful to add a desktop shortcut for easy access.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Navigating the Interface:&#039;&#039;&#039; &lt;br /&gt;
*[ Create PDF &amp;quot;getting familiar&amp;quot; with interface ; ie: command line, saving your code, defining variables] &lt;br /&gt;
&#039;&#039;&#039;Download a Package:&#039;&#039;&#039;&lt;br /&gt;
*To performing a particular task, there are numerous approaches within R - they are linked to various packages. Follow these instructions to download a package of choice.  [insert PDF &amp;quot;How to Download a Package] &lt;br /&gt;
&#039;&#039;&#039;Getting Familiar Cheatsheets:&#039;&#039;&#039; &lt;br /&gt;
* Basics of R Cheatsheet: [[File:Basic_R_CS.pdf|thumb|Vectors, Matrices, Lists, Data Frames, Functions and more in base R]] &lt;br /&gt;
* R Markdown Cheatsheet: &lt;br /&gt;
&lt;br /&gt;
== Reading data ==&lt;br /&gt;
&#039;&#039;&#039;Importing Data Cheatsheet :&#039;&#039;&#039;&lt;br /&gt;
* &lt;br /&gt;
[[File:Data_Import_CS.pdf|thumb|The Data Import cheat sheet reminds you how to read in flat files with http://readr.tidyverse.org/, work with the results as tibbles, and reshape messy data with tidyr. Use tidyr to reshape your tables into tidy data, the data format that works the most seamlessly with R and the tidyverse]] &lt;br /&gt;
*Reading in .csv files&lt;br /&gt;
* Reading other formats:&lt;br /&gt;
** converting .dta to .csv&lt;br /&gt;
** &lt;br /&gt;
&lt;br /&gt;
Exporting or writing your output file back as a table (.csv)&lt;br /&gt;
&lt;br /&gt;
== Data Transformation ==&lt;br /&gt;
Packages used: tydyr, dplyr&lt;br /&gt;
&lt;br /&gt;
* Date Transformation with dplyr Cheatsheet: [[File:Data_Transformation_CS.pdf|thumb|dplyr provides a grammar for manipulating tables in R. This cheat sheet will guide you through the grammar, reminding you how to select, filter, arrange, mutate, summarise, group, and join data frames and tibbles.]]&lt;br /&gt;
*Data Manipulation with data table Cheatsheet: [[File:Data_Table_CS.pdf|thumb|Data manipulation with data.table.]] &lt;br /&gt;
*Reading your data &lt;br /&gt;
* Adding columns or changing columns&lt;br /&gt;
* Deleting/subsetting&lt;br /&gt;
* Performing simple algebra or Tabular data (excel like analysis)&lt;br /&gt;
&lt;br /&gt;
== Data visualization ==&lt;br /&gt;
Packages used: ggplot2&lt;br /&gt;
* ggplot2 Cheatsheet: [[File:Ggplot2_CS.pdf|thumb|Datavisualization with ggplot2]]&lt;br /&gt;
* Scatter Plot&lt;br /&gt;
* Frequency plots&lt;br /&gt;
* Boxplots&lt;br /&gt;
* &lt;br /&gt;
&lt;br /&gt;
== Data analysis ==&lt;br /&gt;
Packages used:&lt;br /&gt;
&lt;br /&gt;
* Descriptive statistics&lt;br /&gt;
** Summarizing data (mean, median, sd etc.)&lt;br /&gt;
** box plots&lt;br /&gt;
* Statistical tests&lt;br /&gt;
** linear regression&lt;br /&gt;
** t-tests, ANOVA&lt;br /&gt;
** Summarizing regression results&lt;br /&gt;
&lt;br /&gt;
* &lt;br /&gt;
&lt;br /&gt;
== Organizing your workspace and files ==&lt;br /&gt;
* To minimize revision of the code within the team, while working on your project, it would be useful to save your files on the coursedrive&lt;br /&gt;
* Have a folder with your project name on the course drive&lt;br /&gt;
* Let the instruction for reading your .csv file be like the following&lt;br /&gt;
* &lt;br /&gt;
*&lt;/div&gt;</summary>
		<author><name>VikasMenghwani</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Course:Cons452/UsingR&amp;diff=570319</id>
		<title>Course:Cons452/UsingR</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Course:Cons452/UsingR&amp;diff=570319"/>
		<updated>2019-11-08T01:21:12Z</updated>

		<summary type="html">&lt;p&gt;VikasMenghwani: /* What is R */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What is R ==&lt;br /&gt;
[[File:R_vs_R_studio.png|thumb|R studio relies on the R programming language and uses it to write statistical programs. R studio can then be used to perform statistical analysis. R is the engine, while R studio is like the dashboard.|564x564px]]R is a programming language and a open source software environment for statistical computing, and is widely used for [https://en.wikipedia.org/wiki/Data_analysis data analysis]. R allows an extraordinary range of statistical calculations. It is a free program, mainly written by voluntary contributions from statisticians around the world. R has its home page at https://www.r-project.org/. &lt;br /&gt;
&lt;br /&gt;
For this course, to utilize R for various statistical analysis, we will utilize [https://en.wikipedia.org/wiki/RStudio R Studio], which is an [https://en.wikipedia.org/wiki/Integrated_development_environment Integrated Development Environment] (IDE). The picture below depicts the main difference between the two. &lt;br /&gt;
== Installing R and R Studio Desktop ==&lt;br /&gt;
You need to install both R and R studio on your computer. First, you should install R, followed by R Studio. We will be relying on R Studio Desktop version (it also has a cloud version called R Studio Server)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!R&lt;br /&gt;
!R Studio&lt;br /&gt;
|-&lt;br /&gt;
|Download: &lt;br /&gt;
# Go to https://cran.r-project.org/&lt;br /&gt;
# Click on download links on the top of the page&lt;br /&gt;
#* For &#039;&#039;&#039;Mac OS&#039;&#039;&#039;, click on Download R for (Mac) OS X&lt;br /&gt;
#** Click on the latest &amp;lt;code&amp;gt;.pkg&amp;lt;/code&amp;gt; file e.g. &amp;lt;code&amp;gt;R-3.6.1.pkg&amp;lt;/code&amp;gt;&lt;br /&gt;
#* For &#039;&#039;&#039;Windows&#039;&#039;&#039;, click on Download R for Windows&lt;br /&gt;
#** Click on &#039;&#039;&#039;&amp;lt;u&amp;gt;install R for the first time&amp;lt;/u&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
#** Click on the top most Download link&lt;br /&gt;
# Click on the downloaded files and follow the installation instructions.&lt;br /&gt;
|Download: &lt;br /&gt;
# Go to https://rstudio.com/products/rstudio/download/&lt;br /&gt;
# Click and download the appropriate file depending on your operating system.&lt;br /&gt;
# Click on the downloaded files and follow the installation instructions.&lt;br /&gt;
|}&lt;br /&gt;
After installing, access R Studio like you would access any other application on your computer. It may be useful to add a desktop shortcut for easy access.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Navigating the Interface:&#039;&#039;&#039; &lt;br /&gt;
*[ Create PDF &amp;quot;getting familiar&amp;quot; with interface ; ie: command line, saving your code, defining variables] &lt;br /&gt;
&#039;&#039;&#039;Download a Package:&#039;&#039;&#039;&lt;br /&gt;
*To performing a particular task, there are numerous approaches within R - they are linked to various packages. Follow these instructions to download a package of choice.  [insert PDF &amp;quot;How to Download a Package] &lt;br /&gt;
&#039;&#039;&#039;Getting Familiar Cheatsheets:&#039;&#039;&#039; &lt;br /&gt;
* Basics of R Cheatsheet: [[File:Basic_R_CS.pdf|thumb|Vectors, Matrices, Lists, Data Frames, Functions and more in base R]] &lt;br /&gt;
* R Markdown Cheatsheet: &lt;br /&gt;
&lt;br /&gt;
== Reading data in R ==&lt;br /&gt;
&#039;&#039;&#039;Importing Data Cheatsheet :&#039;&#039;&#039;&lt;br /&gt;
* &lt;br /&gt;
[[File:Data_Import_CS.pdf|thumb|The Data Import cheat sheet reminds you how to read in flat files with http://readr.tidyverse.org/, work with the results as tibbles, and reshape messy data with tidyr. Use tidyr to reshape your tables into tidy data, the data format that works the most seamlessly with R and the tidyverse]] &lt;br /&gt;
*Reading in .csv files&lt;br /&gt;
* Reading other formats:&lt;br /&gt;
** converting .dta to .csv&lt;br /&gt;
** &lt;br /&gt;
&lt;br /&gt;
Exporting or writing your output file back as a table (.csv)&lt;br /&gt;
&lt;br /&gt;
== Data Transformation ==&lt;br /&gt;
Packages used: tydyr, dplyr&lt;br /&gt;
&lt;br /&gt;
* Date Transformation with dplyr Cheatsheet: [[File:Data_Transformation_CS.pdf|thumb|dplyr provides a grammar for manipulating tables in R. This cheat sheet will guide you through the grammar, reminding you how to select, filter, arrange, mutate, summarise, group, and join data frames and tibbles.]]&lt;br /&gt;
*Data Manipulation with data table Cheatsheet: [[File:Data_Table_CS.pdf|thumb|Data manipulation with data.table.]] &lt;br /&gt;
*Reading your data &lt;br /&gt;
* Adding columns or changing columns&lt;br /&gt;
* Deleting/subsetting&lt;br /&gt;
* Performing simple algebra or Tabular data (excel like analysis)&lt;br /&gt;
&lt;br /&gt;
== Data visualization ==&lt;br /&gt;
Packages used: ggplot2&lt;br /&gt;
* ggplot2 Cheatsheet: [[File:Ggplot2_CS.pdf|thumb|Datavisualization with ggplot2]]&lt;br /&gt;
* Scatter Plot&lt;br /&gt;
* Frequency plots&lt;br /&gt;
* Boxplots&lt;br /&gt;
* &lt;br /&gt;
&lt;br /&gt;
== Data analysis ==&lt;br /&gt;
Packages used:&lt;br /&gt;
&lt;br /&gt;
* Descriptive statistics&lt;br /&gt;
** Summarizing data (mean, median, sd etc.)&lt;br /&gt;
** box plots&lt;br /&gt;
* Statistical tests&lt;br /&gt;
** linear regression&lt;br /&gt;
** t-tests, ANOVA&lt;br /&gt;
** Summarizing regression results&lt;br /&gt;
&lt;br /&gt;
* &lt;br /&gt;
&lt;br /&gt;
== Organizing your workspace and files ==&lt;br /&gt;
* To minimize revision of the code within the team, while working on your project, it would be useful to save your files on the coursedrive&lt;br /&gt;
* Have a folder with your project name on the course drive&lt;br /&gt;
* Let the instruction for reading your .csv file be like the following&lt;br /&gt;
* &lt;br /&gt;
*&lt;/div&gt;</summary>
		<author><name>VikasMenghwani</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Course:Cons452/UsingR&amp;diff=570318</id>
		<title>Course:Cons452/UsingR</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Course:Cons452/UsingR&amp;diff=570318"/>
		<updated>2019-11-08T01:20:34Z</updated>

		<summary type="html">&lt;p&gt;VikasMenghwani: /* Installing R and R Studio */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What is R ==&lt;br /&gt;
R is a programming language and a open source software environment for statistical computing, and is widely used for [https://en.wikipedia.org/wiki/Data_analysis data analysis]. R allows an extraordinary range of statistical calculations. It is a free program, mainly written by voluntary contributions from statisticians around the world. R has its home page at https://www.r-project.org/. [[File:R_vs_R_studio.png|thumb|R studio relies on the R programming language and uses it to write statistical programs. R studio can then be used to perform statistical analysis. R is the engine, while R studio is like the dashboard.|678x678px]]For this course, to utilize R for various statistical analysis, we will utilize [https://en.wikipedia.org/wiki/RStudio R Studio], which is an [https://en.wikipedia.org/wiki/Integrated_development_environment Integrated Development Environment] (IDE). The picture below depicts the main difference between the two. &lt;br /&gt;
== Installing R and R Studio Desktop ==&lt;br /&gt;
You need to install both R and R studio on your computer. First, you should install R, followed by R Studio. We will be relying on R Studio Desktop version (it also has a cloud version called R Studio Server)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!R&lt;br /&gt;
!R Studio&lt;br /&gt;
|-&lt;br /&gt;
|Download: &lt;br /&gt;
# Go to https://cran.r-project.org/&lt;br /&gt;
# Click on download links on the top of the page&lt;br /&gt;
#* For &#039;&#039;&#039;Mac OS&#039;&#039;&#039;, click on Download R for (Mac) OS X&lt;br /&gt;
#** Click on the latest &amp;lt;code&amp;gt;.pkg&amp;lt;/code&amp;gt; file e.g. &amp;lt;code&amp;gt;R-3.6.1.pkg&amp;lt;/code&amp;gt;&lt;br /&gt;
#* For &#039;&#039;&#039;Windows&#039;&#039;&#039;, click on Download R for Windows&lt;br /&gt;
#** Click on &#039;&#039;&#039;&amp;lt;u&amp;gt;install R for the first time&amp;lt;/u&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
#** Click on the top most Download link&lt;br /&gt;
# Click on the downloaded files and follow the installation instructions.&lt;br /&gt;
|Download: &lt;br /&gt;
# Go to https://rstudio.com/products/rstudio/download/&lt;br /&gt;
# Click and download the appropriate file depending on your operating system.&lt;br /&gt;
# Click on the downloaded files and follow the installation instructions.&lt;br /&gt;
|}&lt;br /&gt;
After installing, access R Studio like you would access any other application on your computer. It may be useful to add a desktop shortcut for easy access.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Navigating the Interface:&#039;&#039;&#039; &lt;br /&gt;
*[ Create PDF &amp;quot;getting familiar&amp;quot; with interface ; ie: command line, saving your code, defining variables] &lt;br /&gt;
&#039;&#039;&#039;Download a Package:&#039;&#039;&#039;&lt;br /&gt;
*To performing a particular task, there are numerous approaches within R - they are linked to various packages. Follow these instructions to download a package of choice.  [insert PDF &amp;quot;How to Download a Package] &lt;br /&gt;
&#039;&#039;&#039;Getting Familiar Cheatsheets:&#039;&#039;&#039; &lt;br /&gt;
* Basics of R Cheatsheet: [[File:Basic_R_CS.pdf|thumb|Vectors, Matrices, Lists, Data Frames, Functions and more in base R]] &lt;br /&gt;
* R Markdown Cheatsheet: &lt;br /&gt;
&lt;br /&gt;
== Reading data in R ==&lt;br /&gt;
&#039;&#039;&#039;Importing Data Cheatsheet :&#039;&#039;&#039;&lt;br /&gt;
* &lt;br /&gt;
[[File:Data_Import_CS.pdf|thumb|The Data Import cheat sheet reminds you how to read in flat files with http://readr.tidyverse.org/, work with the results as tibbles, and reshape messy data with tidyr. Use tidyr to reshape your tables into tidy data, the data format that works the most seamlessly with R and the tidyverse]] &lt;br /&gt;
*Reading in .csv files&lt;br /&gt;
* Reading other formats:&lt;br /&gt;
** converting .dta to .csv&lt;br /&gt;
** &lt;br /&gt;
&lt;br /&gt;
Exporting or writing your output file back as a table (.csv)&lt;br /&gt;
&lt;br /&gt;
== Data Transformation ==&lt;br /&gt;
Packages used: tydyr, dplyr&lt;br /&gt;
&lt;br /&gt;
* Date Transformation with dplyr Cheatsheet: [[File:Data_Transformation_CS.pdf|thumb|dplyr provides a grammar for manipulating tables in R. This cheat sheet will guide you through the grammar, reminding you how to select, filter, arrange, mutate, summarise, group, and join data frames and tibbles.]]&lt;br /&gt;
*Data Manipulation with data table Cheatsheet: [[File:Data_Table_CS.pdf|thumb|Data manipulation with data.table.]] &lt;br /&gt;
*Reading your data &lt;br /&gt;
* Adding columns or changing columns&lt;br /&gt;
* Deleting/subsetting&lt;br /&gt;
* Performing simple algebra or Tabular data (excel like analysis)&lt;br /&gt;
&lt;br /&gt;
== Data visualization ==&lt;br /&gt;
Packages used: ggplot2&lt;br /&gt;
* ggplot2 Cheatsheet: [[File:Ggplot2_CS.pdf|thumb|Datavisualization with ggplot2]]&lt;br /&gt;
* Scatter Plot&lt;br /&gt;
* Frequency plots&lt;br /&gt;
* Boxplots&lt;br /&gt;
* &lt;br /&gt;
&lt;br /&gt;
== Data analysis ==&lt;br /&gt;
Packages used:&lt;br /&gt;
&lt;br /&gt;
* Descriptive statistics&lt;br /&gt;
** Summarizing data (mean, median, sd etc.)&lt;br /&gt;
** box plots&lt;br /&gt;
* Statistical tests&lt;br /&gt;
** linear regression&lt;br /&gt;
** t-tests, ANOVA&lt;br /&gt;
** Summarizing regression results&lt;br /&gt;
&lt;br /&gt;
* &lt;br /&gt;
&lt;br /&gt;
== Organizing your workspace and files ==&lt;br /&gt;
* To minimize revision of the code within the team, while working on your project, it would be useful to save your files on the coursedrive&lt;br /&gt;
* Have a folder with your project name on the course drive&lt;br /&gt;
* Let the instruction for reading your .csv file be like the following&lt;br /&gt;
* &lt;br /&gt;
*&lt;/div&gt;</summary>
		<author><name>VikasMenghwani</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Course:Cons452/UsingR&amp;diff=570316</id>
		<title>Course:Cons452/UsingR</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Course:Cons452/UsingR&amp;diff=570316"/>
		<updated>2019-11-08T00:56:29Z</updated>

		<summary type="html">&lt;p&gt;VikasMenghwani: /* Installing R on Mac or Windows */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What is R ==&lt;br /&gt;
R is a programming language and a open source software environment for statistical computing, and is widely used for [https://en.wikipedia.org/wiki/Data_analysis data analysis]. R allows an extraordinary range of statistical calculations. It is a free program, mainly written by voluntary contributions from statisticians around the world. R has its home page at https://www.r-project.org/. [[File:R_vs_R_studio.png|thumb|R studio relies on the R programming language and uses it to write statistical programs. R studio can then be used to perform statistical analysis. R is the engine, while R studio is like the dashboard.|678x678px]]For this course, to utilize R for various statistical analysis, we will utilize [https://en.wikipedia.org/wiki/RStudio R Studio], which is an [https://en.wikipedia.org/wiki/Integrated_development_environment Integrated Development Environment] (IDE). The picture below depicts the main difference between the two. &lt;br /&gt;
== Installing R and R Studio ==&lt;br /&gt;
You need to install both R and R studio on your computer. First, you should install R, followed by R Studio.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!R&lt;br /&gt;
!R Studio&lt;br /&gt;
|-&lt;br /&gt;
|Download the appropriate file (depending on your operating system) from the top of this page: https://cran.r-project.org/&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;Loading R on your computer&#039;&#039;&#039; ===&lt;br /&gt;
A list of sites where R can be downloaded is maintained at &amp;lt;nowiki&amp;gt;https://cran.r-&amp;lt;/nowiki&amp;gt; project.org/mirrors.html —choose the site geographically nearest you. From the top box, click on the link that matches your type of computer.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Macs&#039;&#039;&#039; -- To load R, choose the MacOS link from the CRAN website above. From the resulting page (called “R for Mac OS X”) choose the .pkg file that matches your version of the operating system – usually this is the first one. Download that package, click on the .pkg file once it has downloaded fully, and follow instructions on the screen.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Windows&#039;&#039;&#039; -- After choosing Windows from the CRAN page, click on the first link for labeled “base”. Then click on the large top link “Download R 3.X.X for Windows”. Run the .exe file that downloads.&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;Loading RStudio onto your computer&#039;&#039;&#039; ===&lt;br /&gt;
Go to &amp;lt;nowiki&amp;gt;https://www.rstudio.com/products/rstudio/download/&amp;lt;/nowiki&amp;gt; and choose the “DOWNLOAD” button under the left column for RStudio Desktop FREE. Then from the list of Installers, choose one that matches your operating system.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Mac&#039;&#039;&#039; – Open the .dmg file that downloads, and in the resulting window slide the RStudio icon into the Applications icon.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Windows&#039;&#039;&#039; – Run the .exe installer file that downloads.&lt;br /&gt;
* [[File:Markdown_CS.pdf|thumb|R Markdown is an authoring format that makes it easy to write reusable reports with R. You combine your R code with narration written in markdown (an easy-to-write plain text format) and then export the results as an html, pdf, or Word file. You can even use R Markdown to build interactive documents and slideshows]] &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Navigating the Interface:&#039;&#039;&#039; &lt;br /&gt;
*[ Create PDF &amp;quot;getting familiar&amp;quot; with interface ; ie: command line, saving your code, defining variables] &lt;br /&gt;
&#039;&#039;&#039;Download a Package:&#039;&#039;&#039;&lt;br /&gt;
*To performing a particular task, there are numerous approaches within R - they are linked to various packages. Follow these instructions to download a package of choice.  [insert PDF &amp;quot;How to Download a Package] &lt;br /&gt;
&#039;&#039;&#039;Getting Familiar Cheatsheets:&#039;&#039;&#039; &lt;br /&gt;
* Basics of R Cheatsheet: [[File:Basic_R_CS.pdf|thumb|Vectors, Matrices, Lists, Data Frames, Functions and more in base R]] &lt;br /&gt;
* R Markdown Cheatsheet: &lt;br /&gt;
&lt;br /&gt;
== Reading data in R ==&lt;br /&gt;
&#039;&#039;&#039;Importing Data Cheatsheet :&#039;&#039;&#039;&lt;br /&gt;
* &lt;br /&gt;
[[File:Data_Import_CS.pdf|thumb|The Data Import cheat sheet reminds you how to read in flat files with http://readr.tidyverse.org/, work with the results as tibbles, and reshape messy data with tidyr. Use tidyr to reshape your tables into tidy data, the data format that works the most seamlessly with R and the tidyverse]] &lt;br /&gt;
*Reading in .csv files&lt;br /&gt;
* Reading other formats:&lt;br /&gt;
** converting .dta to .csv&lt;br /&gt;
** &lt;br /&gt;
&lt;br /&gt;
Exporting or writing your output file back as a table (.csv)&lt;br /&gt;
&lt;br /&gt;
== Data Transformation ==&lt;br /&gt;
Packages used: tydyr, dplyr&lt;br /&gt;
&lt;br /&gt;
* Date Transformation with dplyr Cheatsheet: [[File:Data_Transformation_CS.pdf|thumb|dplyr provides a grammar for manipulating tables in R. This cheat sheet will guide you through the grammar, reminding you how to select, filter, arrange, mutate, summarise, group, and join data frames and tibbles.]]&lt;br /&gt;
*Data Manipulation with data table Cheatsheet: [[File:Data_Table_CS.pdf|thumb|Data manipulation with data.table.]] &lt;br /&gt;
*Reading your data &lt;br /&gt;
* Adding columns or changing columns&lt;br /&gt;
* Deleting/subsetting&lt;br /&gt;
* Performing simple algebra or Tabular data (excel like analysis)&lt;br /&gt;
&lt;br /&gt;
== Data visualization ==&lt;br /&gt;
Packages used: ggplot2&lt;br /&gt;
* ggplot2 Cheatsheet: [[File:Ggplot2_CS.pdf|thumb|Datavisualization with ggplot2]]&lt;br /&gt;
* Scatter Plot&lt;br /&gt;
* Frequency plots&lt;br /&gt;
* Boxplots&lt;br /&gt;
* &lt;br /&gt;
&lt;br /&gt;
== Data analysis ==&lt;br /&gt;
Packages used:&lt;br /&gt;
&lt;br /&gt;
* Descriptive statistics&lt;br /&gt;
** Summarizing data (mean, median, sd etc.)&lt;br /&gt;
** box plots&lt;br /&gt;
* Statistical tests&lt;br /&gt;
** linear regression&lt;br /&gt;
** t-tests, ANOVA&lt;br /&gt;
** Summarizing regression results&lt;br /&gt;
&lt;br /&gt;
* &lt;br /&gt;
&lt;br /&gt;
== Organizing your workspace and files ==&lt;br /&gt;
* To minimize revision of the code within the team, while working on your project, it would be useful to save your files on the coursedrive&lt;br /&gt;
* Have a folder with your project name on the course drive&lt;br /&gt;
* Let the instruction for reading your .csv file be like the following&lt;br /&gt;
* &lt;br /&gt;
*&lt;/div&gt;</summary>
		<author><name>VikasMenghwani</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Course:Cons452/UsingR&amp;diff=570313</id>
		<title>Course:Cons452/UsingR</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Course:Cons452/UsingR&amp;diff=570313"/>
		<updated>2019-11-08T00:44:29Z</updated>

		<summary type="html">&lt;p&gt;VikasMenghwani: /* Installing R on Mac or Windows */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What is R ==&lt;br /&gt;
R is a programming language and a open source software environment for statistical computing, and is widely used for [https://en.wikipedia.org/wiki/Data_analysis data analysis]. R allows an extraordinary range of statistical calculations. It is a free program, mainly written by voluntary contributions from statisticians around the world. R has its home page at https://www.r-project.org/. [[File:R_vs_R_studio.png|thumb|R studio relies on the R programming language and uses it to write statistical programs. R studio can then be used to perform statistical analysis. R is the engine, while R studio is like the dashboard.|678x678px]]For this course, to utilize R for various statistical analysis, we will utilize [https://en.wikipedia.org/wiki/RStudio R Studio], which is an [https://en.wikipedia.org/wiki/Integrated_development_environment Integrated Development Environment] (IDE). The picture below depicts the main difference between the two. &lt;br /&gt;
== Installing R on Mac or Windows ==&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;Loading R on your computer&#039;&#039;&#039; ===&lt;br /&gt;
A list of sites where R can be downloaded is maintained at &amp;lt;nowiki&amp;gt;https://cran.r-&amp;lt;/nowiki&amp;gt; project.org/mirrors.html —choose the site geographically nearest you. From the top box, click on the link that matches your type of computer.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Macs&#039;&#039;&#039; -- To load R, choose the MacOS link from the CRAN website above. From the resulting page (called “R for Mac OS X”) choose the .pkg file that matches your version of the operating system – usually this is the first one. Download that package, click on the .pkg file once it has downloaded fully, and follow instructions on the screen.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Windows&#039;&#039;&#039; -- After choosing Windows from the CRAN page, click on the first link for labeled “base”. Then click on the large top link “Download R 3.X.X for Windows”. Run the .exe file that downloads.&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;Loading RStudio onto your computer&#039;&#039;&#039; ===&lt;br /&gt;
Go to &amp;lt;nowiki&amp;gt;https://www.rstudio.com/products/rstudio/download/&amp;lt;/nowiki&amp;gt; and choose the “DOWNLOAD” button under the left column for RStudio Desktop FREE. Then from the list of Installers, choose one that matches your operating system.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Mac&#039;&#039;&#039; – Open the .dmg file that downloads, and in the resulting window slide the RStudio icon into the Applications icon.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Windows&#039;&#039;&#039; – Run the .exe installer file that downloads.&lt;br /&gt;
* [[File:Markdown_CS.pdf|thumb|R Markdown is an authoring format that makes it easy to write reusable reports with R. You combine your R code with narration written in markdown (an easy-to-write plain text format) and then export the results as an html, pdf, or Word file. You can even use R Markdown to build interactive documents and slideshows]] &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Navigating the Interface:&#039;&#039;&#039; &lt;br /&gt;
*[ Create PDF &amp;quot;getting familiar&amp;quot; with interface ; ie: command line, saving your code, defining variables] &lt;br /&gt;
&#039;&#039;&#039;Download a Package:&#039;&#039;&#039;&lt;br /&gt;
*To performing a particular task, there are numerous approaches within R - they are linked to various packages. Follow these instructions to download a package of choice.  [insert PDF &amp;quot;How to Download a Package] &lt;br /&gt;
&#039;&#039;&#039;Getting Familiar Cheatsheets:&#039;&#039;&#039; &lt;br /&gt;
* Basics of R Cheatsheet: [[File:Basic_R_CS.pdf|thumb|Vectors, Matrices, Lists, Data Frames, Functions and more in base R]] &lt;br /&gt;
* R Markdown Cheatsheet: &lt;br /&gt;
&lt;br /&gt;
== Reading data in R ==&lt;br /&gt;
&#039;&#039;&#039;Importing Data Cheatsheet :&#039;&#039;&#039;&lt;br /&gt;
* &lt;br /&gt;
[[File:Data_Import_CS.pdf|thumb|The Data Import cheat sheet reminds you how to read in flat files with http://readr.tidyverse.org/, work with the results as tibbles, and reshape messy data with tidyr. Use tidyr to reshape your tables into tidy data, the data format that works the most seamlessly with R and the tidyverse]] &lt;br /&gt;
*Reading in .csv files&lt;br /&gt;
* Reading other formats:&lt;br /&gt;
** converting .dta to .csv&lt;br /&gt;
** &lt;br /&gt;
&lt;br /&gt;
Exporting or writing your output file back as a table (.csv)&lt;br /&gt;
&lt;br /&gt;
== Data Transformation ==&lt;br /&gt;
Packages used: tydyr, dplyr&lt;br /&gt;
&lt;br /&gt;
* Date Transformation with dplyr Cheatsheet: [[File:Data_Transformation_CS.pdf|thumb|dplyr provides a grammar for manipulating tables in R. This cheat sheet will guide you through the grammar, reminding you how to select, filter, arrange, mutate, summarise, group, and join data frames and tibbles.]]&lt;br /&gt;
*Data Manipulation with data table Cheatsheet: [[File:Data_Table_CS.pdf|thumb|Data manipulation with data.table.]] &lt;br /&gt;
*Reading your data &lt;br /&gt;
* Adding columns or changing columns&lt;br /&gt;
* Deleting/subsetting&lt;br /&gt;
* Performing simple algebra or Tabular data (excel like analysis)&lt;br /&gt;
&lt;br /&gt;
== Data visualization ==&lt;br /&gt;
Packages used: ggplot2&lt;br /&gt;
* ggplot2 Cheatsheet: [[File:Ggplot2_CS.pdf|thumb|Datavisualization with ggplot2]]&lt;br /&gt;
* Scatter Plot&lt;br /&gt;
* Frequency plots&lt;br /&gt;
* Boxplots&lt;br /&gt;
* &lt;br /&gt;
&lt;br /&gt;
== Data analysis ==&lt;br /&gt;
Packages used:&lt;br /&gt;
&lt;br /&gt;
* Descriptive statistics&lt;br /&gt;
** Summarizing data (mean, median, sd etc.)&lt;br /&gt;
** box plots&lt;br /&gt;
* Statistical tests&lt;br /&gt;
** linear regression&lt;br /&gt;
** t-tests, ANOVA&lt;br /&gt;
** Summarizing regression results&lt;br /&gt;
&lt;br /&gt;
* &lt;br /&gt;
&lt;br /&gt;
== Organizing your workspace and files ==&lt;br /&gt;
* To minimize revision of the code within the team, while working on your project, it would be useful to save your files on the coursedrive&lt;br /&gt;
* Have a folder with your project name on the course drive&lt;br /&gt;
* Let the instruction for reading your .csv file be like the following&lt;br /&gt;
* &lt;br /&gt;
*&lt;/div&gt;</summary>
		<author><name>VikasMenghwani</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Course:Cons452/UsingR&amp;diff=570312</id>
		<title>Course:Cons452/UsingR</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Course:Cons452/UsingR&amp;diff=570312"/>
		<updated>2019-11-08T00:37:46Z</updated>

		<summary type="html">&lt;p&gt;VikasMenghwani: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What is R ==&lt;br /&gt;
R is a programming language and a open source software environment for statistical computing, and is widely used for [https://en.wikipedia.org/wiki/Data_analysis data analysis]. R allows an extraordinary range of statistical calculations. It is a free program, mainly written by voluntary contributions from statisticians around the world. R has its home page at https://www.r-project.org/. &lt;br /&gt;
&lt;br /&gt;
For this course, to utilize R for various statistical analysis, we will utilize [https://en.wikipedia.org/wiki/RStudio R Studio], which is an [https://en.wikipedia.org/wiki/Integrated_development_environment Integrated Development Environment] (IDE). The picture below depicts the main difference between the two. &lt;br /&gt;
[[File:R_vs_R_studio.png|thumb|R studio relies on the R programming language and uses it to write statistical programs. R studio can then be used to perform statistical analysis. R is the engine, while R studio is like the dashboard.]] &lt;br /&gt;
&lt;br /&gt;
== Installing R on Mac or Windows ==&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;Loading R on your computer&#039;&#039;&#039; ===&lt;br /&gt;
A list of sites where R can be downloaded is maintained at &amp;lt;nowiki&amp;gt;https://cran.r-&amp;lt;/nowiki&amp;gt; project.org/mirrors.html —choose the site geographically nearest you. From the top box, click on the link that matches your type of computer.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Macs&#039;&#039;&#039; -- To load R, choose the MacOS link from the CRAN website above. From the resulting page (called “R for Mac OS X”) choose the .pkg file that matches your version of the operating system – usually this is the first one. Download that package, click on the .pkg file once it has downloaded fully, and follow instructions on the screen.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Windows&#039;&#039;&#039; -- After choosing Windows from the CRAN page, click on the first link for labeled “base”. Then click on the large top link “Download R 3.X.X for Windows”. Run the .exe file that downloads.&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;Loading RStudio onto your computer&#039;&#039;&#039; ===&lt;br /&gt;
Go to &amp;lt;nowiki&amp;gt;https://www.rstudio.com/products/rstudio/download/&amp;lt;/nowiki&amp;gt; and choose the “DOWNLOAD” button under the left column for RStudio Desktop FREE. Then from the list of Installers, choose one that matches your operating system.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Mac&#039;&#039;&#039; – Open the .dmg file that downloads, and in the resulting window slide the RStudio icon into the Applications icon.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Windows&#039;&#039;&#039; – Run the .exe installer file that downloads.&lt;br /&gt;
* [[File:Markdown_CS.pdf|thumb|R Markdown is an authoring format that makes it easy to write reusable reports with R. You combine your R code with narration written in markdown (an easy-to-write plain text format) and then export the results as an html, pdf, or Word file. You can even use R Markdown to build interactive documents and slideshows]] &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Navigating the Interface:&#039;&#039;&#039; &lt;br /&gt;
*[ Create PDF &amp;quot;getting familiar&amp;quot; with interface ; ie: command line, saving your code, defining variables] &lt;br /&gt;
&#039;&#039;&#039;Download a Package:&#039;&#039;&#039;&lt;br /&gt;
*To performing a particular task, there are numerous approaches within R - they are linked to various packages. Follow these instructions to download a package of choice.  [insert PDF &amp;quot;How to Download a Package] &lt;br /&gt;
&#039;&#039;&#039;Getting Familiar Cheatsheets:&#039;&#039;&#039; &lt;br /&gt;
* Basics of R Cheatsheet: [[File:Basic_R_CS.pdf|thumb|Vectors, Matrices, Lists, Data Frames, Functions and more in base R]] &lt;br /&gt;
* R Markdown Cheatsheet: &lt;br /&gt;
&lt;br /&gt;
== Reading data in R ==&lt;br /&gt;
&#039;&#039;&#039;Importing Data Cheatsheet :&#039;&#039;&#039;&lt;br /&gt;
* &lt;br /&gt;
[[File:Data_Import_CS.pdf|thumb|The Data Import cheat sheet reminds you how to read in flat files with http://readr.tidyverse.org/, work with the results as tibbles, and reshape messy data with tidyr. Use tidyr to reshape your tables into tidy data, the data format that works the most seamlessly with R and the tidyverse]] &lt;br /&gt;
*Reading in .csv files&lt;br /&gt;
* Reading other formats:&lt;br /&gt;
** converting .dta to .csv&lt;br /&gt;
** &lt;br /&gt;
&lt;br /&gt;
Exporting or writing your output file back as a table (.csv)&lt;br /&gt;
&lt;br /&gt;
== Data Transformation ==&lt;br /&gt;
Packages used: tydyr, dplyr&lt;br /&gt;
&lt;br /&gt;
* Date Transformation with dplyr Cheatsheet: [[File:Data_Transformation_CS.pdf|thumb|dplyr provides a grammar for manipulating tables in R. This cheat sheet will guide you through the grammar, reminding you how to select, filter, arrange, mutate, summarise, group, and join data frames and tibbles.]]&lt;br /&gt;
*Data Manipulation with data table Cheatsheet: [[File:Data_Table_CS.pdf|thumb|Data manipulation with data.table.]] &lt;br /&gt;
*Reading your data &lt;br /&gt;
* Adding columns or changing columns&lt;br /&gt;
* Deleting/subsetting&lt;br /&gt;
* Performing simple algebra or Tabular data (excel like analysis)&lt;br /&gt;
&lt;br /&gt;
== Data visualization ==&lt;br /&gt;
Packages used: ggplot2&lt;br /&gt;
* ggplot2 Cheatsheet: [[File:Ggplot2_CS.pdf|thumb|Datavisualization with ggplot2]]&lt;br /&gt;
* Scatter Plot&lt;br /&gt;
* Frequency plots&lt;br /&gt;
* Boxplots&lt;br /&gt;
* &lt;br /&gt;
&lt;br /&gt;
== Data analysis ==&lt;br /&gt;
Packages used:&lt;br /&gt;
&lt;br /&gt;
* Descriptive statistics&lt;br /&gt;
** Summarizing data (mean, median, sd etc.)&lt;br /&gt;
** box plots&lt;br /&gt;
* Statistical tests&lt;br /&gt;
** linear regression&lt;br /&gt;
** t-tests, ANOVA&lt;br /&gt;
** Summarizing regression results&lt;br /&gt;
&lt;br /&gt;
* &lt;br /&gt;
&lt;br /&gt;
== Organizing your workspace and files ==&lt;br /&gt;
* To minimize revision of the code within the team, while working on your project, it would be useful to save your files on the coursedrive&lt;br /&gt;
* Have a folder with your project name on the course drive&lt;br /&gt;
* Let the instruction for reading your .csv file be like the following&lt;br /&gt;
* &lt;br /&gt;
*&lt;/div&gt;</summary>
		<author><name>VikasMenghwani</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Course:Cons452/UsingR&amp;diff=570310</id>
		<title>Course:Cons452/UsingR</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Course:Cons452/UsingR&amp;diff=570310"/>
		<updated>2019-11-08T00:35:22Z</updated>

		<summary type="html">&lt;p&gt;VikasMenghwani: /* Getting familiar */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What is R ==&lt;br /&gt;
R is a programming language and a open source software environment for statistical computing, and is widely used for [https://en.wikipedia.org/wiki/Data_analysis data analysis]. R allows an extraordinary range of statistical calculations. It is a free program, mainly written by voluntary contributions from statisticians around the world. R has its home page at https://www.r-project.org/. &lt;br /&gt;
&lt;br /&gt;
For this course, to utilize R for various statistical analysis, we will utilize [https://en.wikipedia.org/wiki/RStudio R Studio], which is an [https://en.wikipedia.org/wiki/Integrated_development_environment Integrated Development Environment] (IDE). The picture below depicts the main difference between the two. &lt;br /&gt;
&lt;br /&gt;
 [[File:R_vs_R_studio.png|thumb|R studio relies on the R programming language and uses it to write statistical programs. R studio can then be used to perform statistical analysis. R is the engine, while R studio is like the dashboard.]] &lt;br /&gt;
&lt;br /&gt;
== Installing R on Mac or Windows ==&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;Loading R on your computer&#039;&#039;&#039; ===&lt;br /&gt;
A list of sites where R can be downloaded is maintained at &amp;lt;nowiki&amp;gt;https://cran.r-&amp;lt;/nowiki&amp;gt; project.org/mirrors.html —choose the site geographically nearest you. From the top box, click on the link that matches your type of computer.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Macs&#039;&#039;&#039; -- To load R, choose the MacOS link from the CRAN website above. From the resulting page (called “R for Mac OS X”) choose the .pkg file that matches your version of the operating system – usually this is the first one. Download that package, click on the .pkg file once it has downloaded fully, and follow instructions on the screen.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Windows&#039;&#039;&#039; -- After choosing Windows from the CRAN page, click on the first link for labeled “base”. Then click on the large top link “Download R 3.X.X for Windows”. Run the .exe file that downloads.&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;Loading RStudio onto your computer&#039;&#039;&#039; ===&lt;br /&gt;
Go to &amp;lt;nowiki&amp;gt;https://www.rstudio.com/products/rstudio/download/&amp;lt;/nowiki&amp;gt; and choose the “DOWNLOAD” button under the left column for RStudio Desktop FREE. Then from the list of Installers, choose one that matches your operating system.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Mac&#039;&#039;&#039; – Open the .dmg file that downloads, and in the resulting window slide the RStudio icon into the Applications icon.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Windows&#039;&#039;&#039; – Run the .exe installer file that downloads.&lt;br /&gt;
* [[File:Markdown_CS.pdf|thumb|R Markdown is an authoring format that makes it easy to write reusable reports with R. You combine your R code with narration written in markdown (an easy-to-write plain text format) and then export the results as an html, pdf, or Word file. You can even use R Markdown to build interactive documents and slideshows]] &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Navigating the Interface:&#039;&#039;&#039; &lt;br /&gt;
*[ Create PDF &amp;quot;getting familiar&amp;quot; with interface ; ie: command line, saving your code, defining variables] &lt;br /&gt;
&#039;&#039;&#039;Download a Package:&#039;&#039;&#039;&lt;br /&gt;
*To performing a particular task, there are numerous approaches within R - they are linked to various packages. Follow these instructions to download a package of choice.  [insert PDF &amp;quot;How to Download a Package] &lt;br /&gt;
&#039;&#039;&#039;Getting Familiar Cheatsheets:&#039;&#039;&#039; &lt;br /&gt;
* Basics of R Cheatsheet: [[File:Basic_R_CS.pdf|thumb|Vectors, Matrices, Lists, Data Frames, Functions and more in base R]] &lt;br /&gt;
* R Markdown Cheatsheet: &lt;br /&gt;
&lt;br /&gt;
== Reading data in R ==&lt;br /&gt;
&#039;&#039;&#039;Importing Data Cheatsheet :&#039;&#039;&#039;&lt;br /&gt;
* &lt;br /&gt;
[[File:Data_Import_CS.pdf|thumb|The Data Import cheat sheet reminds you how to read in flat files with http://readr.tidyverse.org/, work with the results as tibbles, and reshape messy data with tidyr. Use tidyr to reshape your tables into tidy data, the data format that works the most seamlessly with R and the tidyverse]] &lt;br /&gt;
*Reading in .csv files&lt;br /&gt;
* Reading other formats:&lt;br /&gt;
** converting .dta to .csv&lt;br /&gt;
** &lt;br /&gt;
&lt;br /&gt;
Exporting or writing your output file back as a table (.csv)&lt;br /&gt;
&lt;br /&gt;
== Data Transformation ==&lt;br /&gt;
Packages used: tydyr, dplyr&lt;br /&gt;
&lt;br /&gt;
* Date Transformation with dplyr Cheatsheet: [[File:Data_Transformation_CS.pdf|thumb|dplyr provides a grammar for manipulating tables in R. This cheat sheet will guide you through the grammar, reminding you how to select, filter, arrange, mutate, summarise, group, and join data frames and tibbles.]]&lt;br /&gt;
*Data Manipulation with data table Cheatsheet: [[File:Data_Table_CS.pdf|thumb|Data manipulation with data.table.]] &lt;br /&gt;
*Reading your data &lt;br /&gt;
* Adding columns or changing columns&lt;br /&gt;
* Deleting/subsetting&lt;br /&gt;
* Performing simple algebra or Tabular data (excel like analysis)&lt;br /&gt;
&lt;br /&gt;
== Data visualization ==&lt;br /&gt;
Packages used: ggplot2&lt;br /&gt;
* ggplot2 Cheatsheet: [[File:Ggplot2_CS.pdf|thumb|Datavisualization with ggplot2]]&lt;br /&gt;
* Scatter Plot&lt;br /&gt;
* Frequency plots&lt;br /&gt;
* Boxplots&lt;br /&gt;
* &lt;br /&gt;
&lt;br /&gt;
== Data analysis ==&lt;br /&gt;
Packages used:&lt;br /&gt;
&lt;br /&gt;
* Descriptive statistics&lt;br /&gt;
** Summarizing data (mean, median, sd etc.)&lt;br /&gt;
** box plots&lt;br /&gt;
* Statistical tests&lt;br /&gt;
** linear regression&lt;br /&gt;
** t-tests, ANOVA&lt;br /&gt;
** Summarizing regression results&lt;br /&gt;
&lt;br /&gt;
* &lt;br /&gt;
&lt;br /&gt;
== Organizing your workspace and files ==&lt;br /&gt;
* To minimize revision of the code within the team, while working on your project, it would be useful to save your files on the coursedrive&lt;br /&gt;
* Have a folder with your project name on the course drive&lt;br /&gt;
* Let the instruction for reading your .csv file be like the following&lt;br /&gt;
* &lt;br /&gt;
*&lt;/div&gt;</summary>
		<author><name>VikasMenghwani</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=File:R_vs_R_studio.png&amp;diff=570309</id>
		<title>File:R vs R studio.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=File:R_vs_R_studio.png&amp;diff=570309"/>
		<updated>2019-11-08T00:30:15Z</updated>

		<summary type="html">&lt;p&gt;VikasMenghwani: User created page with UploadWizard&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=={{int:filedesc}}==&lt;br /&gt;
{{Information&lt;br /&gt;
|description={{en|1=R studio relies on the R programming language and uses it to write statistical programs. R studio can then be used to perform statistical analysis. R is the engine, while R studio is like the dashboard.}}&lt;br /&gt;
|date=2019-11-07&lt;br /&gt;
|source=https://moderndive.com/1-getting-started.html&lt;br /&gt;
|author=Chester Ismay and Albert Y. Kim&lt;br /&gt;
|permission=&lt;br /&gt;
|other versions=&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=={{int:license-header}}==&lt;br /&gt;
{{cr-cdn-exp}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Help]]&lt;/div&gt;</summary>
		<author><name>VikasMenghwani</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Course:Cons452/UsingR&amp;diff=570299</id>
		<title>Course:Cons452/UsingR</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Course:Cons452/UsingR&amp;diff=570299"/>
		<updated>2019-11-07T23:59:59Z</updated>

		<summary type="html">&lt;p&gt;VikasMenghwani: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Getting familiar ==&lt;br /&gt;
R is a programming language and a open source software environment for statistical computing, and is widely used for [https://en.wikipedia.org/wiki/Data_analysis data analysis]. R is a free program, mainly written by voluntary contributions from statisticians around the world. R has its home page at https://www.r-project.org/. &lt;br /&gt;
&lt;br /&gt;
For this course, to utilize R for various statistical analysis, we will utilize [https://en.wikipedia.org/wiki/RStudio R Studio], which is an [https://en.wikipedia.org/wiki/Integrated_development_environment Integrated Development Environment] (IDE). The picture below depicts the main difference between the two. &lt;br /&gt;
&lt;br /&gt;
that allows an extraordinary range of statistical calculations. It is a free program, mainly written by voluntary contributions from statisticians around the world. R can make graphics and do statistical calculations. It is also a computing language&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;What is R Studio?&#039;&#039;&#039;   &lt;br /&gt;
&lt;br /&gt;
RStudio is a separate program, also free, that provides a more elegant front end for R. RStudio allows you to easily organize separate windows for R commands, graphic, help, etc. in one place.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Navigating the Interface:&#039;&#039;&#039; &lt;br /&gt;
*[ Create PDF &amp;quot;getting familiar&amp;quot; with interface ; ie: command line, saving your code, defining variables] &lt;br /&gt;
&#039;&#039;&#039;Download a Package:&#039;&#039;&#039;&lt;br /&gt;
*To performing a particular task, there are numerous approaches within R - they are linked to various packages. Follow these instructions to download a package of choice.  [insert PDF &amp;quot;How to Download a Package] &lt;br /&gt;
&#039;&#039;&#039;Getting Familiar Cheatsheets:&#039;&#039;&#039; &lt;br /&gt;
* Basics of R Cheatsheet: [[File:Basic_R_CS.pdf|thumb|Vectors, Matrices, Lists, Data Frames, Functions and more in base R]] &lt;br /&gt;
* R Markdown Cheatsheet: &lt;br /&gt;
&lt;br /&gt;
== Installing R on Mac or Windows ==&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;Loading R on your computer&#039;&#039;&#039; ===&lt;br /&gt;
A list of sites where R can be downloaded is maintained at &amp;lt;nowiki&amp;gt;https://cran.r-&amp;lt;/nowiki&amp;gt; project.org/mirrors.html —choose the site geographically nearest you. From the top box, click on the link that matches your type of computer.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Macs&#039;&#039;&#039; -- To load R, choose the MacOS link from the CRAN website above. From the resulting page (called “R for Mac OS X”) choose the .pkg file that matches your version of the operating system – usually this is the first one. Download that package, click on the .pkg file once it has downloaded fully, and follow instructions on the screen.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Windows&#039;&#039;&#039; -- After choosing Windows from the CRAN page, click on the first link for labeled “base”. Then click on the large top link “Download R 3.X.X for Windows”. Run the .exe file that downloads.&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;Loading RStudio onto your computer&#039;&#039;&#039; ===&lt;br /&gt;
Go to &amp;lt;nowiki&amp;gt;https://www.rstudio.com/products/rstudio/download/&amp;lt;/nowiki&amp;gt; and choose the “DOWNLOAD” button under the left column for RStudio Desktop FREE. Then from the list of Installers, choose one that matches your operating system.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Mac&#039;&#039;&#039; – Open the .dmg file that downloads, and in the resulting window slide the RStudio icon into the Applications icon.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Windows&#039;&#039;&#039; – Run the .exe installer file that downloads.&lt;br /&gt;
* [[File:Markdown_CS.pdf|thumb|R Markdown is an authoring format that makes it easy to write reusable reports with R. You combine your R code with narration written in markdown (an easy-to-write plain text format) and then export the results as an html, pdf, or Word file. You can even use R Markdown to build interactive documents and slideshows]] &lt;br /&gt;
&lt;br /&gt;
== Reading data in R ==&lt;br /&gt;
&#039;&#039;&#039;Importing Data Cheatsheet :&#039;&#039;&#039;&lt;br /&gt;
* &lt;br /&gt;
[[File:Data_Import_CS.pdf|thumb|The Data Import cheat sheet reminds you how to read in flat files with http://readr.tidyverse.org/, work with the results as tibbles, and reshape messy data with tidyr. Use tidyr to reshape your tables into tidy data, the data format that works the most seamlessly with R and the tidyverse]] &lt;br /&gt;
*Reading in .csv files&lt;br /&gt;
* Reading other formats:&lt;br /&gt;
** converting .dta to .csv&lt;br /&gt;
** &lt;br /&gt;
&lt;br /&gt;
Exporting or writing your output file back as a table (.csv)&lt;br /&gt;
&lt;br /&gt;
== Data Transformation ==&lt;br /&gt;
Packages used: tydyr, dplyr&lt;br /&gt;
&lt;br /&gt;
* Date Transformation with dplyr Cheatsheet: [[File:Data_Transformation_CS.pdf|thumb|dplyr provides a grammar for manipulating tables in R. This cheat sheet will guide you through the grammar, reminding you how to select, filter, arrange, mutate, summarise, group, and join data frames and tibbles.]]&lt;br /&gt;
*Data Manipulation with data table Cheatsheet: [[File:Data_Table_CS.pdf|thumb|Data manipulation with data.table.]] &lt;br /&gt;
*Reading your data &lt;br /&gt;
* Adding columns or changing columns&lt;br /&gt;
* Deleting/subsetting&lt;br /&gt;
* Performing simple algebra or Tabular data (excel like analysis)&lt;br /&gt;
&lt;br /&gt;
== Data visualization ==&lt;br /&gt;
Packages used: ggplot2&lt;br /&gt;
* ggplot2 Cheatsheet: [[File:Ggplot2_CS.pdf|thumb|Datavisualization with ggplot2]]&lt;br /&gt;
* Scatter Plot&lt;br /&gt;
* Frequency plots&lt;br /&gt;
* Boxplots&lt;br /&gt;
* &lt;br /&gt;
&lt;br /&gt;
== Data analysis ==&lt;br /&gt;
Packages used:&lt;br /&gt;
&lt;br /&gt;
* Descriptive statistics&lt;br /&gt;
** Summarizing data (mean, median, sd etc.)&lt;br /&gt;
** box plots&lt;br /&gt;
* Statistical tests&lt;br /&gt;
** linear regression&lt;br /&gt;
** t-tests, ANOVA&lt;br /&gt;
** Summarizing regression results&lt;br /&gt;
&lt;br /&gt;
* &lt;br /&gt;
&lt;br /&gt;
== Organizing your workspace and files ==&lt;br /&gt;
* To minimize revision of the code within the team, while working on your project, it would be useful to save your files on the coursedrive&lt;br /&gt;
* Have a folder with your project name on the course drive&lt;br /&gt;
* Let the instruction for reading your .csv file be like the following&lt;br /&gt;
* &lt;br /&gt;
*&lt;/div&gt;</summary>
		<author><name>VikasMenghwani</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Course:Cons452&amp;diff=570285</id>
		<title>Course:Cons452</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Course:Cons452&amp;diff=570285"/>
		<updated>2019-11-07T23:35:54Z</updated>

		<summary type="html">&lt;p&gt;VikasMenghwani: /* Data analysis */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Navigating the transition to a sustainable world is humanity’s current challenge. This will require fostering resilient interacting systems of people and ecosystems (resilient social-ecological systems). In this course, students will utilize a suite of tools and ideas useful in managing ecosystem services in a sustainable way. Each week we focus on a different theme related to sustainability and resilience, and work as small teams to apply these ideas to a set of diverse landscapes throughout the world. &lt;br /&gt;
&lt;br /&gt;
Many of the lab exercises and group projects involve “hands-on” spatial analysis of land cover change using GIS and remote sensing. We also assess socio-economic data to examine issues such as energy poverty. These quantitative approaches help us move beyond arm-waving about sustainability to making some tough choices, using the best available scientific information.   &lt;br /&gt;
&lt;br /&gt;
== SDG resources ==&lt;br /&gt;
* [https://www.globalgoals.org/ Sustainable Development Goals]&lt;br /&gt;
* [https://sdg-tracker.org/ Tracking SDGs]&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Sustainable_Development_Goals SDGs on Wikipedia]&lt;br /&gt;
&lt;br /&gt;
== Data collection ==&lt;br /&gt;
&lt;br /&gt;
=== Understanding data ===&lt;br /&gt;
The group projects for CONS452 may rely on a variety of data types, depending on the problem context. Data may vary in their content, collection methods, scale, and formats. &lt;br /&gt;
* Primary vs. secondary data&lt;br /&gt;
* Qualitative vs. quantitative data&lt;br /&gt;
* Observational vs. experimental data&lt;br /&gt;
* Cross-sectional vs. longitudinal data&lt;br /&gt;
* Socio-economic vs. ecological data&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Type of data&lt;br /&gt;
!Names of data sources&lt;br /&gt;
|-&lt;br /&gt;
|Socio-economic data&lt;br /&gt;
|[https://dhsprogram.com/data/Model-Datasets.cfm DHS] ([[Course:Cons452/DHS|Explainer]] , [[Sample data]])&lt;br /&gt;
[https://usa.ipums.org/usa/index.shtml IPUMS] ([[Course:Cons452/IPUMS|Explainer]], [[Sample Data]])&lt;br /&gt;
&lt;br /&gt;
[http://surveys.worldbank.org/lsms LSMS] ([[Course:Cons452/LSMS|Explainer]] , [[Sample data]]) &lt;br /&gt;
&lt;br /&gt;
[https://sedac.ciesin.columbia.edu/data/collection/gpw-v4 Gridded Pop World] ([[Course:Cons452/GriddedPopWorld|Explainer]] , Sample data)&lt;br /&gt;
&lt;br /&gt;
[https://mics.unicef.org/ MICS] ([[Course:Cons452/MICS|Explainer]] , Sample data)&lt;br /&gt;
|-&lt;br /&gt;
|Climate data&lt;br /&gt;
|[https://www.worldclim.org WorldClim] ([[Course:Cons452/WorldClim|Explainer]], Sample data)&lt;br /&gt;
|-&lt;br /&gt;
|Land use data&lt;br /&gt;
|[https://earthenginepartners.appspot.com/science-2013-global-forest/download_v1.2.html Hansen Global Forest Change ] ([[Course:Cons452/Hansen|Explainer]] , [[Sample data]])&lt;br /&gt;
[https://www.protectedplanet.net/ World Database on Protected Areas] ([[Course:Cons452/WDPA|Explainer]] , Sample data)&lt;br /&gt;
&lt;br /&gt;
AgChange (Explainer , Sample data)&lt;br /&gt;
&lt;br /&gt;
[http://www.earthstat.org/ EarthStat] ([[Course:Cons452/EarthStat|Explainer]] , Sample data)&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;&#039;&#039;Data search engines&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|[https://earthengine.google.com/ Google Earth Engine]&lt;br /&gt;
&lt;br /&gt;
[https://energydata.info/ Energydata.info]&lt;br /&gt;
&lt;br /&gt;
[https://freegisdata.rtwilson.com/ Free GIS Data]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Data analysis ==&lt;br /&gt;
For CONS452, we are encouraging the use of R for all data analysis (at least non GIS). &lt;br /&gt;
&lt;br /&gt;
RStudio is pre-installed on all the desktop systems in the lab. For your personal computers, please download it [https://rstudio.com/products/rstudio/download/ here].&lt;br /&gt;
&lt;br /&gt;
R can perform all functions available in MS Excel. &lt;br /&gt;
&lt;br /&gt;
Detailed help/guidelines on R for this course are available on the &#039;&#039;&#039;&amp;lt;big&amp;gt;[[Course:Cons452/UsingR|&amp;lt;u&amp;gt;R Wiki page here&amp;lt;/u&amp;gt;]]&amp;lt;/big&amp;gt;&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
== All Subpages ==&lt;br /&gt;
&amp;lt;dpl&amp;gt; &lt;br /&gt;
titlematch=Cons452/% &lt;br /&gt;
namespace=Course &lt;br /&gt;
shownamespace=false&lt;br /&gt;
&amp;lt;/dpl&amp;gt;&lt;br /&gt;
[[Category:Assignments]]&lt;br /&gt;
[[Category:Labs]]&lt;/div&gt;</summary>
		<author><name>VikasMenghwani</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Course:Cons452&amp;diff=570283</id>
		<title>Course:Cons452</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Course:Cons452&amp;diff=570283"/>
		<updated>2019-11-07T23:33:53Z</updated>

		<summary type="html">&lt;p&gt;VikasMenghwani: /* Data analysis */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Navigating the transition to a sustainable world is humanity’s current challenge. This will require fostering resilient interacting systems of people and ecosystems (resilient social-ecological systems). In this course, students will utilize a suite of tools and ideas useful in managing ecosystem services in a sustainable way. Each week we focus on a different theme related to sustainability and resilience, and work as small teams to apply these ideas to a set of diverse landscapes throughout the world. &lt;br /&gt;
&lt;br /&gt;
Many of the lab exercises and group projects involve “hands-on” spatial analysis of land cover change using GIS and remote sensing. We also assess socio-economic data to examine issues such as energy poverty. These quantitative approaches help us move beyond arm-waving about sustainability to making some tough choices, using the best available scientific information.   &lt;br /&gt;
&lt;br /&gt;
== SDG resources ==&lt;br /&gt;
* [https://www.globalgoals.org/ Sustainable Development Goals]&lt;br /&gt;
* [https://sdg-tracker.org/ Tracking SDGs]&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Sustainable_Development_Goals SDGs on Wikipedia]&lt;br /&gt;
&lt;br /&gt;
== Data collection ==&lt;br /&gt;
&lt;br /&gt;
=== Understanding data ===&lt;br /&gt;
The group projects for CONS452 may rely on a variety of data types, depending on the problem context. Data may vary in their content, collection methods, scale, and formats. &lt;br /&gt;
* Primary vs. secondary data&lt;br /&gt;
* Qualitative vs. quantitative data&lt;br /&gt;
* Observational vs. experimental data&lt;br /&gt;
* Cross-sectional vs. longitudinal data&lt;br /&gt;
* Socio-economic vs. ecological data&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Type of data&lt;br /&gt;
!Names of data sources&lt;br /&gt;
|-&lt;br /&gt;
|Socio-economic data&lt;br /&gt;
|[https://dhsprogram.com/data/Model-Datasets.cfm DHS] ([[Course:Cons452/DHS|Explainer]] , [[Sample data]])&lt;br /&gt;
[https://usa.ipums.org/usa/index.shtml IPUMS] ([[Course:Cons452/IPUMS|Explainer]], [[Sample Data]])&lt;br /&gt;
&lt;br /&gt;
[http://surveys.worldbank.org/lsms LSMS] ([[Course:Cons452/LSMS|Explainer]] , [[Sample data]]) &lt;br /&gt;
&lt;br /&gt;
[https://sedac.ciesin.columbia.edu/data/collection/gpw-v4 Gridded Pop World] ([[Course:Cons452/GriddedPopWorld|Explainer]] , Sample data)&lt;br /&gt;
&lt;br /&gt;
[https://mics.unicef.org/ MICS] ([[Course:Cons452/MICS|Explainer]] , Sample data)&lt;br /&gt;
|-&lt;br /&gt;
|Climate data&lt;br /&gt;
|[https://www.worldclim.org WorldClim] ([[Course:Cons452/WorldClim|Explainer]], Sample data)&lt;br /&gt;
|-&lt;br /&gt;
|Land use data&lt;br /&gt;
|[https://earthenginepartners.appspot.com/science-2013-global-forest/download_v1.2.html Hansen Global Forest Change ] ([[Course:Cons452/Hansen|Explainer]] , [[Sample data]])&lt;br /&gt;
[https://www.protectedplanet.net/ World Database on Protected Areas] ([[Course:Cons452/WDPA|Explainer]] , Sample data)&lt;br /&gt;
&lt;br /&gt;
AgChange (Explainer , Sample data)&lt;br /&gt;
&lt;br /&gt;
[http://www.earthstat.org/ EarthStat] ([[Course:Cons452/EarthStat|Explainer]] , Sample data)&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;&#039;&#039;Data search engines&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|[https://earthengine.google.com/ Google Earth Engine]&lt;br /&gt;
&lt;br /&gt;
[https://energydata.info/ Energydata.info]&lt;br /&gt;
&lt;br /&gt;
[https://freegisdata.rtwilson.com/ Free GIS Data]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Data analysis ==&lt;br /&gt;
For CONS452, we are encouraging the use of R for all data analysis (at least non GIS). &lt;br /&gt;
&lt;br /&gt;
RStudio is pre-installed on all the desktop systems in the lab. For your personal computers, please download it [https://rstudio.com/products/rstudio/download/ here].&lt;br /&gt;
&lt;br /&gt;
R can perform all functions available in MS Excel. &lt;br /&gt;
&lt;br /&gt;
Detailed help/guidelines on R for this course are available [[Course:Cons452/UsingR|&#039;&#039;&#039;&amp;lt;big&amp;gt;here&amp;lt;/big&amp;gt;&#039;&#039;&#039;]].&lt;br /&gt;
&lt;br /&gt;
== All Subpages ==&lt;br /&gt;
&amp;lt;dpl&amp;gt; &lt;br /&gt;
titlematch=Cons452/% &lt;br /&gt;
namespace=Course &lt;br /&gt;
shownamespace=false&lt;br /&gt;
&amp;lt;/dpl&amp;gt;&lt;br /&gt;
[[Category:Assignments]]&lt;br /&gt;
[[Category:Labs]]&lt;/div&gt;</summary>
		<author><name>VikasMenghwani</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Course:CONS452&amp;diff=570281</id>
		<title>Course:CONS452</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Course:CONS452&amp;diff=570281"/>
		<updated>2019-11-07T23:32:31Z</updated>

		<summary type="html">&lt;p&gt;VikasMenghwani: Replaced content with &amp;quot;{{Delete}}&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Delete}}&lt;/div&gt;</summary>
		<author><name>VikasMenghwani</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Course:Cons452&amp;diff=569712</id>
		<title>Course:Cons452</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Course:Cons452&amp;diff=569712"/>
		<updated>2019-11-04T03:00:17Z</updated>

		<summary type="html">&lt;p&gt;VikasMenghwani: /* Data analysis */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Navigating the transition to a sustainable world is humanity’s current challenge. This will require fostering resilient interacting systems of people and ecosystems (resilient social-ecological systems). In this course, students will utilize a suite of tools and ideas useful in managing ecosystem services in a sustainable way. Each week we focus on a different theme related to sustainability and resilience, and work as small teams to apply these ideas to a set of diverse landscapes throughout the world. &lt;br /&gt;
&lt;br /&gt;
Many of the lab exercises and group projects involve “hands-on” spatial analysis of land cover change using GIS and remote sensing. We also assess socio-economic data to examine issues such as energy poverty. These quantitative approaches help us move beyond arm-waving about sustainability to making some tough choices, using the best available scientific information.   &lt;br /&gt;
&lt;br /&gt;
== SDG resources ==&lt;br /&gt;
* [https://www.globalgoals.org/ Sustainable Development Goals]&lt;br /&gt;
* [https://sdg-tracker.org/ Tracking SDGs]&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Sustainable_Development_Goals SDGs on Wikipedia]&lt;br /&gt;
&lt;br /&gt;
== Data collection ==&lt;br /&gt;
&lt;br /&gt;
=== Understanding data ===&lt;br /&gt;
The group projects for CONS452 may rely on a variety of data types, depending on the problem context. Data may vary in their content, collection methods, scale, and formats. &lt;br /&gt;
* Primary vs. secondary data&lt;br /&gt;
* Qualitative vs. quantitative data&lt;br /&gt;
* Observational vs. experimental data&lt;br /&gt;
* Cross-sectional vs. longitudinal data&lt;br /&gt;
* Socio-economic vs. ecological data&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Type of data&lt;br /&gt;
!Names of data sources&lt;br /&gt;
|-&lt;br /&gt;
|Socio-economic data&lt;br /&gt;
|[https://dhsprogram.com/data/Model-Datasets.cfm DHS] ([[Course:Cons452/DHS|Explainer]] , [[Sample data]])&lt;br /&gt;
[https://usa.ipums.org/usa/index.shtml IPUMS] ([[Course:Cons452/IPUMS|Explainer]], [[Sample Data]])&lt;br /&gt;
&lt;br /&gt;
[http://surveys.worldbank.org/lsms LSMS] ([[Course:Cons452/LSMS|Explainer]] , [[Sample data]]) &lt;br /&gt;
&lt;br /&gt;
[https://sedac.ciesin.columbia.edu/data/collection/gpw-v4 Gridded Pop World] ([[Course:Cons452/GriddedPopWorld|Explainer]] , Sample data)&lt;br /&gt;
&lt;br /&gt;
[https://mics.unicef.org/ MICS] ([[Course:Cons452/MICS|Explainer]] , Sample data)&lt;br /&gt;
|-&lt;br /&gt;
|Climate data&lt;br /&gt;
|[https://www.worldclim.org WorldClim] ([[Course:Cons452/WorldClim|Explainer]], Sample data)&lt;br /&gt;
|-&lt;br /&gt;
|Land use data&lt;br /&gt;
|[https://earthenginepartners.appspot.com/science-2013-global-forest/download_v1.2.html Hansen Global Forest Change ] ([[Course:Cons452/Hansen|Explainer]] , [[Sample data]])&lt;br /&gt;
[https://www.protectedplanet.net/ World Database on Protected Areas] ([[Course:Cons452/WDPA|Explainer]] , Sample data)&lt;br /&gt;
&lt;br /&gt;
AgChange (Explainer , Sample data)&lt;br /&gt;
&lt;br /&gt;
[http://www.earthstat.org/ EarthStat] ([[Course:Cons452/EarthStat|Explainer]] , Sample data)&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;&#039;&#039;Data search engines&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|[https://earthengine.google.com/ Google Earth Engine]&lt;br /&gt;
&lt;br /&gt;
[https://energydata.info/ Energydata.info]&lt;br /&gt;
&lt;br /&gt;
[https://freegisdata.rtwilson.com/ Free GIS Data]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Data analysis ==&lt;br /&gt;
For CONS452, we are encouraging the use of R for all data analysis (at least non GIS). &lt;br /&gt;
&lt;br /&gt;
RStudio is pre-installed on all the desktop systems in the lab. For your personal computers, please download it [https://rstudio.com/products/rstudio/download/ here].&lt;br /&gt;
&lt;br /&gt;
R can perform all functions available in MS Excel. &lt;br /&gt;
&lt;br /&gt;
Detailed help/guidelines on R for this course are available [[Course:Cons452/UsingR|here]].&lt;br /&gt;
&lt;br /&gt;
== All Subpages ==&lt;br /&gt;
&amp;lt;dpl&amp;gt; &lt;br /&gt;
titlematch=Cons452/% &lt;br /&gt;
namespace=Course &lt;br /&gt;
shownamespace=false&lt;br /&gt;
&amp;lt;/dpl&amp;gt;&lt;br /&gt;
[[Category:Assignments]]&lt;br /&gt;
[[Category:Labs]]&lt;/div&gt;</summary>
		<author><name>VikasMenghwani</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Course:Cons452&amp;diff=569711</id>
		<title>Course:Cons452</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Course:Cons452&amp;diff=569711"/>
		<updated>2019-11-04T02:59:49Z</updated>

		<summary type="html">&lt;p&gt;VikasMenghwani: /* SDG resources */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Navigating the transition to a sustainable world is humanity’s current challenge. This will require fostering resilient interacting systems of people and ecosystems (resilient social-ecological systems). In this course, students will utilize a suite of tools and ideas useful in managing ecosystem services in a sustainable way. Each week we focus on a different theme related to sustainability and resilience, and work as small teams to apply these ideas to a set of diverse landscapes throughout the world. &lt;br /&gt;
&lt;br /&gt;
Many of the lab exercises and group projects involve “hands-on” spatial analysis of land cover change using GIS and remote sensing. We also assess socio-economic data to examine issues such as energy poverty. These quantitative approaches help us move beyond arm-waving about sustainability to making some tough choices, using the best available scientific information.   &lt;br /&gt;
&lt;br /&gt;
== SDG resources ==&lt;br /&gt;
* [https://www.globalgoals.org/ Sustainable Development Goals]&lt;br /&gt;
* [https://sdg-tracker.org/ Tracking SDGs]&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Sustainable_Development_Goals SDGs on Wikipedia]&lt;br /&gt;
&lt;br /&gt;
== Data collection ==&lt;br /&gt;
&lt;br /&gt;
=== Understanding data ===&lt;br /&gt;
The group projects for CONS452 may rely on a variety of data types, depending on the problem context. Data may vary in their content, collection methods, scale, and formats. &lt;br /&gt;
* Primary vs. secondary data&lt;br /&gt;
* Qualitative vs. quantitative data&lt;br /&gt;
* Observational vs. experimental data&lt;br /&gt;
* Cross-sectional vs. longitudinal data&lt;br /&gt;
* Socio-economic vs. ecological data&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Type of data&lt;br /&gt;
!Names of data sources&lt;br /&gt;
|-&lt;br /&gt;
|Socio-economic data&lt;br /&gt;
|[https://dhsprogram.com/data/Model-Datasets.cfm DHS] ([[Course:Cons452/DHS|Explainer]] , [[Sample data]])&lt;br /&gt;
[https://usa.ipums.org/usa/index.shtml IPUMS] ([[Course:Cons452/IPUMS|Explainer]], [[Sample Data]])&lt;br /&gt;
&lt;br /&gt;
[http://surveys.worldbank.org/lsms LSMS] ([[Course:Cons452/LSMS|Explainer]] , [[Sample data]]) &lt;br /&gt;
&lt;br /&gt;
[https://sedac.ciesin.columbia.edu/data/collection/gpw-v4 Gridded Pop World] ([[Course:Cons452/GriddedPopWorld|Explainer]] , Sample data)&lt;br /&gt;
&lt;br /&gt;
[https://mics.unicef.org/ MICS] ([[Course:Cons452/MICS|Explainer]] , Sample data)&lt;br /&gt;
|-&lt;br /&gt;
|Climate data&lt;br /&gt;
|[https://www.worldclim.org WorldClim] ([[Course:Cons452/WorldClim|Explainer]], Sample data)&lt;br /&gt;
|-&lt;br /&gt;
|Land use data&lt;br /&gt;
|[https://earthenginepartners.appspot.com/science-2013-global-forest/download_v1.2.html Hansen Global Forest Change ] ([[Course:Cons452/Hansen|Explainer]] , [[Sample data]])&lt;br /&gt;
[https://www.protectedplanet.net/ World Database on Protected Areas] ([[Course:Cons452/WDPA|Explainer]] , Sample data)&lt;br /&gt;
&lt;br /&gt;
AgChange (Explainer , Sample data)&lt;br /&gt;
&lt;br /&gt;
[http://www.earthstat.org/ EarthStat] ([[Course:Cons452/EarthStat|Explainer]] , Sample data)&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;&#039;&#039;Data search engines&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|[https://earthengine.google.com/ Google Earth Engine]&lt;br /&gt;
&lt;br /&gt;
[https://energydata.info/ Energydata.info]&lt;br /&gt;
&lt;br /&gt;
[https://freegisdata.rtwilson.com/ Free GIS Data]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Data analysis ==&lt;br /&gt;
For CONS452, we are encouraging the use of R for all data analysis (at least non GIS). &lt;br /&gt;
&lt;br /&gt;
RStudio is pre-installed on all the desktop systems in the lab. For your personal computers, please download it [https://rstudio.com/products/rstudio/download/ here].&lt;br /&gt;
&lt;br /&gt;
R can perform all functions available in MS Excel. &lt;br /&gt;
&lt;br /&gt;
Detailed help/guidelines on R for this course are available here.&lt;br /&gt;
&lt;br /&gt;
== All Subpages ==&lt;br /&gt;
&amp;lt;dpl&amp;gt; &lt;br /&gt;
titlematch=Cons452/% &lt;br /&gt;
namespace=Course &lt;br /&gt;
shownamespace=false&lt;br /&gt;
&amp;lt;/dpl&amp;gt;&lt;br /&gt;
[[Category:Assignments]]&lt;br /&gt;
[[Category:Labs]]&lt;/div&gt;</summary>
		<author><name>VikasMenghwani</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Course:Cons452&amp;diff=569710</id>
		<title>Course:Cons452</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Course:Cons452&amp;diff=569710"/>
		<updated>2019-11-04T02:57:29Z</updated>

		<summary type="html">&lt;p&gt;VikasMenghwani: /* Data sources */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Navigating the transition to a sustainable world is humanity’s current challenge. This will require fostering resilient interacting systems of people and ecosystems (resilient social-ecological systems). In this course, students will utilize a suite of tools and ideas useful in managing ecosystem services in a sustainable way. Each week we focus on a different theme related to sustainability and resilience, and work as small teams to apply these ideas to a set of diverse landscapes throughout the world. &lt;br /&gt;
&lt;br /&gt;
Many of the lab exercises and group projects involve “hands-on” spatial analysis of land cover change using GIS and remote sensing. We also assess socio-economic data to examine issues such as energy poverty. These quantitative approaches help us move beyond arm-waving about sustainability to making some tough choices, using the best available scientific information.   &lt;br /&gt;
&lt;br /&gt;
== SDG resources ==&lt;br /&gt;
* [https://www.globalgoals.org/ Sustainable Development Goals]&lt;br /&gt;
* [https://sdg-tracker.org/ Tracking SDGs]&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Sustainable_Development_Goals SDGs on Wikipedia]&lt;br /&gt;
&lt;br /&gt;
== Data sources ==&lt;br /&gt;
&lt;br /&gt;
=== Understanding data ===&lt;br /&gt;
The group projects for CONS452 may rely on a variety of data types, depending on the problem context. Data may vary in their content, collection methods, scale, and formats. &lt;br /&gt;
* Primary vs. secondary data&lt;br /&gt;
* Qualitative vs. quantitative data&lt;br /&gt;
* Observational vs. experimental data&lt;br /&gt;
* Cross-sectional vs. longitudinal data&lt;br /&gt;
* Socio-economic vs. ecological data&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Type of data&lt;br /&gt;
!Names of data sources&lt;br /&gt;
|-&lt;br /&gt;
|Socio-economic data&lt;br /&gt;
|[https://dhsprogram.com/data/Model-Datasets.cfm DHS] ([[Course:Cons452/DHS|Explainer]] , [[Sample data]])&lt;br /&gt;
[https://usa.ipums.org/usa/index.shtml IPUMS] ([[Course:Cons452/IPUMS|Explainer]], [[Sample Data]])&lt;br /&gt;
&lt;br /&gt;
[http://surveys.worldbank.org/lsms LSMS] ([[Course:Cons452/LSMS|Explainer]] , [[Sample data]]) &lt;br /&gt;
&lt;br /&gt;
[https://sedac.ciesin.columbia.edu/data/collection/gpw-v4 Gridded Pop World] ([[Course:Cons452/GriddedPopWorld|Explainer]] , Sample data)&lt;br /&gt;
&lt;br /&gt;
[https://mics.unicef.org/ MICS] ([[Course:Cons452/MICS|Explainer]] , Sample data)&lt;br /&gt;
|-&lt;br /&gt;
|Climate data&lt;br /&gt;
|[https://www.worldclim.org WorldClim] ([[Course:Cons452/WorldClim|Explainer]], Sample data)&lt;br /&gt;
|-&lt;br /&gt;
|Land use data&lt;br /&gt;
|[https://earthenginepartners.appspot.com/science-2013-global-forest/download_v1.2.html Hansen Global Forest Change ] ([[Course:Cons452/Hansen|Explainer]] , [[Sample data]])&lt;br /&gt;
[https://www.protectedplanet.net/ World Database on Protected Areas] ([[Course:Cons452/WDPA|Explainer]] , Sample data)&lt;br /&gt;
&lt;br /&gt;
AgChange (Explainer , Sample data)&lt;br /&gt;
&lt;br /&gt;
[http://www.earthstat.org/ EarthStat] ([[Course:Cons452/EarthStat|Explainer]] , Sample data)&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;&#039;&#039;Data search engines&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|[https://earthengine.google.com/ Google Earth Engine]&lt;br /&gt;
&lt;br /&gt;
[https://energydata.info/ Energydata.info]&lt;br /&gt;
&lt;br /&gt;
[https://freegisdata.rtwilson.com/ Free GIS Data]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Statistical analysis using R ==&lt;br /&gt;
RStudio is pre-installed on all the desktop systems in the lab. For your personal computers, please download it [https://rstudio.com/products/rstudio/download/ here].&lt;br /&gt;
&lt;br /&gt;
R can perform all functions available in MS Excel. &lt;br /&gt;
&lt;br /&gt;
Detailed help/guidelines on R for this course are available here.&lt;br /&gt;
&lt;br /&gt;
*[[Course:Cons452/UsingR|Getting Started]]&lt;br /&gt;
***&lt;br /&gt;
&lt;br /&gt;
== All Subpages ==&lt;br /&gt;
&amp;lt;dpl&amp;gt; &lt;br /&gt;
titlematch=Cons452/% &lt;br /&gt;
namespace=Course &lt;br /&gt;
shownamespace=false&lt;br /&gt;
&amp;lt;/dpl&amp;gt;&lt;br /&gt;
[[Category:Assignments]]&lt;br /&gt;
[[Category:Labs]]&lt;/div&gt;</summary>
		<author><name>VikasMenghwani</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Course:Cons452&amp;diff=569707</id>
		<title>Course:Cons452</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Course:Cons452&amp;diff=569707"/>
		<updated>2019-11-04T02:23:38Z</updated>

		<summary type="html">&lt;p&gt;VikasMenghwani: /* SDG resources */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Navigating the transition to a sustainable world is humanity’s current challenge. This will require fostering resilient interacting systems of people and ecosystems (resilient social-ecological systems). In this course, students will utilize a suite of tools and ideas useful in managing ecosystem services in a sustainable way. Each week we focus on a different theme related to sustainability and resilience, and work as small teams to apply these ideas to a set of diverse landscapes throughout the world. &lt;br /&gt;
&lt;br /&gt;
Many of the lab exercises and group projects involve “hands-on” spatial analysis of land cover change using GIS and remote sensing. We also assess socio-economic data to examine issues such as energy poverty. These quantitative approaches help us move beyond arm-waving about sustainability to making some tough choices, using the best available scientific information.   &lt;br /&gt;
&lt;br /&gt;
== SDG resources ==&lt;br /&gt;
* [https://www.globalgoals.org/ Sustainable Development Goals]&lt;br /&gt;
* [https://sdg-tracker.org/ Tracking SDGs]&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Sustainable_Development_Goals SDGs on Wikipedia]&lt;br /&gt;
&lt;br /&gt;
== Data sources ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Type of data&lt;br /&gt;
!Names of data sources&lt;br /&gt;
|-&lt;br /&gt;
|Socio-economic data&lt;br /&gt;
|[https://dhsprogram.com/data/Model-Datasets.cfm DHS] ([[Course:Cons452/DHS|Explainer]] , [[Sample data]])&lt;br /&gt;
[https://usa.ipums.org/usa/index.shtml IPUMS] ([[Course:Cons452/IPUMS|Explainer]], [[Sample Data]])&lt;br /&gt;
&lt;br /&gt;
[http://surveys.worldbank.org/lsms LSMS] ([[Course:Cons452/LSMS|Explainer]] , [[Sample data]]) &lt;br /&gt;
&lt;br /&gt;
[https://sedac.ciesin.columbia.edu/data/collection/gpw-v4 Gridded Pop World] ([[Course:Cons452/GriddedPopWorld|Explainer]] , Sample data)&lt;br /&gt;
&lt;br /&gt;
[https://mics.unicef.org/ MICS] ([[Course:Cons452/MICS|Explainer]] , Sample data)&lt;br /&gt;
|-&lt;br /&gt;
|Climate data&lt;br /&gt;
|[https://www.worldclim.org WorldClim] ([[Course:Cons452/WorldClim|Explainer]], Sample data)&lt;br /&gt;
|-&lt;br /&gt;
|Land use data&lt;br /&gt;
|[https://earthenginepartners.appspot.com/science-2013-global-forest/download_v1.2.html Hansen Global Forest Change ] ([[Course:Cons452/Hansen|Explainer]] , [[Sample data]])&lt;br /&gt;
[https://www.protectedplanet.net/ World Database on Protected Areas] ([[Course:Cons452/WDPA|Explainer]] , Sample data)&lt;br /&gt;
&lt;br /&gt;
AgChange (Explainer , Sample data)&lt;br /&gt;
&lt;br /&gt;
[http://www.earthstat.org/ EarthStat] ([[Course:Cons452/EarthStat|Explainer]] , Sample data)&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;&#039;&#039;Data search engines&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|[https://earthengine.google.com/ Google Earth Engine]&lt;br /&gt;
&lt;br /&gt;
[https://energydata.info/ Energydata.info]&lt;br /&gt;
&lt;br /&gt;
[https://freegisdata.rtwilson.com/ Free GIS Data]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Statistical analysis using R ==&lt;br /&gt;
RStudio is pre-installed on all the desktop systems in the lab. For your personal computers, please download it [https://rstudio.com/products/rstudio/download/ here].&lt;br /&gt;
&lt;br /&gt;
R can perform all functions available in MS Excel. &lt;br /&gt;
&lt;br /&gt;
Detailed help/guidelines on R for this course are available here.&lt;br /&gt;
&lt;br /&gt;
*[[Course:Cons452/UsingR|Getting Started]]&lt;br /&gt;
***&lt;br /&gt;
&lt;br /&gt;
== All Subpages ==&lt;br /&gt;
&amp;lt;dpl&amp;gt; &lt;br /&gt;
titlematch=Cons452/% &lt;br /&gt;
namespace=Course &lt;br /&gt;
shownamespace=false&lt;br /&gt;
&amp;lt;/dpl&amp;gt;&lt;br /&gt;
[[Category:Assignments]]&lt;br /&gt;
[[Category:Labs]]&lt;/div&gt;</summary>
		<author><name>VikasMenghwani</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Course:Cons452&amp;diff=569555</id>
		<title>Course:Cons452</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Course:Cons452&amp;diff=569555"/>
		<updated>2019-10-30T01:27:50Z</updated>

		<summary type="html">&lt;p&gt;VikasMenghwani: /* Data sources */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox_New_Course&lt;br /&gt;
|title= Global Perspectives Capstone&lt;br /&gt;
|course number= CONS452&lt;br /&gt;
|instructor= Dr. Jeanine Rhemtulla&lt;br /&gt;
|instructor 2= Dr. Hisham Zerriffi&lt;br /&gt;
|instructor 3= Dr. Terry Sunderland&lt;br /&gt;
|schedule=&lt;br /&gt;
|classroom=1001&lt;br /&gt;
}}Navigating the transition to a sustainable world is humanity’s current challenge. This will require fostering resilient interacting systems of people and ecosystems (resilient social-ecological systems). In this course, students will utilize a suite of tools and ideas useful in managing ecosystem services in a sustainable way. Each week we focus on a different theme related to sustainability and resilience, and work as small teams to apply these ideas to a set of diverse landscapes throughout the world. &lt;br /&gt;
&lt;br /&gt;
Many of the lab exercises and group projects involve “hands-on” spatial analysis of land cover change using GIS and remote sensing. We also assess socio-economic data to examine issues such as energy poverty. These quantitative approaches help us move beyond arm-waving about sustainability to making some tough choices, using the best available scientific information.   &lt;br /&gt;
&lt;br /&gt;
== SDG resources ==&lt;br /&gt;
* [https://www.globalgoals.org/ Sustainable Development Goals]&lt;br /&gt;
* [https://sdg-tracker.org/ Tracking SDGs]&lt;br /&gt;
&lt;br /&gt;
== Data sources ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Type of data&lt;br /&gt;
!Names of data sources&lt;br /&gt;
|-&lt;br /&gt;
|Socio-economic data&lt;br /&gt;
|[https://dhsprogram.com/data/Model-Datasets.cfm DHS] ([[Course:Cons452/DHS|Explainer]] , [[Sample data]])&lt;br /&gt;
[https://usa.ipums.org/usa/index.shtml IPUMS] ([[Course:Cons452/IPUMS|Explainer]], [[Sample Data]])&lt;br /&gt;
&lt;br /&gt;
[http://surveys.worldbank.org/lsms LSMS] (Explainer , [[Sample data]]) &lt;br /&gt;
&lt;br /&gt;
[https://sedac.ciesin.columbia.edu/data/collection/gpw-v4 Gridded Pop World] (Explainer , Sample data)&lt;br /&gt;
&lt;br /&gt;
[https://mics.unicef.org/ MICS] (Explainer , Sample data)&lt;br /&gt;
|-&lt;br /&gt;
|Climate data&lt;br /&gt;
|[https://www.worldclim.org WorldClim]&lt;br /&gt;
|-&lt;br /&gt;
|Land use data&lt;br /&gt;
|[https://earthenginepartners.appspot.com/science-2013-global-forest/download_v1.2.html Hansen Global Forest Change ] ([[Course:Cons452/Hansen|Explainer]] , [[Sample data]])&lt;br /&gt;
[https://www.protectedplanet.net/ World Database on Protected Areas] (Explainer , Sample data)&lt;br /&gt;
&lt;br /&gt;
AgChange (Explainer , Sample data)&lt;br /&gt;
&lt;br /&gt;
[http://www.earthstat.org/ EarthStat] (Explainer , Sample data)&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;&#039;&#039;Data search engines&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|[https://earthengine.google.com/ Google Earth Engine]&lt;br /&gt;
&lt;br /&gt;
[https://energydata.info/ Energydata.info]&lt;br /&gt;
&lt;br /&gt;
[https://freegisdata.rtwilson.com/ Free GIS Data]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Statistical analysis using R ==&lt;br /&gt;
RStudio is pre-installed on all the desktop systems in the lab. For your personal computers, please download it [https://rstudio.com/products/rstudio/download/ here].&lt;br /&gt;
&lt;br /&gt;
R can perform all functions available in MS Excel. &lt;br /&gt;
&lt;br /&gt;
Detailed help/guidelines on R for this course are available here.&lt;br /&gt;
&lt;br /&gt;
*[[Course:Cons452/UsingR|Getting Started]]&lt;br /&gt;
***&lt;br /&gt;
&lt;br /&gt;
== All Subpages ==&lt;br /&gt;
&amp;lt;dpl&amp;gt; &lt;br /&gt;
titlematch=Cons452/% &lt;br /&gt;
namespace=Course &lt;br /&gt;
shownamespace=false&lt;br /&gt;
&amp;lt;/dpl&amp;gt;&lt;br /&gt;
[[Category:Assignments]]&lt;br /&gt;
[[Category:Labs]]&lt;/div&gt;</summary>
		<author><name>VikasMenghwani</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Course:Cons452/UsingR&amp;diff=569147</id>
		<title>Course:Cons452/UsingR</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Course:Cons452/UsingR&amp;diff=569147"/>
		<updated>2019-10-21T22:22:23Z</updated>

		<summary type="html">&lt;p&gt;VikasMenghwani: /* Data visualization */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Installing R on Mac or Windows ==&lt;br /&gt;
&lt;br /&gt;
== Getting familiar ==&lt;br /&gt;
* For performing a particular task, there are numerous approaches within R - they are linked to multiple packages&lt;br /&gt;
* Cheatsheets: Download the following cheatsheets. These are useful references while you use R for different tasks:&lt;br /&gt;
** &lt;br /&gt;
&lt;br /&gt;
== Reading data in R ==&lt;br /&gt;
* Reading .csv files&lt;br /&gt;
* Reading other formats:&lt;br /&gt;
** converting .dta to .csv&lt;br /&gt;
** &lt;br /&gt;
&lt;br /&gt;
Exporting or writing your output file back as a table (.csv)&lt;br /&gt;
&lt;br /&gt;
== Data Transformation ==&lt;br /&gt;
Packages used: tydyr, dplyr&lt;br /&gt;
&lt;br /&gt;
* Reading your data&lt;br /&gt;
* Adding columns or changing columns&lt;br /&gt;
* Deleting/subsetting&lt;br /&gt;
* Performing simple algebra or Tabular data (excel like analysis)&lt;br /&gt;
&lt;br /&gt;
== Data visualization ==&lt;br /&gt;
Packages used: ggplot2&lt;br /&gt;
* Scatterplot&lt;br /&gt;
* Frequency plots&lt;br /&gt;
* Boxplots&lt;br /&gt;
* &lt;br /&gt;
&lt;br /&gt;
== Data analysis ==&lt;br /&gt;
Packages used:&lt;br /&gt;
&lt;br /&gt;
* Descriptive statistics&lt;br /&gt;
** Summarizing data (mean, median, sd etc.)&lt;br /&gt;
** box plots&lt;br /&gt;
* Statistical tests&lt;br /&gt;
** linear regression&lt;br /&gt;
** t-tests, ANOVA&lt;br /&gt;
** Summarizing regression results&lt;br /&gt;
&lt;br /&gt;
* &lt;br /&gt;
&lt;br /&gt;
== Organizing your workspace and files ==&lt;br /&gt;
* To minimize revision of the code within the team, while working on your project, it would be useful to save your files on the coursedrive&lt;br /&gt;
* Have a folder with your project name on the course drive&lt;br /&gt;
* Let the instruction for reading your .csv file be like the following&lt;br /&gt;
* &lt;br /&gt;
*&lt;/div&gt;</summary>
		<author><name>VikasMenghwani</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Course:Cons452/UsingR&amp;diff=569146</id>
		<title>Course:Cons452/UsingR</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Course:Cons452/UsingR&amp;diff=569146"/>
		<updated>2019-10-21T21:52:15Z</updated>

		<summary type="html">&lt;p&gt;VikasMenghwani: /* Useful R packages for capstone */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Installing R on Mac or Windows ==&lt;br /&gt;
&lt;br /&gt;
== Getting familiar ==&lt;br /&gt;
* For performing a particular task, there are numerous approaches within R - they are linked to multiple packages&lt;br /&gt;
* Cheatsheets: Download the following cheatsheets. These are useful references while you use R for different tasks:&lt;br /&gt;
** &lt;br /&gt;
&lt;br /&gt;
== Reading data in R ==&lt;br /&gt;
* Reading .csv files&lt;br /&gt;
* Reading other formats:&lt;br /&gt;
** converting .dta to .csv&lt;br /&gt;
** &lt;br /&gt;
&lt;br /&gt;
Exporting or writing your output file back as a table (.csv)&lt;br /&gt;
&lt;br /&gt;
== Data Transformation ==&lt;br /&gt;
Packages used: tydyr, dplyr&lt;br /&gt;
&lt;br /&gt;
* Reading your data&lt;br /&gt;
* Adding columns or changing columns&lt;br /&gt;
* Deleting/subsetting&lt;br /&gt;
* Performing simple algebra or Tabular data (excel like analysis)&lt;br /&gt;
&lt;br /&gt;
== Data visualization ==&lt;br /&gt;
Packages used: ggplot2&lt;br /&gt;
&lt;br /&gt;
== Data analysis ==&lt;br /&gt;
Packages used:&lt;br /&gt;
&lt;br /&gt;
* Descriptive statistics&lt;br /&gt;
** Summarizing data (mean, median, sd etc.)&lt;br /&gt;
** box plots&lt;br /&gt;
* Statistical tests&lt;br /&gt;
** linear regression&lt;br /&gt;
** t-tests, ANOVA&lt;br /&gt;
** Summarizing regression results&lt;br /&gt;
&lt;br /&gt;
* &lt;br /&gt;
&lt;br /&gt;
== Organizing your workspace and files ==&lt;br /&gt;
* To minimize revision of the code within the team, while working on your project, it would be useful to save your files on the coursedrive&lt;br /&gt;
* Have a folder with your project name on the course drive&lt;br /&gt;
* Let the instruction for reading your .csv file be like the following&lt;br /&gt;
* &lt;br /&gt;
*&lt;/div&gt;</summary>
		<author><name>VikasMenghwani</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Course:Cons452/UsingR&amp;diff=569145</id>
		<title>Course:Cons452/UsingR</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Course:Cons452/UsingR&amp;diff=569145"/>
		<updated>2019-10-21T21:50:07Z</updated>

		<summary type="html">&lt;p&gt;VikasMenghwani: /* Data conversion */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Installing R on Mac or Windows ==&lt;br /&gt;
&lt;br /&gt;
== Getting familiar ==&lt;br /&gt;
* For performing a particular task, there are numerous approaches within R - they are linked to multiple packages&lt;br /&gt;
* Cheatsheets: Download the following cheatsheets. These are useful references while you use R for different tasks:&lt;br /&gt;
** &lt;br /&gt;
&lt;br /&gt;
== Reading data in R ==&lt;br /&gt;
* Reading .csv files&lt;br /&gt;
* Reading other formats:&lt;br /&gt;
** converting .dta to .csv&lt;br /&gt;
** &lt;br /&gt;
&lt;br /&gt;
Exporting or writing your output file back as a table (.csv)&lt;br /&gt;
&lt;br /&gt;
== Data Manipulation ==&lt;br /&gt;
* Reading your data&lt;br /&gt;
* Adding columns or changing columns&lt;br /&gt;
* Deleting/subsetting&lt;br /&gt;
* Performing simple algebra or Tabular data (excel like analysis)&lt;br /&gt;
&lt;br /&gt;
== Data analysis ==&lt;br /&gt;
* Descriptive statistics&lt;br /&gt;
** Summarizing data (mean, median, sd etc.)&lt;br /&gt;
** box plots&lt;br /&gt;
* Statistical tests&lt;br /&gt;
** linear regression&lt;br /&gt;
** t-tests, ANOVA&lt;br /&gt;
** Summarizing regression results&lt;br /&gt;
&lt;br /&gt;
== Useful R packages for capstone ==&lt;br /&gt;
* For clean and interesting data visualization: ggplot2 package&lt;br /&gt;
* For linear regression:&lt;br /&gt;
* For data cleaning and transformation: tidyr, dplyr&lt;br /&gt;
&lt;br /&gt;
== Organizing your workspace and files ==&lt;br /&gt;
* To minimize revision of the code within the team, while working on your project, it would be useful to save your files on the coursedrive&lt;br /&gt;
* Have a folder with your project name on the course drive&lt;br /&gt;
* Let the instruction for reading your .csv file be like the following&lt;br /&gt;
* &lt;br /&gt;
*&lt;/div&gt;</summary>
		<author><name>VikasMenghwani</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Course:Cons452/UsingR&amp;diff=569144</id>
		<title>Course:Cons452/UsingR</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Course:Cons452/UsingR&amp;diff=569144"/>
		<updated>2019-10-21T21:45:28Z</updated>

		<summary type="html">&lt;p&gt;VikasMenghwani: /* Data conversion */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Installing R on Mac or Windows ==&lt;br /&gt;
&lt;br /&gt;
== Getting familiar ==&lt;br /&gt;
* For performing a particular task, there are numerous approaches within R - they are linked to multiple packages&lt;br /&gt;
** &lt;br /&gt;
&lt;br /&gt;
== Data conversion ==&lt;br /&gt;
&lt;br /&gt;
== Data Manipulation ==&lt;br /&gt;
* Reading your data&lt;br /&gt;
* Adding columns or changing columns&lt;br /&gt;
* Deleting/subsetting&lt;br /&gt;
* Performing simple algebra or Tabular data (excel like analysis)&lt;br /&gt;
&lt;br /&gt;
== Data analysis ==&lt;br /&gt;
* Descriptive statistics&lt;br /&gt;
** Summarizing data (mean, median, sd etc.)&lt;br /&gt;
** box plots&lt;br /&gt;
* Statistical tests&lt;br /&gt;
** linear regression&lt;br /&gt;
** t-tests, ANOVA&lt;br /&gt;
** Summarizing regression results&lt;br /&gt;
&lt;br /&gt;
== Useful R packages for capstone ==&lt;br /&gt;
* For clean and interesting data visualization: ggplot2 package&lt;br /&gt;
* For linear regression:&lt;br /&gt;
* For data cleaning and transformation: tidyr, dplyr&lt;br /&gt;
&lt;br /&gt;
Cheatsheets: Download the following cheatsheets. These are useful references while you use R for different tasks:&lt;br /&gt;
&lt;br /&gt;
== Organizing your data ==&lt;br /&gt;
* To minimize revision of the code within the team, while working on your project, it would be useful to save your files on the coursedrive&lt;br /&gt;
* Have a folder with your project name on the course drive&lt;br /&gt;
* Let the instruction for reading your .csv file be like the following&lt;br /&gt;
* &lt;br /&gt;
&lt;br /&gt;
=== Helpful tips ===&lt;br /&gt;
* Saving data files in csv format is always helpful&lt;br /&gt;
*&lt;/div&gt;</summary>
		<author><name>VikasMenghwani</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Course:Cons452/UsingR&amp;diff=569141</id>
		<title>Course:Cons452/UsingR</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Course:Cons452/UsingR&amp;diff=569141"/>
		<updated>2019-10-21T21:07:54Z</updated>

		<summary type="html">&lt;p&gt;VikasMenghwani: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Installing R on Mac or Windows ==&lt;br /&gt;
&lt;br /&gt;
== Data conversion ==&lt;br /&gt;
&lt;br /&gt;
== Data Manipulation ==&lt;br /&gt;
&lt;br /&gt;
== Data analysis ==&lt;br /&gt;
&lt;br /&gt;
=== Helpful tips ===&lt;br /&gt;
* Saving data files in csv format is always helpful&lt;br /&gt;
*&lt;/div&gt;</summary>
		<author><name>VikasMenghwani</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Course:Cons452&amp;diff=569140</id>
		<title>Course:Cons452</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Course:Cons452&amp;diff=569140"/>
		<updated>2019-10-21T21:06:22Z</updated>

		<summary type="html">&lt;p&gt;VikasMenghwani: /* Statistical analysis using R */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox_New_Course&lt;br /&gt;
|title= Global Perspectives Capstone&lt;br /&gt;
|course number= CONS452&lt;br /&gt;
|instructor= Dr. Jeanine Rhemtulla&lt;br /&gt;
|instructor 2= Dr. Hisham Zerriffi&lt;br /&gt;
|instructor 3= Dr. Terry Sunderland&lt;br /&gt;
|schedule=&lt;br /&gt;
|classroom=1001&lt;br /&gt;
}}Navigating the transition to a sustainable world is humanity’s current challenge. This will require fostering resilient interacting systems of people and ecosystems (resilient social-ecological systems). In this course, students will utilize a suite of tools and ideas useful in managing ecosystem services in a sustainable way. Each week we focus on a different theme related to sustainability and resilience, and work as small teams to apply these ideas to a set of diverse landscapes throughout the world. &lt;br /&gt;
&lt;br /&gt;
Many of the lab exercises and group projects involve “hands-on” spatial analysis of land cover change using GIS and remote sensing. We also assess socio-economic data to examine issues such as energy poverty. These quantitative approaches help us move beyond arm-waving about sustainability to making some tough choices, using the best available scientific information.   &lt;br /&gt;
&lt;br /&gt;
== SDG resources ==&lt;br /&gt;
* [https://www.globalgoals.org/ Sustainable Development Goals]&lt;br /&gt;
* [https://sdg-tracker.org/ Tracking SDGs]&lt;br /&gt;
&lt;br /&gt;
== Data sources ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Type of data&lt;br /&gt;
!Names of data sources&lt;br /&gt;
|-&lt;br /&gt;
|Socio-economic data&lt;br /&gt;
|[https://dhsprogram.com/data/Model-Datasets.cfm DHS] ([[Course:Cons452/DHS|Explainer]] , [[Sample data]])&lt;br /&gt;
[https://usa.ipums.org/usa/index.shtml IPUMS] ([[Course:Cons452/IPUMS|Explainer]], [[Sample Data]])&lt;br /&gt;
&lt;br /&gt;
[http://surveys.worldbank.org/lsms LSMS] &lt;br /&gt;
&lt;br /&gt;
[https://sedac.ciesin.columbia.edu/data/collection/gpw-v4 Gridded Pop World]&lt;br /&gt;
&lt;br /&gt;
[https://mics.unicef.org/ MICS]&lt;br /&gt;
|-&lt;br /&gt;
|Climate data&lt;br /&gt;
|[https://www.worldclim.org WorldClim]&lt;br /&gt;
|-&lt;br /&gt;
|Land use data&lt;br /&gt;
|[https://earthenginepartners.appspot.com/science-2013-global-forest/download_v1.2.html Hansen Global Forest Change ] ([[Course:Cons452/Hansen|Explainer]] , [[Sample data]])&lt;br /&gt;
[https://www.protectedplanet.net/ World Database on Protected Areas]&lt;br /&gt;
&lt;br /&gt;
AgChange&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;&#039;&#039;Data search engines&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|[https://earthengine.google.com/ Google Earth Engine]&lt;br /&gt;
&lt;br /&gt;
[https://energydata.info/ Energydata.info]&lt;br /&gt;
&lt;br /&gt;
[https://freegisdata.rtwilson.com/ Free GIS Data]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Statistical analysis using R ==&lt;br /&gt;
RStudio is pre-installed on all the desktop systems in the lab. For your personal computers, please download it [https://rstudio.com/products/rstudio/download/ here].&lt;br /&gt;
&lt;br /&gt;
R can perform all functions available in MS Excel. &lt;br /&gt;
&lt;br /&gt;
Detailed help/guidelines on R for this course are available here.&lt;br /&gt;
&lt;br /&gt;
*[[Course:Cons452/UsingR|Getting Started]]&lt;br /&gt;
***&lt;br /&gt;
&lt;br /&gt;
== All Subpages ==&lt;br /&gt;
&amp;lt;dpl&amp;gt; &lt;br /&gt;
titlematch=Cons452/% &lt;br /&gt;
namespace=Course &lt;br /&gt;
shownamespace=false&lt;br /&gt;
&amp;lt;/dpl&amp;gt;&lt;br /&gt;
[[Category:Assignments]]&lt;br /&gt;
[[Category:Labs]]&lt;/div&gt;</summary>
		<author><name>VikasMenghwani</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Course:Cons452&amp;diff=569139</id>
		<title>Course:Cons452</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Course:Cons452&amp;diff=569139"/>
		<updated>2019-10-21T21:04:45Z</updated>

		<summary type="html">&lt;p&gt;VikasMenghwani: /* Statistical analysis using R */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox_New_Course&lt;br /&gt;
|title= Global Perspectives Capstone&lt;br /&gt;
|course number= CONS452&lt;br /&gt;
|instructor= Dr. Jeanine Rhemtulla&lt;br /&gt;
|instructor 2= Dr. Hisham Zerriffi&lt;br /&gt;
|instructor 3= Dr. Terry Sunderland&lt;br /&gt;
|schedule=&lt;br /&gt;
|classroom=1001&lt;br /&gt;
}}Navigating the transition to a sustainable world is humanity’s current challenge. This will require fostering resilient interacting systems of people and ecosystems (resilient social-ecological systems). In this course, students will utilize a suite of tools and ideas useful in managing ecosystem services in a sustainable way. Each week we focus on a different theme related to sustainability and resilience, and work as small teams to apply these ideas to a set of diverse landscapes throughout the world. &lt;br /&gt;
&lt;br /&gt;
Many of the lab exercises and group projects involve “hands-on” spatial analysis of land cover change using GIS and remote sensing. We also assess socio-economic data to examine issues such as energy poverty. These quantitative approaches help us move beyond arm-waving about sustainability to making some tough choices, using the best available scientific information.   &lt;br /&gt;
&lt;br /&gt;
== SDG resources ==&lt;br /&gt;
* [https://www.globalgoals.org/ Sustainable Development Goals]&lt;br /&gt;
* [https://sdg-tracker.org/ Tracking SDGs]&lt;br /&gt;
&lt;br /&gt;
== Data sources ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Type of data&lt;br /&gt;
!Names of data sources&lt;br /&gt;
|-&lt;br /&gt;
|Socio-economic data&lt;br /&gt;
|[https://dhsprogram.com/data/Model-Datasets.cfm DHS] ([[Course:Cons452/DHS|Explainer]] , [[Sample data]])&lt;br /&gt;
[https://usa.ipums.org/usa/index.shtml IPUMS] ([[Course:Cons452/IPUMS|Explainer]], [[Sample Data]])&lt;br /&gt;
&lt;br /&gt;
[http://surveys.worldbank.org/lsms LSMS] &lt;br /&gt;
&lt;br /&gt;
[https://sedac.ciesin.columbia.edu/data/collection/gpw-v4 Gridded Pop World]&lt;br /&gt;
&lt;br /&gt;
[https://mics.unicef.org/ MICS]&lt;br /&gt;
|-&lt;br /&gt;
|Climate data&lt;br /&gt;
|[https://www.worldclim.org WorldClim]&lt;br /&gt;
|-&lt;br /&gt;
|Land use data&lt;br /&gt;
|[https://earthenginepartners.appspot.com/science-2013-global-forest/download_v1.2.html Hansen Global Forest Change ] ([[Course:Cons452/Hansen|Explainer]] , [[Sample data]])&lt;br /&gt;
[https://www.protectedplanet.net/ World Database on Protected Areas]&lt;br /&gt;
&lt;br /&gt;
AgChange&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;&#039;&#039;Data search engines&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|[https://earthengine.google.com/ Google Earth Engine]&lt;br /&gt;
&lt;br /&gt;
[https://energydata.info/ Energydata.info]&lt;br /&gt;
&lt;br /&gt;
[https://freegisdata.rtwilson.com/ Free GIS Data]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Statistical analysis using R ==&lt;br /&gt;
RStudio is pre-installed on all the desktop systems in the lab. For your personal computers, please download it [https://rstudio.com/products/rstudio/download/ here].&lt;br /&gt;
&lt;br /&gt;
*[[Course:Cons452/UsingR|Getting Started]]&lt;br /&gt;
***&lt;br /&gt;
&lt;br /&gt;
== All Subpages ==&lt;br /&gt;
&amp;lt;dpl&amp;gt; &lt;br /&gt;
titlematch=Cons452/% &lt;br /&gt;
namespace=Course &lt;br /&gt;
shownamespace=false&lt;br /&gt;
&amp;lt;/dpl&amp;gt;&lt;br /&gt;
[[Category:Assignments]]&lt;br /&gt;
[[Category:Labs]]&lt;/div&gt;</summary>
		<author><name>VikasMenghwani</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Course:Cons452&amp;diff=568009</id>
		<title>Course:Cons452</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Course:Cons452&amp;diff=568009"/>
		<updated>2019-10-08T02:05:38Z</updated>

		<summary type="html">&lt;p&gt;VikasMenghwani: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox_New_Course&lt;br /&gt;
|title= Global Perspectives Capstone&lt;br /&gt;
|course number= CONS452&lt;br /&gt;
|instructor= Dr. Jeanine Rhemtulla&lt;br /&gt;
|instructor 2= Dr. Hisham Zerriffi&lt;br /&gt;
|instructor 3= Dr. Terry Sunderland&lt;br /&gt;
|schedule=&lt;br /&gt;
|classroom=1001&lt;br /&gt;
}}Navigating the transition to a sustainable world is humanity’s current challenge. This will require fostering resilient interacting systems of people and ecosystems (resilient social-ecological systems). In this course, students will utilize a suite of tools and ideas useful in managing ecosystem services in a sustainable way. Each week we focus on a different theme related to sustainability and resilience, and work as small teams to apply these ideas to a set of diverse landscapes throughout the world. &lt;br /&gt;
&lt;br /&gt;
Many of the lab exercises and group projects involve “hands-on” spatial analysis of land cover change using GIS and remote sensing. We also assess socio-economic data to examine issues such as energy poverty. These quantitative approaches help us move beyond arm-waving about sustainability to making some tough choices, using the best available scientific information.   &lt;br /&gt;
&lt;br /&gt;
== SDG resources ==&lt;br /&gt;
* [https://www.globalgoals.org/ Sustainable Development Goals]&lt;br /&gt;
* [https://sdg-tracker.org/ Tracking SDGs]&lt;br /&gt;
&lt;br /&gt;
== Data sources ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Type of data&lt;br /&gt;
!Names of data sources&lt;br /&gt;
|-&lt;br /&gt;
|Socio-economic data&lt;br /&gt;
|[https://dhsprogram.com/data/Model-Datasets.cfm DHS] ([[Course:Cons452/DHS|Explainer]] , [[Sample data]])&lt;br /&gt;
[https://usa.ipums.org/usa/index.shtml IPUMS] ([[Course:Cons452/IPUMS|Explainer]], [[Sample Data]])&lt;br /&gt;
|-&lt;br /&gt;
|Natural resource data&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Land use data&lt;br /&gt;
|[https://earthenginepartners.appspot.com/science-2013-global-forest/download_v1.2.html Hansen Global Forest Change ] ([[Course:Cons452/Hansen|Explainer]] , [[Sample data]])&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;&#039;&#039;Data search engines&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Statistical analysis using R ==&lt;br /&gt;
RStudio is pre-installed on all the desktop systems in the lab. For your personal computers, please down it [https://rstudio.com/products/rstudio/download/ here].&lt;br /&gt;
&lt;br /&gt;
*[[Course:Cons452/UsingR|Getting Started]]&lt;br /&gt;
***&lt;br /&gt;
&lt;br /&gt;
== All Subpages ==&lt;br /&gt;
&amp;lt;dpl&amp;gt; &lt;br /&gt;
titlematch=Cons452/% &lt;br /&gt;
namespace=Course &lt;br /&gt;
shownamespace=false&lt;br /&gt;
&amp;lt;/dpl&amp;gt;&lt;br /&gt;
[[Category:Assignments]]&lt;br /&gt;
[[Category:Labs]]&lt;/div&gt;</summary>
		<author><name>VikasMenghwani</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Explainer&amp;diff=568008</id>
		<title>Explainer</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Explainer&amp;diff=568008"/>
		<updated>2019-10-08T02:04:53Z</updated>

		<summary type="html">&lt;p&gt;VikasMenghwani: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Hansen Global Forest Change dataset&#039;&#039;&#039;  &amp;lt;br&amp;gt;&lt;br /&gt;
Use the following credit when these data are displayed:&amp;lt;br&amp;gt;&lt;br /&gt;
Source: Hansen/UMD/Google/USGS/NASA&amp;lt;br&amp;gt;&lt;br /&gt;
Use the following credit when these data are cited:&amp;lt;br&amp;gt;&lt;br /&gt;
Hansen, M. C., P. V. Potapov, R. Moore, M. Hancher, S. A. Turubanova, A. Tyukavina, D. Thau, S. V. Stehman, S. J. Goetz, T. R. Loveland, A. Kommareddy, A. Egorov, L. Chini, C. O. Justice, and J. R. G. Townshend. 2013. “High-Resolution Global Maps of 21st-Century Forest Cover Change.” Science 342 (15 November): 850–53. Data available on-line from: http://earthenginepartners.appspot.com/science-2013-global-forest.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Description&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
The Hansen Global Forest Change dataset are results from a time-series analysis of Landsat (30m x 30m spatial resolution) images which characterize global forest extent and global forest change from 2000 to the most recent year (currently 2018). In this forest characterization dataset trees are defined as vegetation taller than 5m in height. The dataset was created and is maintained by Matthew Hansen (University of Maryland) and his team and is the most comprehensive dataset of forest cover and forest change available publicly. &lt;br /&gt;
&lt;br /&gt;
For more information about the dataset please see the journal article: Hansen, M. C., Potapov, P. V., Moore, R., Hancher, M., Turubanova, S. A. A., Tyukavina, A., ... &amp;amp; Kommareddy, A. (2013). High-resolution global maps of 21st-century forest cover change. Science, 342(6160), 850-853.&lt;br /&gt;
&lt;br /&gt;
Although the dataset is comprehensive, there are some disadvantages. For example, it does not distinguish tropical forests from plantations and herbaceous crops, leading to an underestimation of forest loss in tropical areas (https://science.sciencemag.org/content/344/6187/981.4). Review the literature and ensure that this dataset is a good fit for your project.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Metadata&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
The following is taken directly from the https://earthenginepartners.appspot.com/science-2013-global-forest/download_v1.2.html website (however the formatting of the text has been changes to fit this wiki), underneath the heading Dataset Details (Hansen 2013): &lt;br /&gt;
&lt;br /&gt;
“This global dataset is divided into 10x10 degree tiles, consisting of seven files per tile. All files contain unsigned 8-bit values and have a spatial resolution of 1 arc-second per pixel, or approximately 30 meters per pixel at the equator.&lt;br /&gt;
&lt;br /&gt;
Tree canopy cover for year 2000 (treecover2000) - Tree cover in the year 2000, defined as canopy closure for all vegetation taller than 5m in height. Encoded as a percentage per output grid cell, in the range 0–100.&amp;lt;br&amp;gt;&lt;br /&gt;
Global forest cover loss 2000–2014 (loss) - Forest loss during the period 2000–2014, defined as a stand-replacement disturbance, or a change from a forest to non-forest state. Encoded as either 1 (loss) or 0 (no loss).&amp;lt;br&amp;gt;&lt;br /&gt;
Global forest cover gain 2000–2012 (gain) - Forest gain during the period 2000–2012, defined as the inverse of loss, or a non-forest to forest change entirely within the study period. Encoded as either 1 (gain) or 0 (no gain).&amp;lt;br&amp;gt;&lt;br /&gt;
Year of gross forest cover loss event (lossyear) - A disaggregation of total forest loss to annual time scales. Encoded as either 0 (no loss) or else a value in the range 1–14, representing loss detected primarily in the year 2001–2014, respectively.&amp;lt;br&amp;gt;&lt;br /&gt;
Data mask (datamask) - Three values representing areas of no data (0), mapped land surface (1), and permanent water bodies (2).&amp;lt;br&amp;gt;&lt;br /&gt;
Circa year 2000 Landsat 7 cloud-free image composite (first) - Reference multispectral imagery from the first available year, typically 2000. If no cloud-free observations were available for year 2000, imagery was taken from the closest year with cloud-free data, within the range 1999–2012.&amp;lt;br&amp;gt;&lt;br /&gt;
Circa year 2014 Landsat cloud-free image composite (last) - Reference multispectral imagery from the last available year, typically 2014. If no cloud-free observations were available for year 2014, imagery was taken from the closest year with cloud-free data, within the range 2010–2012.&amp;lt;br&amp;gt;&lt;br /&gt;
Reference composite imagery are median observations from a set of quality assessed growing season observations in four spectral bands, specifically Landsat bands 3, 4, 5, and 7. Normalized top-of-atmosphere (TOA) reflectance values (ρ) have been scaled to an 8-bit data range using a scale factor (g):&lt;br /&gt;
DN = ρ · g + 1&amp;lt;br&amp;gt;&lt;br /&gt;
The g factor was chosen independently for each band to preserve the band-specific dynamic range, as shown in the following table:”&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Landsat Band	g&amp;lt;br&amp;gt;&lt;br /&gt;
Band 3 (red)	508&amp;lt;br&amp;gt;&lt;br /&gt;
Band 4 (NIR)	254&amp;lt;br&amp;gt;&lt;br /&gt;
Band 5 (SWIR)	363&amp;lt;br&amp;gt;&lt;br /&gt;
Band 7 (SWIR)	423&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Tiles over the ocean are provided for completeness and do not contain meaningful data.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Downloading Instructions&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Go to the url: &lt;br /&gt;
https://earthenginepartners.appspot.com/science-2013-global-forest/download_v1.2.html&lt;br /&gt;
Then scroll down to the subheading “Download Instructions”. You have to download them in tiles that are 10 degree cubes, and so you must click on your desired cube(s) on the site. You’ll notice that the links below the map will change to match up with the tile you have just clicked on. Each link corresponds to a layer file (.tif) for that tile (one of the 7 layer files aforementioned), and you can download select layers or all of them for the same tile. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Restriction on Use&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Creative Commons Attribution 4.0 International License&amp;lt;br&amp;gt;&lt;br /&gt;
Please see https://creativecommons.org/licenses/by/4.0/legalcode for full license terms but this essentially means that you are free to use, share, and adapt this data as long as you attribute it and indicate how you have manipulated or built upon the data (if you do so). &lt;br /&gt;
Sample* i believe due to licensing that I can have a sample here without issue for this specific dataset. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Sample&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
of the attribute table for a spatial dataset or a screenshot?&lt;/div&gt;</summary>
		<author><name>VikasMenghwani</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Course:Con452/UsingR/Basics&amp;diff=567960</id>
		<title>Course:Con452/UsingR/Basics</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Course:Con452/UsingR/Basics&amp;diff=567960"/>
		<updated>2019-10-07T21:37:04Z</updated>

		<summary type="html">&lt;p&gt;VikasMenghwani: Created page with &amp;quot;{{Infobox_New_Course|title=|picture=Image:wiki.png|subject code=|course number=|section number=|instructor=|instructor 2=|instructor 3=|instructor 4=|instructor 5=|email=|offi...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox_New_Course|title=|picture=Image:wiki.png|subject code=|course number=|section number=|instructor=|instructor 2=|instructor 3=|instructor 4=|instructor 5=|email=|office=|office hours=|schedule=|classroom=}}&lt;br /&gt;
&amp;lt;!--End Infobox; Please add your page content below--&amp;gt;&lt;/div&gt;</summary>
		<author><name>VikasMenghwani</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Course:Cons452&amp;diff=567945</id>
		<title>Course:Cons452</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Course:Cons452&amp;diff=567945"/>
		<updated>2019-10-07T18:56:34Z</updated>

		<summary type="html">&lt;p&gt;VikasMenghwani: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox_New_Course&lt;br /&gt;
|title= Global Perspectives Capstone&lt;br /&gt;
|course number= CONS452&lt;br /&gt;
|instructor= Dr. Jeanine Rhemtulla&lt;br /&gt;
|instructor 2= Dr. Hisham Zerriffi&lt;br /&gt;
|instructor 3= Dr. Terry Sunderland&lt;br /&gt;
|schedule=&lt;br /&gt;
|classroom=1001&lt;br /&gt;
}}Navigating the transition to a sustainable world is humanity’s current challenge. This will require fostering resilient interacting systems of people and ecosystems (resilient social-ecological systems). In this course, students will utilize a suite of tools and ideas useful in managing ecosystem services in a sustainable way. Each week we focus on a different theme related to sustainability and resilience, and work as small teams to apply these ideas to a set of diverse landscapes throughout the world. &lt;br /&gt;
&lt;br /&gt;
Many of the lab exercises and group projects involve “hands-on” spatial analysis of land cover change using GIS and remote sensing. We also assess socio-economic data to examine issues such as energy poverty. These quantitative approaches help us move beyond arm-waving about sustainability to making some tough choices, using the best available scientific information.   &lt;br /&gt;
&lt;br /&gt;
== SDG resources ==&lt;br /&gt;
* [https://www.globalgoals.org/ Sustainable Development Goals]&lt;br /&gt;
* [https://sdg-tracker.org/ Tracking SDGs]&lt;br /&gt;
&lt;br /&gt;
== Syllabus ==&lt;br /&gt;
Syllabus is present [https://wiki.ubc.ca/images/7/70/CONS452_Syllabus.pdf here]&lt;br /&gt;
&lt;br /&gt;
== Class lectures ==&lt;br /&gt;
&lt;br /&gt;
== Lab Assignments ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Week1&lt;br /&gt;
![https://canvas.ubc.ca/courses/18915/assignments/287860?module_item_id=984163 A1: Intro to qGIS]&lt;br /&gt;
|-&lt;br /&gt;
!Week2&lt;br /&gt;
![https://canvas.ubc.ca/courses/18915/assignments/287874 A2: Statistics refresher]&lt;br /&gt;
|-&lt;br /&gt;
!Week3&lt;br /&gt;
!&lt;br /&gt;
|-&lt;br /&gt;
!Week4&lt;br /&gt;
!&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Data sources ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Type of data&lt;br /&gt;
!Names of data sources&lt;br /&gt;
|-&lt;br /&gt;
|Socio-economic data&lt;br /&gt;
|[https://dhsprogram.com/data/Model-Datasets.cfm DHS] ([[Course:Cons452/DHS|Explainer]] , [[Sample data]])&lt;br /&gt;
[https://usa.ipums.org/usa/index.shtml IPUMS] ([[Course:Cons452/IPUMS|Explainer]], [[Sample Data]])&lt;br /&gt;
|-&lt;br /&gt;
|Natural resource data&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Land use data&lt;br /&gt;
|[https://earthenginepartners.appspot.com/science-2013-global-forest/download_v1.2.html Hansen Global Forest Change ] ([[Course:Cons452/Hansen|Explainer]] , [[Sample data]])&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;&#039;&#039;Data search engines&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Statistical analysis using R ==&lt;br /&gt;
RStudio is pre-installed on all the desktop systems in the lab. For your personal computers, please down it [https://rstudio.com/products/rstudio/download/ here].&lt;br /&gt;
&lt;br /&gt;
*[[Course:Cons452/UsingR|Getting Started]]&lt;br /&gt;
***&lt;br /&gt;
&lt;br /&gt;
== All Subpages ==&lt;br /&gt;
&amp;lt;dpl&amp;gt; &lt;br /&gt;
titlematch=Cons452/% &lt;br /&gt;
namespace=Course &lt;br /&gt;
shownamespace=false&lt;br /&gt;
&amp;lt;/dpl&amp;gt;&lt;br /&gt;
[[Category:Assignments]]&lt;br /&gt;
[[Category:Labs]]&lt;/div&gt;</summary>
		<author><name>VikasMenghwani</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Explainer&amp;diff=567944</id>
		<title>Explainer</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Explainer&amp;diff=567944"/>
		<updated>2019-10-07T18:47:21Z</updated>

		<summary type="html">&lt;p&gt;VikasMenghwani: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Delete}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hansen Global Forest Change dataset&#039;&#039;&#039;  &amp;lt;br&amp;gt;&lt;br /&gt;
Use the following credit when these data are displayed:&amp;lt;br&amp;gt;&lt;br /&gt;
Source: Hansen/UMD/Google/USGS/NASA&amp;lt;br&amp;gt;&lt;br /&gt;
Use the following credit when these data are cited:&amp;lt;br&amp;gt;&lt;br /&gt;
Hansen, M. C., P. V. Potapov, R. Moore, M. Hancher, S. A. Turubanova, A. Tyukavina, D. Thau, S. V. Stehman, S. J. Goetz, T. R. Loveland, A. Kommareddy, A. Egorov, L. Chini, C. O. Justice, and J. R. G. Townshend. 2013. “High-Resolution Global Maps of 21st-Century Forest Cover Change.” Science 342 (15 November): 850–53. Data available on-line from: http://earthenginepartners.appspot.com/science-2013-global-forest.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Description&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
The Hansen Global Forest Change dataset are results from a time-series analysis of Landsat (30m x 30m spatial resolution) images which characterize global forest extent and global forest change from 2000 to the most recent year (currently 2018). In this forest characterization dataset trees are defined as vegetation taller than 5m in height. The dataset was created and is maintained by Matthew Hansen (University of Maryland) and his team and is the most comprehensive dataset of forest cover and forest change available publicly. &lt;br /&gt;
&lt;br /&gt;
For more information about the dataset please see the journal article: Hansen, M. C., Potapov, P. V., Moore, R., Hancher, M., Turubanova, S. A. A., Tyukavina, A., ... &amp;amp; Kommareddy, A. (2013). High-resolution global maps of 21st-century forest cover change. Science, 342(6160), 850-853.&lt;br /&gt;
&lt;br /&gt;
Although the dataset is comprehensive, there are some disadvantages. For example, it does not distinguish tropical forests from plantations and herbaceous crops, leading to an underestimation of forest loss in tropical areas (https://science.sciencemag.org/content/344/6187/981.4). Review the literature and ensure that this dataset is a good fit for your project.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Metadata&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
The following is taken directly from the https://earthenginepartners.appspot.com/science-2013-global-forest/download_v1.2.html website (however the formatting of the text has been changes to fit this wiki), underneath the heading Dataset Details (Hansen 2013): &lt;br /&gt;
&lt;br /&gt;
“This global dataset is divided into 10x10 degree tiles, consisting of seven files per tile. All files contain unsigned 8-bit values and have a spatial resolution of 1 arc-second per pixel, or approximately 30 meters per pixel at the equator.&lt;br /&gt;
&lt;br /&gt;
Tree canopy cover for year 2000 (treecover2000) - Tree cover in the year 2000, defined as canopy closure for all vegetation taller than 5m in height. Encoded as a percentage per output grid cell, in the range 0–100.&amp;lt;br&amp;gt;&lt;br /&gt;
Global forest cover loss 2000–2014 (loss) - Forest loss during the period 2000–2014, defined as a stand-replacement disturbance, or a change from a forest to non-forest state. Encoded as either 1 (loss) or 0 (no loss).&amp;lt;br&amp;gt;&lt;br /&gt;
Global forest cover gain 2000–2012 (gain) - Forest gain during the period 2000–2012, defined as the inverse of loss, or a non-forest to forest change entirely within the study period. Encoded as either 1 (gain) or 0 (no gain).&amp;lt;br&amp;gt;&lt;br /&gt;
Year of gross forest cover loss event (lossyear) - A disaggregation of total forest loss to annual time scales. Encoded as either 0 (no loss) or else a value in the range 1–14, representing loss detected primarily in the year 2001–2014, respectively.&amp;lt;br&amp;gt;&lt;br /&gt;
Data mask (datamask) - Three values representing areas of no data (0), mapped land surface (1), and permanent water bodies (2).&amp;lt;br&amp;gt;&lt;br /&gt;
Circa year 2000 Landsat 7 cloud-free image composite (first) - Reference multispectral imagery from the first available year, typically 2000. If no cloud-free observations were available for year 2000, imagery was taken from the closest year with cloud-free data, within the range 1999–2012.&amp;lt;br&amp;gt;&lt;br /&gt;
Circa year 2014 Landsat cloud-free image composite (last) - Reference multispectral imagery from the last available year, typically 2014. If no cloud-free observations were available for year 2014, imagery was taken from the closest year with cloud-free data, within the range 2010–2012.&amp;lt;br&amp;gt;&lt;br /&gt;
Reference composite imagery are median observations from a set of quality assessed growing season observations in four spectral bands, specifically Landsat bands 3, 4, 5, and 7. Normalized top-of-atmosphere (TOA) reflectance values (ρ) have been scaled to an 8-bit data range using a scale factor (g):&lt;br /&gt;
DN = ρ · g + 1&amp;lt;br&amp;gt;&lt;br /&gt;
The g factor was chosen independently for each band to preserve the band-specific dynamic range, as shown in the following table:”&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Landsat Band	g&amp;lt;br&amp;gt;&lt;br /&gt;
Band 3 (red)	508&amp;lt;br&amp;gt;&lt;br /&gt;
Band 4 (NIR)	254&amp;lt;br&amp;gt;&lt;br /&gt;
Band 5 (SWIR)	363&amp;lt;br&amp;gt;&lt;br /&gt;
Band 7 (SWIR)	423&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Tiles over the ocean are provided for completeness and do not contain meaningful data.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Downloading Instructions&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Go to the url: &lt;br /&gt;
https://earthenginepartners.appspot.com/science-2013-global-forest/download_v1.2.html&lt;br /&gt;
Then scroll down to the subheading “Download Instructions”. You have to download them in tiles that are 10 degree cubes, and so you must click on your desired cube(s) on the site. You’ll notice that the links below the map will change to match up with the tile you have just clicked on. Each link corresponds to a layer file (.tif) for that tile (one of the 7 layer files aforementioned), and you can download select layers or all of them for the same tile. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Restriction on Use&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Creative Commons Attribution 4.0 International License&amp;lt;br&amp;gt;&lt;br /&gt;
Please see https://creativecommons.org/licenses/by/4.0/legalcode for full license terms but this essentially means that you are free to use, share, and adapt this data as long as you attribute it and indicate how you have manipulated or built upon the data (if you do so). &lt;br /&gt;
Sample* i believe due to licensing that I can have a sample here without issue for this specific dataset. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Sample&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
of the attribute table for a spatial dataset or a screenshot?&lt;/div&gt;</summary>
		<author><name>VikasMenghwani</name></author>
	</entry>
</feed>