A clinical trial is rua to study the efficacy daarw aativiral spray that clairas
ID: 3178219 • Letter: A
Question
A clinical trial is rua to study the efficacy daarw aativiral spray that clairas to reduce the frequency of a specifik type viral iulectiou, vitli a immuno-compromised population. Individuals who were at years age, their to agree to participate in the stud. below years age were signed into the study by consent of their parents. The tady is a Each individual who was randomly awigned to either receive the new antiviral maual peay, or to ure a placebo Gaartire) pray that low identical to the Rew antiviral geay. Neither the subject (labelled ldiridualia the data set). the subject's own knows which manal spray the subject is Eal care doctor would be the physician who would liagaase a viral The following waiahol are awailalir 128 Individual: The ID nude each individual the study to receive: Received antiviral aaral gray, ie w randomly igned to receive the antiviral spraythat claims to the of pedsic type of viral infrction. Placebo, ie, individual was raadoerly a to receive a placebo (inactive naral sweay) that ideatial to the al Vitamina ladicates whether or at the had aa ageappropriate daily multivitamin in addition to their raadoruly assigurd aasal Ye individual had a daily No-individual did not have a ultivitaaria Age in years the individual at the staat of the study. Height: Height in the individual at the of the study. Weight: Weight is ig the idividual at the start the study. Soy: ladicates whether the individual at least ouce every day. Ye individual draai silk at every day. 2 No-individual draak milk l thua daily. Indicate whether the individual juice at laat every day. 2 No-individual draak juice le ferguratly tuua everyday. Gender: 1 Male, 2 City: Code indicating in which of iti thr Days: The total of day whid the individual was obeerved. Nualaf: Total of relevant viral daga ed each individual within the ohervation period this individual, where period lngth equal the variable Day. A relevaat viral i a that is carand by the prisic type of targeted by the mew autiviral saalExplanation / Answer
The data image file is not clear and it is generally prefered if they are given in csv or text format. Anyways, let us assume that the file is named "myglmdata.csv" with variable names as indicated in your image and description. Furthermore, we assume that the myglmdata.csv file is present in the current working directory. We then proceed with the R program as follows:
mydata <- read.csv("myglmdata.csv",header=TRUE)
mydata$NasalSpray <- as.factor(mydata$NasalSpray)
mydata$Vitamin <- as.factor(mydata$Vitamin)
mydata$Soy <- as.factor(mydata$Soy)
mydata$Fruit <- as.factor(mydata$Fruit)
mydata$Gender <- as.factor(mydata$Gender)
glm_fit <- glm(NumInf~NasalSpray+Vitamin+Age+Height+Weight+Soy+Fruit+Gender+Days,data=mydata,family=poisson())
summary(glm_fit)
This should give you most of your answers.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.