mirror of
https://github.com/agdamsbo/stRoke.git
synced 2024-11-23 13:30:22 +01:00
141 lines
11 KiB
HTML
141 lines
11 KiB
HTML
<!DOCTYPE html>
|
|
<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><title>PASE score calculator — pase_calc • stRoke</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><script src="../deps/jquery-3.6.0/jquery-3.6.0.min.js"></script><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><link href="../deps/bootstrap-5.3.1/bootstrap.min.css" rel="stylesheet"><script src="../deps/bootstrap-5.3.1/bootstrap.bundle.min.js"></script><link href="../deps/font-awesome-6.4.2/css/all.min.css" rel="stylesheet"><link href="../deps/font-awesome-6.4.2/css/v4-shims.min.css" rel="stylesheet"><script src="../deps/headroom-0.11.0/headroom.min.js"></script><script src="../deps/headroom-0.11.0/jQuery.headroom.min.js"></script><script src="../deps/bootstrap-toc-1.0.1/bootstrap-toc.min.js"></script><script src="../deps/clipboard.js-2.0.11/clipboard.min.js"></script><script src="../deps/search-1.0.0/autocomplete.jquery.min.js"></script><script src="../deps/search-1.0.0/fuse.min.js"></script><script src="../deps/search-1.0.0/mark.min.js"></script><!-- pkgdown --><script src="../pkgdown.js"></script><meta property="og:title" content="PASE score calculator — pase_calc"><meta name="description" content="Calculates PASE score from raw questionnaire data."><meta property="og:description" content="Calculates PASE score from raw questionnaire data."><meta property="og:image" content="https://agdamsbo.github.io/stRoke/logo.png"></head><body>
|
|
<a href="#main" class="visually-hidden-focusable">Skip to contents</a>
|
|
|
|
|
|
<nav class="navbar navbar-expand-lg fixed-top bg-light" data-bs-theme="light" aria-label="Site navigation"><div class="container">
|
|
|
|
<a class="navbar-brand me-2" href="../index.html">stRoke</a>
|
|
|
|
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">24.10.1</small>
|
|
|
|
|
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
|
<span class="navbar-toggler-icon"></span>
|
|
</button>
|
|
|
|
<div id="navbar" class="collapse navbar-collapse ms-3">
|
|
<ul class="navbar-nav me-auto"><li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
|
|
<li class="nav-item dropdown">
|
|
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
|
|
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/toolbox.html">Toolbox</a></li>
|
|
</ul></li>
|
|
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>
|
|
</ul><ul class="navbar-nav"><li class="nav-item"><form class="form-inline" role="search">
|
|
<input class="form-control" type="search" name="search-input" id="search-input" autocomplete="off" aria-label="Search site" placeholder="Search for" data-search-index="../search.json"></form></li>
|
|
<li class="nav-item"><a class="external-link nav-link" href="https://github.com/agdamsbo/stRoke/" aria-label="GitHub"><span class="fa fab fa-github fa-lg"></span></a></li>
|
|
</ul></div>
|
|
|
|
|
|
</div>
|
|
</nav><div class="container template-reference-topic">
|
|
<div class="row">
|
|
<main id="main" class="col-md-9"><div class="page-header">
|
|
<img src="../logo.png" class="logo" alt=""><h1>PASE score calculator</h1>
|
|
<small class="dont-index">Source: <a href="https://github.com/agdamsbo/stRoke/blob/v24.10.1/R/pase_calc.R" class="external-link"><code>R/pase_calc.R</code></a></small>
|
|
<div class="d-none name"><code>pase_calc.Rd</code></div>
|
|
</div>
|
|
|
|
<div class="ref-description section level2">
|
|
<p>Calculates PASE score from raw questionnaire data.</p>
|
|
</div>
|
|
|
|
<div class="section level2">
|
|
<h2 id="ref-usage">Usage<a class="anchor" aria-label="anchor" href="#ref-usage"></a></h2>
|
|
<div class="sourceCode"><pre class="sourceCode r"><code><span><span class="fu">pase_calc</span><span class="op">(</span><span class="va">ds</span>, adjust_work <span class="op">=</span> <span class="cn">FALSE</span>, consider.missing <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"Not available"</span><span class="op">)</span><span class="op">)</span></span></code></pre></div>
|
|
</div>
|
|
|
|
<div class="section level2">
|
|
<h2 id="arguments">Arguments<a class="anchor" aria-label="anchor" href="#arguments"></a></h2>
|
|
|
|
|
|
<dl><dt id="arg-ds">ds<a class="anchor" aria-label="anchor" href="#arg-ds"></a></dt>
|
|
<dd><p>data set</p></dd>
|
|
|
|
|
|
<dt id="arg-adjust-work">adjust_work<a class="anchor" aria-label="anchor" href="#arg-adjust-work"></a></dt>
|
|
<dd><p>flag to set whether to include 10b type 1.</p></dd>
|
|
|
|
|
|
<dt id="arg-consider-missing">consider.missing<a class="anchor" aria-label="anchor" href="#arg-consider-missing"></a></dt>
|
|
<dd><p>character vector of values considered missing.
|
|
Default is TRUE.</p></dd>
|
|
|
|
</dl></div>
|
|
<div class="section level2">
|
|
<h2 id="value">Value<a class="anchor" aria-label="anchor" href="#value"></a></h2>
|
|
<p>data.frame</p>
|
|
</div>
|
|
<div class="section level2">
|
|
<h2 id="details">Details<a class="anchor" aria-label="anchor" href="#details"></a></h2>
|
|
<p>Labelling should be as defined by the questionnaire.
|
|
02-06 should start with 0:3, 02a-06b should start with 1:4.</p><div class="section">
|
|
<h3 id="regarding-work-scoring">Regarding work scoring<a class="anchor" aria-label="anchor" href="#regarding-work-scoring"></a></h3>
|
|
|
|
|
|
<p>The score calculation manual available for the PASE questionnaire, all types
|
|
of work should be included. According to the article by
|
|
Washburn RA. et al (1999) sitting work is not included in the item 10 score.
|
|
This differentiation is added with the option to set <code>adjust_work</code> to
|
|
exclude item 10b category 1 work (set <code>TRUE</code>).</p>
|
|
</div>
|
|
|
|
<div class="section">
|
|
<h3 id="regarding-output">Regarding output<a class="anchor" aria-label="anchor" href="#regarding-output"></a></h3>
|
|
|
|
|
|
<p>Output includes sub scores as well as sums, but also to columns assessing data
|
|
quality and completeness. If any field has not been filled, <code>score_incompletes</code>
|
|
will return <code>TRUE</code>. If all measures are missing <code>score_missings</code> is <code>TRUE</code>.
|
|
If <code>adjust_work==TRUE</code>, 10b has to be filled, or <code>score_incompletes</code> will be
|
|
set <code>TRUE</code>.</p>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="section level2">
|
|
<h2 id="ref-examples">Examples<a class="anchor" aria-label="anchor" href="#ref-examples"></a></h2>
|
|
<div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span><span class="fu"><a href="https://rdrr.io/r/base/summary.html" class="external-link">summary</a></span><span class="op">(</span><span class="fu">pase_calc</span><span class="op">(</span><span class="fu">stRoke</span><span class="fu">::</span><span class="va"><a href="pase.html">pase</a></span><span class="op">)</span><span class="op">[</span>,<span class="fl">13</span><span class="op">]</span><span class="op">)</span></span></span>
|
|
<span class="r-out co"><span class="r-pr">#></span> Min. 1st Qu. Median Mean 3rd Qu. Max. </span>
|
|
<span class="r-out co"><span class="r-pr">#></span> 0.0 75.0 128.6 138.9 195.9 574.3 </span>
|
|
<span class="r-in"><span><span class="fu"><a href="https://rdrr.io/r/utils/str.html" class="external-link">str</a></span><span class="op">(</span><span class="fu">pase_calc</span><span class="op">(</span><span class="fu">stRoke</span><span class="fu">::</span><span class="va"><a href="pase.html">pase</a></span><span class="op">)</span><span class="op">)</span></span></span>
|
|
<span class="r-out co"><span class="r-pr">#></span> 'data.frame': 642 obs. of 15 variables:</span>
|
|
<span class="r-out co"><span class="r-pr">#></span> $ pase_score_02 : num 85.8 5 25.8 25.8 2.2 15 0 51.4 51.4 15 ...</span>
|
|
<span class="r-out co"><span class="r-pr">#></span> $ pase_score_03 : num 53.97 0 6.72 2.31 2.31 ...</span>
|
|
<span class="r-out co"><span class="r-pr">#></span> $ pase_score_04 : num 98.67 0 0 0 2.53 ...</span>
|
|
<span class="r-out co"><span class="r-pr">#></span> $ pase_score_05 : num 0 0 0 0 0 0 0 0 0 0 ...</span>
|
|
<span class="r-out co"><span class="r-pr">#></span> $ pase_score_06 : num 0 0 0 0 0 0 0 0 0 0 ...</span>
|
|
<span class="r-out co"><span class="r-pr">#></span> $ pase_score_07 : num 25 25 25 25 25 25 25 25 25 0 ...</span>
|
|
<span class="r-out co"><span class="r-pr">#></span> $ pase_score_08 : num 25 0 25 25 25 0 25 25 25 0 ...</span>
|
|
<span class="r-out co"><span class="r-pr">#></span> $ pase_score_09a : num 0 0 0 0 0 0 0 0 0 0 ...</span>
|
|
<span class="r-out co"><span class="r-pr">#></span> $ pase_score_09b : num 36 0 0 36 0 0 0 0 36 0 ...</span>
|
|
<span class="r-out co"><span class="r-pr">#></span> $ pase_score_09c : num 20 0 20 20 0 0 0 0 20 0 ...</span>
|
|
<span class="r-out co"><span class="r-pr">#></span> $ pase_score_09d : num 0 35 35 35 0 0 0 0 0 0 ...</span>
|
|
<span class="r-out co"><span class="r-pr">#></span> $ pase_score_10 : num 12 NA NA 105 9 NA NA 240 NA NA ...</span>
|
|
<span class="r-out co"><span class="r-pr">#></span> $ pase_score_sum : num 356 65 138 274 66 ...</span>
|
|
<span class="r-out co"><span class="r-pr">#></span> $ pase_score_missings : logi FALSE FALSE FALSE FALSE FALSE FALSE ...</span>
|
|
<span class="r-out co"><span class="r-pr">#></span> $ pase_score_incompletes: logi FALSE FALSE FALSE FALSE FALSE FALSE ...</span>
|
|
<span class="r-in"><span></span></span>
|
|
</code></pre></div>
|
|
</div>
|
|
</main><aside class="col-md-3"><nav id="toc" aria-label="Table of contents"><h2>On this page</h2>
|
|
</nav></aside></div>
|
|
|
|
|
|
<footer><div class="pkgdown-footer-left">
|
|
<p>Developed by Andreas Gammelgaard Damsbo.</p>
|
|
</div>
|
|
|
|
<div class="pkgdown-footer-right">
|
|
<p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.1.1.</p>
|
|
</div>
|
|
|
|
</footer></div>
|
|
|
|
|
|
|
|
|
|
|
|
</body></html>
|
|
|