hippodata$GMFM.E.Post1[hippodata$GMFM.E.Post>0]="greaterthanzero" hippodata$GMFM.E.Post1[hippodata$GMFM.E.Post<=0]="zero" c. #Cross-tabulatethesenewvariables.First,theattachcommandhelpsto callthenewgeneratedvariablesforuse. Tablecommandhelpsto tabulatethevariables attach(hippodata) ##Thefollowingobjectsaremaskedfromhippodata(pos= 3): ## ##Age.Group,ECAB.Post,ECAB.Pre,GMFM.A.Post,GMFM.A.Pre, ##GMFM.B.Post,GMFM.B.Pre,GMFM.C.Post,GMFM.C.Pre,GMFM.D.Post, ##GMFM.D.Pre,GMFM.E.Post,GMFM.E.Pre,GMFM.TOTAL.Post, ##GMFM.TOTAL.Pre,Participant,Previous.Time,Severity,Type table(GMFM.E.Pre1,GMFM.E.Post1) ##GMFM.E.Post1 ##GMFM.E.Pre1greaterthanzerozero ##greaterthanzero150 ##zero214 In both variables, many values were found to be greater than zero (15).In both variables,14 value were zero. #Assingp tothetableandgettingtheproportionsforeach p<-table(GMFM.E.Pre1,GMFM.E.Post1) prop.table(p) ##GMFM.E.Post1 ##GMFM.E.Pre1greaterthanzerozero ##greaterthanzero0.483870970.00000000 ##zero0.064516130.45161290 Checking the column proportions, this would be 48% and 45% respectively. Question 4 a #Createa newvariablewhichisthedifferencebetweeneachchild’s post-studyECABscoreandtheirpre-studyECABscore. #creationofECAB.Pd1 hippodata$ECAB.Pd1<-hippodata$ECAB.Post-hippodata$ECAB.Pre attach(hippodata)#callsthenewvariablesforanalysis
##Thefollowingobjectsaremaskedfromhippodata(pos= 3): ## ##Age.Group,ECAB.Post,ECAB.Pre,GMFM.A.Post,GMFM.A.Pre, ##GMFM.B.Post,GMFM.B.Pre,GMFM.C.Post,GMFM.C.Pre,GMFM.D.Post, ##GMFM.D.Pre,GMFM.E.Post,GMFM.E.Post1,GMFM.E.Pre,GMFM.E.Pre1, ##GMFM.TOTAL.Post,GMFM.TOTAL.Pre,Participant,Previous.Time, ##Severity,Type ##Thefollowingobjectsaremaskedfromhippodata(pos= 4): ## ##Age.Group,ECAB.Post,ECAB.Pre,GMFM.A.Post,GMFM.A.Pre, ##GMFM.B.Post,GMFM.B.Pre,GMFM.C.Post,GMFM.C.Pre,GMFM.D.Post, ##GMFM.D.Pre,GMFM.E.Post,GMFM.E.Pre,GMFM.TOTAL.Post, ##GMFM.TOTAL.Pre,Participant,Previous.Time,Severity,Type b. #Createa tableofsummarystatistics(mean,standarddeviation, median,minimumandmaximum)forthisvariableby CPSeverity.Whatdo youconclude? #usingthedescribeBycommandtogetsummarystats.pergroup describeBy(ECAB.Pd1,Severity) ## ##Descriptivestatisticsby group ##group:mild ##varsn meansdmediantrimmedmadminmaxrangeskew kurtosisse ##X119 8.899.1388.8911.86026.526.50.58- 1.063.04 ##------------------------------------------------------------ ##group:moderate ##varsn meansd mediantrimmedmadminmaxrangeskewkurtosis se ##X117 6.072.656.071.484 10.56.50.72-1.44 0.98 ##------------------------------------------------------------ ##group:severe ##varsn meansdmediantrimmedmadminmaxrangeskew kurtosisse ##X1115 4.674.0954.353.71013.513.50.72- 0.481.06 The difference between each child’s post-study ECAB score and their pre-study ECAB score was highest in mild severity followed by moderate and severe respectively. c.
#usingthedescribeBycommandtogetsummarystats.pergroup describeBy(ECAB.Pd1,Age.Group) ## ##Descriptivestatisticsby group ##group:4to7 ##varsn meansd mediantrimmedmadminmaxrangeskewkurtosis se ##X1117 4.62444.372.22013130.72-0.49 0.97 ##------------------------------------------------------------ ##group:8to12 ##varsn meansdmediantrimmedmadminmaxrangeskew kurtosisse ##X1114 8.147.2977.296.3026.526.51.03 0.391.95 The difference between each child’s post-study ECAB score and their pre-study ECAB score was highest in 8 to 12 years age group(M=8.14) Question 5 a. #usingthedescribeBycommandtogetsummarystats.pergroup describeBy(GMFM.TOTAL.Pre,Previous.Time) ## ##Descriptivestatisticsby group ##group:>6m ##varsnmeansd mediantrimmedmadminmaxrangeskew kurtosisse ##X1111 32.5727.3527.330.3725.354.480.676.20.63 -1.348.24 ##------------------------------------------------------------ ##group:3-6m ##varsnmeansd mediantrimmedmadminmaxrangeskew kurtosisse ##X1120 48.6930.5246.148.9639.511.8893.891.92-0.07 -1.466.82 The analysis show that children with more previous time in ‘hippotherapy’ were found to have a lesser pre-study GMFM Total score on average (M=32.57)than children with less previous time in ‘hippotherapy’(M=48.69) B #Cross tab between the two variables
Paraphrase This Document
Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
table(Type,Previous.Time) ##Previous.Time ##Type>6m3-6m ##Dip112 ##Hemi23 ##Quadri85 #Jassignsthecrosstabtableandtheprop.tablegetsproportions j<-table(Type,Previous.Time) prop.table(j) ##Previous.Time ##Type>6m3-6m ##Dip0.032258060.38709677 ##Hemi0.064516130.09677419 ##Quadri0.258064520.16129032 Yes. The Quadri (quadriplegia)were found to be more likelyto have had more than 6 months’ previous hippotherapy.compared to the rest.Also,the Dip (diplegia) were found to be more likelyto have had more3 to 6 months’ previous hippotherapy than the rest