I am using the phbirths data in the faraway package in R. I want to: 1) create a...

80.2K

Verified Solution

Question

Basic Math

Iam using the phbirths data in the faraway package in R.

I want to:
1) create a plot of the birth weight vs the gestational ageand I want to colour code the points based on the mothers smokingstatus to determine whether or not smoking affects thebabies.
2) fit a simple model (one regression line) along with boththe main effects (parallel lines) and interaction (non parallellines) ANCOVA model to the data and find out which model ispreferred.

what coding would I use for both of these questions? pleasehelp, will thumbs up! ?

Thanks.

Answer & Explanation Solved by verified expert
4.0 Ratings (438 Votes)
    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students