Question: # Assuming your data is in a data frame named df # Replace 'Age' with the actual column name in your dataset age _ distribution

# Assuming your data is in a data frame named df
# Replace 'Age' with the actual column name in your dataset
age_distribution <- table(df$Age)/ sum(table(df$Age))
# Display the result for the specified age range
specified_ages <- c(25,26,27,28,29,30,31,32,33,34)
marginal_distribution <- age_distribution[as.character(specified_ages)]
print(marginal_distribution)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!