R example using statchek
by Nivaldo
HTML
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<script src="//cdn.opencpu.org/opencpu-0.4.js"></script>
<h1>Example using statcheck</h1>
<pre><code id="output"></code></pre>
JavaScript
// can use more than one package
ocpu.seturl("//public.opencpu.org/ocpu/library/base/R")
ocpu.seturl("//public.opencpu.org/ocpu/library/statcheck/R")
var txt = "Learners face the daunting challenge of detecting structure amid wide variation in their environments. Exemplars of concepts, events, words, and grammatical patterns vary in many ways that obscure a clear delineation of structure. For example, items within an object category can differ in color and size, repetitions of events vary in actors and locations, and tokens of words differ across sentential contexts and superficial voice characteristics. Surface form variation occurs when the perceptual details of elements in the input are not identical even when they belong to the same category. To identify underlying structure, learners must process surface variation in ways that permit the detection of what is consistent, relevant, and meaningful across exemplars. The present research investigates how variation in voice—a salient source of variability in natural language environments—affects infants’ detection of statistical regularities in fluent speech, which is a fundamental process in language acquisition. The experiments also address an outstanding issue in language acquisition research: whether statistical learning mechanisms can meet the kinds of processing demands that infants face in their natural language environments. The demands of coping with surface variation are illustrated by infants’ early attempts to recognize words. Each time a word is produced, its acoustic form differs depending on who says the word, the speaker’s affect, speaking style, and speaking rate, as well as the sentence context. Importantly, infants do not begin learning language with a priori knowledge of which sound variants refer to a common concept and which variants distinguish between words. Early in development, infants have substantial difficulty recognizing words across surface variation. For example, in a word...