FIND DATA: By Author | Journal Archives | Sites   ANALYZE DATA: Help with R | Stata | Excel   WHAT'S NEW? US Politics | Int'l Relations | Law & Courts
   FIND DATA: By Author | Journal | Sites   WHAT'S NEW? US Politics | IR | Law & Courts
Copy HTML to Run R Code Example
About This Page
This page displays HTML code you can use to embed a live demonstration of the R Statistics Program for political science research. These live online examples are easy to use and are great for teaching online classes.
Copy HTML Code for "Descriptive Statistics for Interval-Level Variable" Demo
See This R Demo | See More R Demos
Copy HTML Code for "Descriptive Statistics for Interval-Level Variable" Demo
See This R Demo | See More R Demos
Copy HTML Code for "Descriptive Statistics for Interval-Level Variable" Demo
See This R Demo | See More R Demos
<!-- The Start of describeAgeGSS.txt R Demo Code -->
<!-- Copy and paste this snippet into your web page  -->
<!-- Modify border, width, and height attributes of the iframe as necessary -->

<iframe border=0 width=100% height=1200 src="https://rdrr.io/snippets/embed/?code=%23+Descriptive+Statistics+for+Interval-Level+Variable%0A%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%0Alibrary%28%22poliscidata%22%29%0A%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%0A%0A%23+The+values+of+interval-level+variables+are+numbers+that+really+mean+something.%0A%23+The+age+variable+in+the+GSS+dataset+is+a+good+example+of+a+interval-level+variable.%0A%23+The+gss%24age+variable+records+the+age+in+years+of+respondents.++Makes+sense%2C+right%3F%0A%23+We+have+the+most+tools+for+describing+interval-level+variables.%0Acat%28%22Summary+Statistics%3A%5Cn%22%29%0Adescribe%28gss%24age%2C+weights%3Dgss%24wtss%29%0A%0A%23+Describing+interval+variables+is+something+of+an+art.++%0A%23+Our+goal+should+be+to+show+the+appropriate+level+of+detail.++%0Awtd.hist%28gss%24age%2C+weight%3Dgss%24wtss%2C+main%3D%22This+level+of+detail+%285+year+groups%29+is+better.%22%2C+col%3D%22gray80%22%29%0A%0Acat%28%22Frequency+Distribution+Table%3A%3A%5Cn%22%29%0Afreq%28gss%24age%2C+gss%24wtss%2C+main%3D%22Whoa.+We+probably+do+not+need+to+plot+each+age+separately%21%22%29%0A"></iframe>

<!-- End of describeAgeGSS.txt R Demo Code -->