Problem 2. You will need to use the CSV file house.csv for this problem, which can...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Problem 2. You will need to use the CSV file "house.csv" for this problem, which can be found on Canvas. 1. First download this data set to your computer, then use read.csv to import it into R. Make sure assign it to something for further usage. The first row should be imported as variable names. 2. Report the number of rows and the number of columns of the data set. What are the names of variables, i.e., column names? 3. Report the means of the last 8 columns. That means for each column of the last 8 columns, you find its mean (Hint: Indering the submatrix first then use function colMeans.) 1 4. Report the standard deviation of first 10 rows. (use function sd compute standard deviations.) 5. What is the class of the variable 'chas' (use function class)? Use function as.factor to change 'chas' to the class factor. Problem 2. You will need to use the CSV file "house.csv" for this problem, which can be found on Canvas. 1. First download this data set to your computer, then use read.csv to import it into R. Make sure assign it to something for further usage. The first row should be imported as variable names. 2. Report the number of rows and the number of columns of the data set. What are the names of variables, i.e., column names? 3. Report the means of the last 8 columns. That means for each column of the last 8 columns, you find its mean (Hint: Indering the submatrix first then use function colMeans.) 1 4. Report the standard deviation of first 10 rows. (use function sd compute standard deviations.) 5. What is the class of the variable 'chas' (use function class)? Use function as.factor to change 'chas' to the class factor.
Expert Answer:
Answer rating: 100% (QA)
Answer 1 To import the CSV file housecsv into R I used the readcsv function I assigned ... View the full answer
Related Book For
Fundamentals of Financial Accounting
ISBN: 978-0078025914
5th edition
Authors: Fred Phillips, Robert Libby, Patricia Libby
Posted Date:
Students also viewed these mathematics questions
-
You believe you will need to have saved $500,000 by the time you retire in 40 years in order to live comfortably. You also believe that you will inherit $100,000 in 10 years. If the interest rate is...
-
You will need to research various brainstorming techniques. Although brainstorming is typically performed in group sessions, you will be applying the same techniques to analyze your problem. Select a...
-
Use Books-A-Millions financial statements, which can be found in Appendix A at the back of the book, to answer the following questions: 1. What types of debt does Books-A-Million have? Where did you...
-
Refer to the information in Exercise 16-11. Using the direct method, prepare the statement of cash flows for the year ended June 30, 2017. IKIBAN INC. Comparatlve Balance Sheets June 30, 2017 and...
-
Cowboy Construction Co. specializes in building replicas of historic houses. Tom Askew, president of Cowboy Construction, is considering the purchase of various items of equipment on July 1, 2006,...
-
From the perspective of a bank loan officer, discuss why the statement of cash flows may or may not be more important than the statement of income when you are analyzing a company that is applying...
-
Find the real and imaginary parts of the functions: a. \(f(z)=z^{3}\). b. \(f(z)=\sinh (z)\). c. \(f(z)=\cos \bar{z}\).
-
Gitano Products operates a job-order costing system and applies overhead cost to jobs on the basis of direct materials used in production (not on the basis of raw materials purchased). All materials...
-
There is a belief that behavioral biases would not matter for stock mispricing if rational arbitrageurs could fully exploit the mistakes of behavioral investors. If this is incorrect, and...
-
1. How would you describe Danielle Oviedo's approach to leadership? 2. What would you predict about Danielle's future success as a leader? Why? 3. In what ways, if any, does Danielle function as a...
-
Bronze Inc. recently has had financial difficulty and is being liquidated. The firm has a liquidation value of P2,000,000 - P800,000 from the fixed assets that served as collateral for the mortgage...
-
Forced labor is immoral and should never be condoned. What other issues should companies be aware of that could exist in their supply chains? What are some examples of these issues and the companies...
-
Thermal Performance of Graphene Nanoplatelets (GNP) Nanofluids in Circular-Tube vs. Rectangular-Tube Heat Exchangers: A Simulation Approach Problem Background Elaborate on the application, and what...
-
Suppose that the random variables X1, ..., Xn form a random sample of size n from the uniform distribution on the interval [0, 1]. Let Y = min{X1, ..., Xn}, and let Yn = max{X1, ..., Xn}. Find E(Y)...
-
Use ideal gas law to calculate the molar density (or molar concentration) of methane at reference conditions. For the second reaction in Table 4.1 "an intro to combustion" Turns/Haworth, determine...
-
A thin plate is placed inside a rigid in-plane constraint with initial gaps as shown. No constraint is placed on the plate along the z-axis. The plate is made of steel with an elastic modulus E =...
-
2. 3. 5. Testing 6. Training, rollout, and support Using the cost model you created in Task 1, prepare a cost baseline by allocating the costs by WBS for each month of the project. Assume that you...
-
Cleaning Service Company's Trial Balance on December 31, 2020 is as follows: Account name Debit Credit Cash 700 Supplies Pre-paid insurance Pre-paid office rent Equipment Accumulated depreciation -...
-
PC Mall, Inc., is a direct marketer of computer hardware, software, peripherals, and electronics. In a recent annual report, the company reported that its revenue is recognized upon receipt of the...
-
Face 2 Face Corporation reports 100 outstanding shares, 500 authorized shares, and 50 shares of treasury stock. How many shares are issued?
-
Refer to E11-12. Prepare the journal entry to record (a) the small 12 percent stock dividend and, alternatively, (b) the large 100 percent stock dividend mentioned in requirement 2 of E11-12. Refer...
-
1.5 MNEs and LIBOR. Most MNEs either take loans in eurocurrencies or issue eurobonds with a floating coupon rate tied to the LIBOR. Explain how MNES were affected by the LIBOR scandal.
-
1.4 Fragility of the Global Financial Marketplace. How has the global financial crisis exposed the fragility of assets and institutions of the global system?
-
1.7 Limitations of Comparative Advantage. The key to understanding most theories is what they say and what they don't. Name four or five key limitations to the theory of comparative advantage.
Study smarter with the SolutionInn App