knitr - r Calculating Cronbach Alpha and representing it with Knit -


i calculating cronbach's alpha 2 tables using method:

alphaa <- cronbach.alpha(dadosa[,-1:-5]) alphab <- cronbach.alpha(dadosb[,-1:-5]) 

yes, removing first 5 columns data before calculating. working nice , when calling them in console getting:

>alphaa cronbach's alpha 'dadosa[, -1:-5]' data-set  items: 53 sample units: 62 alpha: 0.897  >alphab cronbach's alpha 'dadosb[, -1:-5]' data-set  items: 53 sample units: 71 alpha: 0.871 

which expected result! doubt how insert alpha value in knit, not data. have tried doing this:

`r alphaa` `r alphab` 

but following result:

0.8971043, 62, 53, false, dadosa[, -1:-5]  0.8708021, 71, 53, false, dadosb[, -1:-5] 

any clues on should change in order alpha value? mean, 0.8971043 when call alphaa , 0.8708021 when call alphab.

found answer!

as value first element, needed use this:

`r alphaa[1]`  `r alphab[1]` 

Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -