mirror of
https://github.com/agdamsbo/FreesearchR.git
synced 2025-09-12 01:49:39 +02:00
400 lines
18 KiB
HTML
400 lines
18 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>FreesearchR • FreesearchR</title>
|
||
<!-- favicons --><link rel="icon" type="image/png" sizes="96x96" href="../favicon-96x96.png">
|
||
<link rel="icon" type="”image/svg+xml”" href="../favicon.svg">
|
||
<link rel="apple-touch-icon" sizes="180x180" href="../apple-touch-icon.png">
|
||
<link rel="icon" sizes="any" href="../favicon.ico">
|
||
<link rel="manifest" href="../site.webmanifest">
|
||
<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/Montserrat-0.4.10/font.css" rel="stylesheet">
|
||
<link href="../deps/Public_Sans-0.4.10/font.css" rel="stylesheet">
|
||
<link href="../deps/font-awesome-6.5.2/css/all.min.css" rel="stylesheet">
|
||
<link href="../deps/font-awesome-6.5.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><link href="../extra.css" rel="stylesheet">
|
||
<meta property="og:title" content="FreesearchR">
|
||
<script defer src="https://stats.freesearchr.org/script.js" data-website-id="85bfd1e8-2cbe-4a4a-aa34-1dfb2960905b"></script>
|
||
</head>
|
||
<body>
|
||
<a href="#main" class="visually-hidden-focusable">Skip to contents</a>
|
||
|
||
|
||
<nav class="navbar navbar-expand-lg fixed-top bg-primary" data-bs-theme="dark" aria-label="Site navigation"><div class="container">
|
||
|
||
<a class="navbar-brand me-2" href="../index.html">FreesearchR</a>
|
||
|
||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">25.8.3</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="../articles/FreesearchR.html">Get started</a></li>
|
||
<li class="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/data-types.html">Data types</a></li>
|
||
<li><a class="dropdown-item" href="../articles/missingness.html">Missingness in data</a></li>
|
||
<li><a class="dropdown-item" href="../articles/session.html">Session info</a></li>
|
||
<li><a class="dropdown-item" href="../articles/visuals.html">On visuals</a></li>
|
||
</ul>
|
||
</li>
|
||
<li class="nav-item"><a class="nav-link" href="../ROADMAP.html">Roadmap</a></li>
|
||
<li class="nav-item"><a class="nav-link" href="../QA.html">Q&A</a></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/FreesearchR/" aria-label="GitHub"><span class="fa fab fa-github fa-lg"></span></a></li>
|
||
</ul>
|
||
</div>
|
||
|
||
|
||
</div>
|
||
</nav><div class="container template-article">
|
||
|
||
|
||
|
||
|
||
<div class="row">
|
||
<main id="main" class="col-md-9"><div class="page-header">
|
||
<img src="../logo.png" class="logo" alt=""><h1>FreesearchR</h1>
|
||
|
||
|
||
<small class="dont-index">Source: <a href="https://github.com/agdamsbo/FreesearchR/blob/main/vignettes/FreesearchR.Rmd" class="external-link"><code>vignettes/FreesearchR.Rmd</code></a></small>
|
||
<div class="d-none name"><code>FreesearchR.Rmd</code></div>
|
||
</div>
|
||
|
||
|
||
|
||
<div class="section level2">
|
||
<h2 id="getting-started-with-freesearchr">Getting started with <strong><em>FreesearchR</em></strong><a class="anchor" aria-label="anchor" href="#getting-started-with-freesearchr"></a>
|
||
</h2>
|
||
<p>Below is a simple walk-trough and basic descriptions on the different
|
||
features of the <strong><em>FreesearchR</em></strong> app.</p>
|
||
<div class="section level3">
|
||
<h3 id="launching">Launching<a class="anchor" aria-label="anchor" href="#launching"></a>
|
||
</h3>
|
||
<p>The easiest way to get started is to launch <a href="https://app.freesearchr.org/" class="external-link">the onlie version of the app (click
|
||
this link)</a>. Please be aware not to upload sensitive data in this
|
||
version as data security can not be guaranteed in this online
|
||
environment. The app can easily be run from <em>R</em> on your own
|
||
computer by running the code below (<a href="https://agdamsbo.github.io/FreesearchR/#run-locally-on-your-own-machine">read
|
||
more on running locally here</a>):</p>
|
||
<div class="sourceCode" id="cb1"><pre class="downlit sourceCode r">
|
||
<code class="sourceCode R"><span><span class="kw"><a href="https://rdrr.io/r/base/library.html" class="external-link">require</a></span><span class="op">(</span><span class="st"><a href="https://pak.r-lib.org/" class="external-link">"pak"</a></span><span class="op">)</span></span>
|
||
<span><span class="fu">pak</span><span class="fu">::</span><span class="fu"><a href="https://pak.r-lib.org/reference/pak.html" class="external-link">pak</a></span><span class="op">(</span><span class="st">"agdamsbo/FreesearchR"</span><span class="op">)</span></span>
|
||
<span><span class="kw"><a href="https://rdrr.io/r/base/library.html" class="external-link">library</a></span><span class="op">(</span><span class="va"><a href="https://github.com/agdamsbo/FreesearchR" class="external-link">FreesearchR</a></span><span class="op">)</span></span>
|
||
<span><span class="fu">FreesearchR</span><span class="fu">::</span><span class="fu"><a href="../reference/launch_FreesearchR.html">launch_FreesearchR</a></span><span class="op">(</span><span class="op">)</span></span></code></pre></div>
|
||
<p>As a small note, a standalone Windows app version is on the drawing
|
||
board as well, but no time frame is currently available.</p>
|
||
</div>
|
||
<div class="section level3">
|
||
<h3 id="get-started">Get started<a class="anchor" aria-label="anchor" href="#get-started"></a>
|
||
</h3>
|
||
<p>Once in the app, get started by loading your data. You have three
|
||
options available for importing data: file upload, REDCap server export
|
||
and local or sample data.</p>
|
||
<p>After choosing a data source nad importing data, you can preview the
|
||
basic data structure and missing observations, set a threshold to filter
|
||
data by completeness and further manually specify variables to include
|
||
for analyses.</p>
|
||
<div class="section level4">
|
||
<h4 id="file-upload">File upload<a class="anchor" aria-label="anchor" href="#file-upload"></a>
|
||
</h4>
|
||
<p>Several data file formats are supported for easy import (csv, txt,
|
||
xls(x), ods, rds, dta). If importing workbooks (xls(x) or ods), you are
|
||
prompted to specify sheet(s) to import. If choosing multiple sheets,
|
||
these are automatically merged by common variable(s), so please make
|
||
sure that key/ID variables are correctly named identically.</p>
|
||
</div>
|
||
<div class="section level4">
|
||
<h4 id="redcap-server-export">REDCap server export<a class="anchor" aria-label="anchor" href="#redcap-server-export"></a>
|
||
</h4>
|
||
<p>Export data directly from a REDCap server. You need to first generate
|
||
an API-token (<a href="https://confluence.research.cchmc.org/pages/viewpage.action?pageId=50987698" class="external-link">see
|
||
these instruction</a>) in REDCap. Make sure you have the necessary
|
||
rights to do so.</p>
|
||
<p>Please don’t store the API-key on your device unless encrypted or in
|
||
a keyring, as this may compromise data safety. Log in to your REDCap
|
||
server and retrieve the token when needed.</p>
|
||
<p>Type the correct web address of your REDCap server.</p>
|
||
<p>The module will validate the information and you can click
|
||
“Connect”.</p>
|
||
<p>This will unfold options to preview your data dictionary (the main
|
||
database metadata), choose fields/variables to download as well as
|
||
filtering options.</p>
|
||
</div>
|
||
<div class="section level4">
|
||
<h4 id="local-or-sample-data">Local or sample data<a class="anchor" aria-label="anchor" href="#local-or-sample-data"></a>
|
||
</h4>
|
||
<p>When opening the online hosted app, you can load some sample data to
|
||
try out the app. When running the app locally from <em>R</em> on your
|
||
own computer, you will find all data frames loaded in your environment
|
||
here. This extends the possible uses of this app to allow for quick and
|
||
easy data insights and code generation.</p>
|
||
</div>
|
||
</div>
|
||
<div class="section level3">
|
||
<h3 id="prepare">Prepare<a class="anchor" aria-label="anchor" href="#prepare"></a>
|
||
</h3>
|
||
<p>This is the panel to prepare data for evaluation and analyses and get
|
||
a good overview of your data, check data is classed and formatted
|
||
correctly, perform simple modifications and filter data.</p>
|
||
<div class="section level4">
|
||
<h4 id="summary">Summary<a class="anchor" aria-label="anchor" href="#summary"></a>
|
||
</h4>
|
||
<p>Here, the data variables can be inspected with a simple visualisation
|
||
and a few key measures. Also, data filtering is available at two
|
||
levels:</p>
|
||
<ul>
|
||
<li><p>Data type filtering allows to filter by variable <a href="https://agdamsbo.github.io/FreesearchR/articles/data-types.html">data
|
||
type</a></p></li>
|
||
<li><p>Observations level filtering allow to filter data by
|
||
variable</p></li>
|
||
</ul>
|
||
</div>
|
||
<div class="section level4">
|
||
<h4 id="modify">Modify<a class="anchor" aria-label="anchor" href="#modify"></a>
|
||
</h4>
|
||
<p>Re-class, rename, and relabel variables. Subset data, create new
|
||
variables and reorder factor levels. Also, compare the modified dataset
|
||
to the original and restore the original data.</p>
|
||
</div>
|
||
</div>
|
||
<div class="section level3">
|
||
<h3 id="evaluate">Evaluate<a class="anchor" aria-label="anchor" href="#evaluate"></a>
|
||
</h3>
|
||
<p>This panel allows for basic data evaluation.</p>
|
||
<div class="section level4">
|
||
<h4 id="characteristics">Characteristics<a class="anchor" aria-label="anchor" href="#characteristics"></a>
|
||
</h4>
|
||
<p>Create a classical baseline characteristics table with optional data
|
||
stratification and comparisons.</p>
|
||
</div>
|
||
<div class="section level4">
|
||
<h4 id="correlation-matrix">Correlation matrix<a class="anchor" aria-label="anchor" href="#correlation-matrix"></a>
|
||
</h4>
|
||
<p>Visualise variable correlations and get suggestions to exclude highly
|
||
correlated variables.</p>
|
||
</div>
|
||
</div>
|
||
<div class="section level3">
|
||
<h3 id="visuals">Visuals<a class="anchor" aria-label="anchor" href="#visuals"></a>
|
||
</h3>
|
||
<p>There are a number of plotting options to visualise different aspects
|
||
of the data.</p>
|
||
<p>Below are the available plot types listed.</p>
|
||
<table class="table">
|
||
<colgroup>
|
||
<col width="7%">
|
||
<col width="14%">
|
||
<col width="77%">
|
||
</colgroup>
|
||
<thead><tr class="header">
|
||
<th align="left">Data type</th>
|
||
<th align="left">Plot type</th>
|
||
<th align="left">Description</th>
|
||
</tr></thead>
|
||
<tbody>
|
||
<tr class="odd">
|
||
<td align="left">continuous</td>
|
||
<td align="left">Violin plot</td>
|
||
<td align="left">A modern alternative to the classic boxplot to
|
||
visualise data distribution</td>
|
||
</tr>
|
||
<tr class="even">
|
||
<td align="left">continuous</td>
|
||
<td align="left">Scatter plot</td>
|
||
<td align="left">A classic way of showing the association between to
|
||
variables</td>
|
||
</tr>
|
||
<tr class="odd">
|
||
<td align="left">continuous</td>
|
||
<td align="left">Box plot</td>
|
||
<td align="left">A classic way to plot data distribution by groups</td>
|
||
</tr>
|
||
<tr class="even">
|
||
<td align="left">dichotomous</td>
|
||
<td align="left">Stacked horizontal bars</td>
|
||
<td align="left">A classical way of visualising the distribution of an
|
||
ordinal scale like the modified Ranking Scale and known as Grotta
|
||
bars</td>
|
||
</tr>
|
||
<tr class="odd">
|
||
<td align="left">dichotomous</td>
|
||
<td align="left">Violin plot</td>
|
||
<td align="left">A modern alternative to the classic boxplot to
|
||
visualise data distribution</td>
|
||
</tr>
|
||
<tr class="even">
|
||
<td align="left">dichotomous</td>
|
||
<td align="left">Sankey plot</td>
|
||
<td align="left">A way of visualising change between groups</td>
|
||
</tr>
|
||
<tr class="odd">
|
||
<td align="left">dichotomous</td>
|
||
<td align="left">Box plot</td>
|
||
<td align="left">A classic way to plot data distribution by groups</td>
|
||
</tr>
|
||
<tr class="even">
|
||
<td align="left">dichotomous</td>
|
||
<td align="left">Euler diagram</td>
|
||
<td align="left">Generate area-proportional Euler diagrams to display
|
||
set relationships</td>
|
||
</tr>
|
||
<tr class="odd">
|
||
<td align="left">categorical</td>
|
||
<td align="left">Stacked horizontal bars</td>
|
||
<td align="left">A classical way of visualising the distribution of an
|
||
ordinal scale like the modified Ranking Scale and known as Grotta
|
||
bars</td>
|
||
</tr>
|
||
<tr class="even">
|
||
<td align="left">categorical</td>
|
||
<td align="left">Violin plot</td>
|
||
<td align="left">A modern alternative to the classic boxplot to
|
||
visualise data distribution</td>
|
||
</tr>
|
||
<tr class="odd">
|
||
<td align="left">categorical</td>
|
||
<td align="left">Sankey plot</td>
|
||
<td align="left">A way of visualising change between groups</td>
|
||
</tr>
|
||
<tr class="even">
|
||
<td align="left">categorical</td>
|
||
<td align="left">Box plot</td>
|
||
<td align="left">A classic way to plot data distribution by groups</td>
|
||
</tr>
|
||
<tr class="odd">
|
||
<td align="left">categorical</td>
|
||
<td align="left">Euler diagram</td>
|
||
<td align="left">Generate area-proportional Euler diagrams to display
|
||
set relationships</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
<p>Export the plots directly from the sidebar with easily adjusted plot
|
||
dimensions for your next publication.</p>
|
||
<p>Also copy the code to generate the plot in your own R-environment and
|
||
fine tune all the small details.</p>
|
||
</div>
|
||
<div class="section level3">
|
||
<h3 id="regression">Regression<a class="anchor" aria-label="anchor" href="#regression"></a>
|
||
</h3>
|
||
<p>This section is only intended for very simple explorative analyses
|
||
and as a proof-of-concept for now. If you are doing complex regression
|
||
analyses you should probably just write the code yourself.</p>
|
||
<p>Below are the available regression types listed.</p>
|
||
<table class="table">
|
||
<colgroup>
|
||
<col width="16%">
|
||
<col width="46%">
|
||
<col width="15%">
|
||
<col width="21%">
|
||
</colgroup>
|
||
<thead><tr class="header">
|
||
<th align="left">Data type</th>
|
||
<th align="left">Regression model</th>
|
||
<th align="left">Function</th>
|
||
<th align="left">Study design</th>
|
||
</tr></thead>
|
||
<tbody>
|
||
<tr class="odd">
|
||
<td align="left">continuous</td>
|
||
<td align="left">Linear regression model</td>
|
||
<td align="left">stats::lm</td>
|
||
<td align="left">cross-sectional</td>
|
||
</tr>
|
||
<tr class="even">
|
||
<td align="left">dichotomous</td>
|
||
<td align="left">Logistic regression model</td>
|
||
<td align="left">stats::glm</td>
|
||
<td align="left">cross-sectional</td>
|
||
</tr>
|
||
<tr class="odd">
|
||
<td align="left">categorical</td>
|
||
<td align="left">Ordinal logistic regression model</td>
|
||
<td align="left">MASS::polr</td>
|
||
<td align="left">cross-sectional</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
<div class="section level4">
|
||
<h4 id="table">Table<a class="anchor" aria-label="anchor" href="#table"></a>
|
||
</h4>
|
||
<p>Generate simple regression models and get the results in a nice
|
||
table. This will also be included in the exported report.</p>
|
||
<p>This will generate a combined table with both univariate regression
|
||
model results for each included variable and a multivariate model with
|
||
all variables included for explorative analyses.</p>
|
||
</div>
|
||
<div class="section level4">
|
||
<h4 id="plots">Plots<a class="anchor" aria-label="anchor" href="#plots"></a>
|
||
</h4>
|
||
<p>Plot the coefficients from the regression models in a forest plot.
|
||
Choose which model(s) to include.</p>
|
||
</div>
|
||
<div class="section level4">
|
||
<h4 id="model-checks">Model checks<a class="anchor" aria-label="anchor" href="#model-checks"></a>
|
||
</h4>
|
||
<p>Check model assumptions visually. Supported checks can be chosen.</p>
|
||
</div>
|
||
</div>
|
||
<div class="section level3">
|
||
<h3 id="download">Download<a class="anchor" aria-label="anchor" href="#download"></a>
|
||
</h3>
|
||
<div class="section level4">
|
||
<h4 id="report">Report<a class="anchor" aria-label="anchor" href="#report"></a>
|
||
</h4>
|
||
<p>Download a nice report with baseline characteristics and regression
|
||
model results. Choose between MS Word or LibreOffice format.</p>
|
||
</div>
|
||
<div class="section level4">
|
||
<h4 id="data">Data<a class="anchor" aria-label="anchor" href="#data"></a>
|
||
</h4>
|
||
<p>Export the modified dataset in different formats.</p>
|
||
</div>
|
||
<div class="section level4">
|
||
<h4 id="code">Code<a class="anchor" aria-label="anchor" href="#code"></a>
|
||
</h4>
|
||
<p>See all the code snippets from the different steps in your data
|
||
evaluation.</p>
|
||
</div>
|
||
</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>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.1.3.</p>
|
||
</div>
|
||
|
||
<div class="pkgdown-footer-right">
|
||
<p>Developed by Andreas Gammelgaard Damsbo. Provided without <strong>any warranty</strong>.</p>
|
||
</div>
|
||
|
||
</footer>
|
||
</div>
|
||
|
||
|
||
|
||
|
||
|
||
</body>
|
||
</html>
|