User Tools

Site Tools


public:t-701-rem4:lab

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
public:t-701-rem4:lab [2007/10/01 14:40] – created helgipublic:t-701-rem4:lab [2024/04/29 13:33] (current) – external edit 127.0.0.1
Line 1: Line 1:
  
 +See Myschool for original script (uncorrected)
 +
 +The following R code should be copied task by task (i.e. comment and code) and exectued in R. Its purpose is to show a simple prototype for an action, you should think about it, understand and try some variations.
 +
 +<code bash>
 # T-701-REM 4  # T-701-REM 4 
 # 2007-10-01 # 2007-10-01
Line 34: Line 39:
 c( mean(cm)+qt(0.025, 37)*stderr, mean(cm)+qt(0.975, 37)*stderr) c( mean(cm)+qt(0.025, 37)*stderr, mean(cm)+qt(0.975, 37)*stderr)
  
-# Try several variations of conf.level, including 0.2659205 (the p-value)+# Try several variations of conf.level,  
 +including 1-0.2659205 (Note: 1 minus the p-value, corrected 2007-10-06)
 # ############################ # ############################
  
 # Compare heights of men and women (to see how t.test works) # Compare heights of men and women (to see how t.test works)
 detach(men) detach(men)
 +rm(stderr, tvalue) # some cleanup (added 2007-10-06)
 attach(haed) attach(haed)
 # Test if the diff is 0 (reason for the name Null Hypothesis!) # Test if the diff is 0 (reason for the name Null Hypothesis!)
Line 77: Line 84:
 # Exercise: # Exercise:
 # Try to find out if the point (mean(cm), mean(kg)) lies on the line # Try to find out if the point (mean(cm), mean(kg)) lies on the line
- +</code>
- +
- +
- +
  
  
  
/var/www/cadia.ru.is/wiki/data/attic/public/t-701-rem4/lab.1191249603.txt.gz · Last modified: 2024/04/29 13:32 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki