Question

In: Statistics and Probability

1. Create the following items in R. Show the R output provided by each object. b...

1. Create the following items in R. Show the R output provided by each object.

b The matrix     1 2 3 4 5 6 7 8 9 10 11 12     stored as object mat1.

c The matrix     1 5 9 2 6 10 3 7 11 4 8 12     stored as object mat2.

d A data frame datfr such that the vector 1 2 3 4 5 6 is in the first column, green green red blue yellow red is in the second column, and 4 7 2 8 2 10 is in the third column.

e A list objs consisting of the objects in parts a, b, c, and d, in that order.

Solutions

Expert Solution

b)

-----------------------------------------------------------------------------------------------------------------------------------------

c)

---------------------------------------------------------------------------------------------------------------------------------------------

d)

-----------------------------------------------------------------------------------------------------------------------------------------------

e)

As part a is not provided I am only enlisting b,c and d

-------------------------------------------------------------------------------------------------------------------------------------------


Related Solutions

1. Let a < b. (a) Show that R[a, b] is uncountable
1. Let a < b. (a) Show that R[a, b] is uncountable
Create a program that will prompt me for each of the following items: 1. Date of...
Create a program that will prompt me for each of the following items: 1. Date of Birth 2. Typical wake up time 3. Next Dentist Appointment. ( Date and Time) Create a Date structure and a method to load and return the date structure. Create a Time-of-day structure and a method to load and return the Time-of-day structure. Create a DateTime structure that includes the Date and Time-Of-Day structure. The Date structure should include year, month, day. The Time-of-day structure...
1.- Show that (R, τs) is connected. Also show that (a, b) is connected, with the...
1.- Show that (R, τs) is connected. Also show that (a, b) is connected, with the subspace topology given by τs. 2. Let f: X → Y continue. We say that f is open if it sends open of X in open of Y. Show that the canonical projection ρi: X1 × X2 → Xi (x1, x2) −→ xi It is continuous and open, for i = 1, 2, where (X1, τ1) and (X2, τ2) are two topological spaces and...
PLZ USE ECLIPSE JAVA and show output with explanation The object of this assignment is to...
PLZ USE ECLIPSE JAVA and show output with explanation The object of this assignment is to construct a mini-banking system that helps us manage banking data. Notice that you can copy and paste your code from previous assignments. This assignment asks you to allow read from/write to file, as well as search and sorting algorithm. The object of this assignment is to construct a mini-banking system that helps us manage banking data. This assignment asks you to allow read from/write...
Suppose A and B are closed subsets of R. Show that A ∩ B and A...
Suppose A and B are closed subsets of R. Show that A ∩ B and A ∪ B are closed.
Please use R or Rstudio for this exercise and show everything, including the R output. Pay...
Please use R or Rstudio for this exercise and show everything, including the R output. Pay attention in everything in Bold, please. " The quality of Pinot Noir wine is thought to be related to the properties of clarity, aroma, body, flavor, and oakiness. Data for 38 wines are given in stat5_prob1. (a) Fit a multiple linear regression model relating wine quality to these regressors. (b) Construct the ANOVA table. (c) Test for the significance of the regression in a...
show that for some ring R, the equality a2−b2=(a−b)(a+b) holds ∀a,b∈R if and only if R is commutative.
 show that for some ring R, the equality a^2−b^2=(a−b)(a+b) holds ∀a,b∈R if and only if R is commutative.
For each pair a, b with a ∈ R − {0} and b ∈ R, define...
For each pair a, b with a ∈ R − {0} and b ∈ R, define a function fa,b : R → R by fa,b(x) = ax + b for each x ∈ R. (a) Prove that for each a ∈ R − {0} and each b ∈ R, the function fa,b is a bijection. (b) Let F = {fa,b | a ∈ R − {0}, b ∈ R}. Prove that the set F with the operation of composition of...
Create a table in which you show the following: For each variable below : 1. Identify...
Create a table in which you show the following: For each variable below : 1. Identify the variable as either categorical, numerical discrete, or numerical continuous. 2.Identify the level of measurement of each variable (nominal, ordinal, interval, or ratio) Variables a.) Length of Stay b.) ICU Days c.) Age (Years) d.) Sex (M/F/U) e.) Principal Payer f.) Total Charges g.) Drug Charges h.) Lab Charges i.) Imaging Charges j.) RT Charges
4. Show that the set A = {fm,b : R → R | m does not...
4. Show that the set A = {fm,b : R → R | m does not equal 0 and fm,b(x) = mx + b, m, b ∈ R} forms a group under composition of functions. (The set A is called the set of affine functions from R to R.)
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT