Input R code
rm(list=ls())
grade=c(63,74,79,83,86,91)
liner_wt=c(1,2,3,4,5,6)
trap_wt=c(1,2,3,3,2,1)
sum_lwt=0
sum_trap=0
sum_stand=0
for(i in 1:6){
sum_lwt=sum_lwt+liner_wt[i]*grade[i]
liner_mean=sum_lwt/6
sum_trap=sum_trap+trap_wt[i]*grade[i]
trap_mean=sum_trap/6
sum_stand=sum_stand+grade[i]
stand_mean=sum_stand/6
}
OUTPUT-
> sum_lwt
[1] 1756
> liner_mean
[1] 292.6667
> sum_trap
[1] 960
> trap_mean
[1] 160
> sum_stand
[1] 476
> stand_mean
[1] 79.33333
#option-B
Use R Program to write R codes to compute the standard mean, and (two weighted averages):...
Write a R code for the following Using the SATGPA data set in Stat2Data package. Test by using α= .05. 1) Create the following three variables and then print out all the six variables. Create a new variable “SAT”, which is the sum of MathSAT and VerbalSAT. Create second new variable “SATLevel”, and assign the value of “SATLevel” as 1 when SAT<=1100, 2 when 11001300. Create third new variable “GPALevel” and assign the value of “GPALevel” as 1 when GPA<=2.8,...
The following ANOVA model is for a multiple regression model with two independent variables: Degrees of Sum of Mean Source Freedom Squares Squares F Regression 2 60 Error 18 120 Total 20 180 Determine the Regression Mean Square (MSR): Determine the Mean Square Error (MSE): Compute the overall Fstat test statistic. Is the Fstat significant at the 0.05 level? A linear regression was run on auto sales relative to consumer income. The Regression Sum of Squares (SSR) was 360 and...
i need help on question 3 to 22 please. Midterm ex review. MATH 101 Use the following information to answer the next four exercises. The midterm grades on a chemistry exam, graded on a scale of 0 to 100, were: 62, 64, 65, 65, 68, 70, 72, 72, 74, 75, 75, 75, 76,78, 78, 81, 82, 83, 84, 85, 87, 88, 92, 95, 98, 98, 100, 100,740 1. Do you see any outliers in this data? If so, how would...
summarizr the followung info and write them in your own words and break them into different key points. 6.5 Metering Chamber: 6.5.1 The minimum size of the metering box is governed by the metering area required to obtain a representative test area for the specimen (see 7.2) and for maintenance of reasonable test accuracy. For example, for specimens incorporating air spaces or stud spaces, the metering area shall span an integral number of spaces (see 5.5). The depth of...
summatize the following info and break them into differeng key points. write them in yojr own words apartus 6.1 Introduction—The design of a successful hot box appa- ratus is influenced by many factors. Before beginning the design of an apparatus meeting this standard, the designer shall review the discussion on the limitations and accuracy, Section 13, discussions of the energy flows in a hot box, Annex A2, the metering box wall loss flow, Annex A3, and flanking loss, Annex...