STA 240 Take Home Midterm Questions and Answers
Due: in class on 23 November.
Question: Can we work in groups or discuss the midterm?
Answer: Ha! Work by yourself. You can discuss general
statistical concepts and ideas, but not any details involving the
midterm.
Question:
#1.) do you mean in general? As far as not necessarily what
trap or level on the trap.
Answer:
For question 1 of dataset 1, I'm looking for the total number
of bugs trapped on a typical day - You could answer this by
looking at counts separately for height or not. It's up
to you. You may like to report this in bugs per trap since
this can give an idea of what additional traps will add
to the experiment.
Question:
I'm having trouble changing number/numeric data from "double" to "factor"
on the exam's data sets. After highlighting the appropriate column of
data imported into splus, I choose 'data', then 'change data type', then
I choose 'factor'...but when I double-check the column, splus tells me
that it's still 'double'. *Argh!* This method worked fine for me for
homework 7 (as usual, I'm using the student version of splus on a home
computer).
Answer:
Here's a way to get around that. Lets assume we have
read the bug.asc data set into a dataframe called bug.
To make a factor version of trap type:
> bug$trap2_as.character(bug$trap)
If that is no good:
do this:
> bug$trap2_as.factor(as.vector(t(matrix(1:30,ncol=2,nrow=30))))
The column trap2 will for sure be a factor.