Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A private landowner has contracted with a logging company to harvest trees from their property. A condition of the contract is that following the harvest,

A private landowner has contracted with a logging company to harvest trees from their property. A condition of the contract is that following the harvest, the remaining trees on the property must be composed of the following percentages:

12% big leaf maple, 40% Douglas-fir, 8% red alder, 28% western hemlock, 12% western redcedar

Following the harvest, the private landowner claims that the logging company has violated the terms of the contract. The private landowner conducts a survey on the trees remaining after harvest; these data are in the treesoil.csv dataset under the column Tree.

(1b) Determine how many trees of each species were observed in the survey. To do this, create a frequency table of the tree species data using the table() command. Paste in your frequency table below.

(1c) Use your observed frequencies for each tree species from (1b) to test Ho from (1a) using a Chi-squared goodness-of-fit test:

I have successfully made a frequency table.

I am trying to write R/Studio code for a chisquare test given this framework: chisq.test(dataset, p = c(expected frequencies))

I tried entering the following code but keep getting an error message Error in sum(x) : invalid 'type' (character) of argument

chisq.test(tree.data$Tree, p=c(.12, .4, .08, .28, .12))

chisq.test(tree.data$Tree, p=c(.12, .4, .08, .28, .12))

I have attached the dataset-the file was in .csv format but I don't believe that I can upload a file.

Tree Soil Douglas firclay Douglas firclay red alder silt western hemlocksand western redcedarclay Douglas firloam western redcedarloam red alder clay big leaf maplesand western hemlockloam western hemlockloam big leaf maplesilt Douglas firclay Douglas firclay Douglas firclay Douglas firclay Douglas firloam western hemlocksilt red alder silt red alder loam Douglas firclay Douglas firsand Douglas firsand Douglas firsand western hemlocksand Douglas firsand Douglas firclay big leaf maplesand Douglas firsand Douglas firsand Douglas firclay big leaf mapleclay western hemlockloam red alder sand western redcedarsilt Douglas firloam western hemlockloam western hemlockclay Douglas firclay Douglas firclay Douglas firloam Douglas firloam Douglas firsilt western hemlockloam Douglas firclay western redcedarclay western hemlocksand western redcedarloam western hemlocksilt big leaf mapleloam Douglas firclay Douglas firclay Douglas firsand big leaf maplesilt Douglas firsilt Douglas firclay Douglas firsilt western hemlocksilt western hemlockclay western hemlockloam red alder clay Douglas firclay Douglas firsilt western hemlockloam western hemlocksilt Douglas firclay Douglas firsand Douglas firloam Douglas firsilt western redcedarclay big leaf mapleclay Douglas firsand big leaf maplesilt Douglas firsilt western hemlocksilt Douglas firloam red alder loam Douglas firloam Douglas firsilt Douglas firclay red alder clay Douglas firsilt western hemlockloam western hemlockloam western hemlockloam Douglas firclay Douglas firsilt Douglas firsilt western hemlocksilt western hemlockclay Douglas firsand western hemlocksand western redcedarclay western hemlocksand Douglas firsilt Douglas firloam western hemlockclay big leaf maplesand western hemlockloam red alder loam western hemlockloam Douglas firloam big leaf mapleclay Douglas firclay big leaf maplesilt Douglas firloam western redcedarsand western hemlockloam western hemlockclay Douglas firloam western hemlockclay Douglas firclay Douglas firloam western hemlockclay western hemlockclay Douglas firloam Douglas firloam western hemlockloam big leaf mapleloam western hemlocksilt western hemlockclay Douglas firsilt Douglas firsand western hemlockclay western hemlocksilt Douglas firloam western hemlocksilt western hemlocksilt western redcedarloam western hemlocksand Douglas firsand Douglas firclay big leaf mapleclay Douglas firclay western redcedarclay Douglas firloam Douglas firsilt Douglas firclay western hemlockloam Douglas firloam western hemlockloam Douglas firsand Douglas firsilt western hemlockloam western redcedarsand western hemlocksilt Douglas firloam western redcedarclay Douglas firloam western hemlocksand western hemlocksilt western redcedarloam Douglas firsilt Douglas firloam western hemlocksand Douglas firsilt big leaf mapleloam big leaf mapleloam western hemlockclay Douglas firsilt Douglas firsilt Douglas firclay Douglas firsand Douglas firloam western hemlockloam red alder clay western hemlocksand Douglas firsand western hemlocksilt western redcedarloam Douglas firclay Douglas firsand Douglas firsilt big leaf mapleloam western hemlocksand big leaf maplesand western hemlocksand western hemlockclay Douglas firsilt western redcedarsilt western hemlockclay western redcedarclay Douglas firclay big leaf mapleclay Douglas firloam red alder sand Douglas firloam western redcedarclay western hemlockclay western hemlockclay Douglas firclay western hemlockclay Douglas firloam Douglas firsilt Douglas firsilt Douglas firsand Douglas firsilt Douglas firsand Douglas firsand western hemlockloam Douglas firclay Douglas firloam Douglas firloam western redcedarsand big leaf maplesand Douglas firsilt western hemlockloam Douglas firsand Douglas firsand western redcedarclay Douglas firclay western hemlockloam western hemlockloam Douglas firloam Douglas firclay Douglas firclay western hemlocksilt Douglas firsilt Douglas firsilt western hemlocksand Douglas firsand western hemlockloam big leaf mapleclay Douglas firsilt big leaf maplesilt Douglas firsilt Douglas firloam western hemlockloam big leaf mapleclay western hemlocksilt big leaf maplesand Douglas firsand Douglas firclay Douglas firclay western hemlocksilt western hemlocksand Douglas firloam Douglas firloam Douglas firloam Douglas firsand Douglas firsand big leaf mapleclay Douglas firclay western hemlocksilt western redcedarloam western hemlocksilt Douglas firloam red alder loam western hemlockloam big leaf maplesand Douglas firsand Douglas firloam Douglas firloam western redcedarsilt Douglas firsilt Douglas firloam Douglas firsand western hemlockloam western hemlockclay Douglas firloam big leaf maplesand Douglas firsilt western redcedarloam western hemlockloam Douglas firsilt western hemlockloam western hemlocksand Douglas firsand Douglas firloam Douglas firloam Douglas firclay Douglas firsand western redcedarsilt Douglas firsand western redcedarclay Douglas firsilt western hemlocksilt western redcedarsand western hemlocksand Douglas firsand Douglas firloam western hemlocksilt Douglas firclay western hemlocksand big leaf mapleclay western hemlockloam western hemlockloam Douglas firsand Douglas firsand western hemlockloam Douglas firclay western hemlocksand western hemlockloam red alder sand big leaf maplesilt western redcedarloam Douglas firclay Douglas firsilt Douglas firclay western hemlocksilt western redcedarsand western hemlocksilt western hemlocksand big leaf maplesand Douglas firloam western redcedarsand red alder loam Douglas firsilt Douglas firsand Douglas firloam western hemlocksand Douglas firsand western hemlocksilt Douglas firsand Douglas firloam red alder clay Douglas firloam Douglas firclay western hemlockclay western hemlocksilt western hemlockclay Douglas firsilt big leaf mapleclay western hemlockloam Douglas firsilt Douglas firloam western hemlockclay western redcedarclay Douglas firloam Douglas firsand Douglas firloam western hemlocksilt western hemlocksilt Douglas firsilt Douglas firsand Douglas firsilt Douglas firsand Douglas firsand western hemlockclay big leaf mapleclay western hemlocksand western hemlockloam Douglas firsand Douglas firloam Douglas firsand red alder clay Douglas firsilt Douglas firloam red alder loam western hemlocksilt Douglas firsand Douglas firloam western hemlockloam western hemlocksand big leaf mapleloam western hemlockloam western hemlocksilt Douglas firsilt western hemlockloam Douglas firsand western hemlockloam western redcedarloam Douglas firsand western hemlockloam Douglas firclay Douglas firclay Douglas firsand western hemlocksand Douglas firclay western hemlockloam western redcedarloam big leaf maplesand Douglas firsand western hemlockloam Douglas firsilt western hemlockloam Douglas firclay big leaf mapleclay western hemlocksand Douglas firsand western hemlockloam Douglas firsand Douglas firloam western hemlockclay western hemlockloam Douglas firclay Douglas firsilt big leaf maplesilt Douglas firsand western hemlockclay western hemlockloam western hemlockclay western hemlockclay Douglas firloam western hemlocksand Douglas firsilt Douglas firclay Douglas firclay big leaf maplesilt western hemlocksand Douglas firloam Douglas firsilt Douglas firloam Douglas firsand western hemlocksand western redcedarsand Douglas firsand western hemlocksand Douglas firsilt Douglas firsand western hemlockloam red alder silt red alder silt western redcedarsand Douglas firsilt Douglas firloam western hemlocksand big leaf maplesand Douglas firloam Douglas firloam Douglas firloam western redcedarclay Douglas firloam red alder silt Douglas firsand western redcedarsand Douglas firsand Douglas firsand western hemlockloam Douglas firclay western hemlocksilt western hemlocksand western hemlocksilt big leaf mapleclay Douglas firsand Douglas firsand Douglas firloam western hemlocksand western hemlocksand big leaf mapleloam western redcedarclay red alder loam big leaf maplesilt western hemlockclay big leaf maplesand Douglas firclay western hemlockclay western redcedarclay Douglas firsand Douglas firsand western hemlockloam Douglas firclay western hemlockclay western redcedarclay Douglas firloam western hemlockloam Douglas firsand western redcedarclay western redcedarsand western hemlockclay western redcedarsand western redcedarsilt Douglas firloam western hemlock

image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions