Академический Документы
Профессиональный Документы
Культура Документы
library(Rcmdr)
female :
0: male
1: female
race :
1: hispanic
2: asian
3: african-amer
4: white
ses :
1: low
2: middle
3: high
schtyp : type of school
1: public
2: private
prog : type of program
1: general
2: academic
3: vocation
read : reading score
write : writing score
math : math score
science : science score
socst : social studies score
Command Line:
hsb
<data.frame(read.csv(file="C:\\Users\\Administrator\\Documents\\Teaching
i3l\\biostatistics\\hsb2.csv"))
Menu in Rcmdr
Graph
T test
Obstetrics Data
A clinical trial is conducted at the gynecology unit of a major hospital to determine the
effectiveness of drug A in preventing premature birth. In the trial, 30 pregnant women are to be
studied, 15 in a treatment group to receive drug A and 15 in a control group to receive a placebo.
The patients are to take a fixed dose of each drug on a one-time-only basis between the 24th and
28th weeks of pregnancy. The patients are assigned to groups based on computer-generated
random numbers, where for every two patients eligible for the study, one is assigned randomly to
the treatment group and the other to the control group. The weights of the babies are those given
below.
Result:
One-Way ANOVA
vocational - academic
vocational - general
general - academic
-10
-8
-6
-4
-2
Linear Function
Linear Regression
Dataset: muscle1.dat
Source: M. Greenwood (1918). "On the Efficiency of Muscular Work,"
Proceedings of the Royal Society of London, Series B, Containing Papers
of a Biological Character, Vol.90, #627, pp.199-214
(Originally from Glazebrook and Dye, vol.87, p.96 (1914))
Description: Measurements of Heat Production (calories) at various
Body Masses (kgs) and Work levels (Calories/hour) on a stationary bike.
Regression Analysis
Heat = a +b * worklevel