135k views
1 vote
For your exercise, you are going to find a 90% interval estimate for the average student loan balance for all STA 381 students who have student loans. Start by moving the "Debt" column into a separate vector, omit any NA values and only include values that are greater than 0 as we only want to consider students who have taken out student loans. How many observations are in the new vector (i.e. how many students reported a positive student loan balance)?

1 Answer

4 votes

Final answer:

To find the number of students who have a positive student loan balance, move the 'Debt' column into a separate vector, omit any NA values, and count the number of observations in the new vector.

Step-by-step explanation:

To find the number of students who reported a positive student loan balance, we need to follow the given instructions. We start by moving the 'Debt' column into a separate vector. Then, we omit any NA values and only include values that are greater than 0, as we want to consider only students who have taken out student loans. Finally, we count the number of observations in the new vector, which will give us the number of students who reported a positive student loan balance.

User Ivelina
by
8.2k points