/usr/share/gedit/plugins/RCtrl/Wizards/ln.xml is in gedit-r-plugin 0.7.1.1-Gtk3-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | <!-- Define a rwizard -->
<rwizard name="ln" description="Multiple linear regression"
menu="/Regression" icon="ln.png" selectionas="DV">
<about
name="Multiple linear regression"
version="0.1"
copyright="(c) 2010 Dan Dediu"
comments="Multiple linear regression using lm"
license="GLPv3"
website="http://rgedit.sourceforge.net/"
authors="Dan Dediu <ddediu@hotmail.com>"
documenters=""
artists=""
translator_credits=""
logo_icon_name="ln.png"/>
<help rhelp="?lm"/>
<vars>
<!-- Define the variables (placeholders) -->
<!-- This will be a single dialog (screen) in the vertical order given -->
<block title="The DV, IVs and dataset">
<variable name="DV" description="The dependent variable" type="text" default="" required="True" tooltip="Must be numeric or factor"/>
<variable name="IVs" description="The model containing the independent variables" type="text" default="" required="True" tooltip="Describe the full model using <b>+</b> <b>*</b> <b>:</b> <b>I(.)</b> (e.g., <b>x * I(x^2)</b>)."/>
<variable name="dataset" description="The dataset (if any)" type="text" default="NA" required="True" tooltip="NA means that no dataset is defined"/>
</block>
</vars>
<template>
<!-- The actual R code template: only strange thing is the placeholders call using ${PLACEHOLDER_NAME} -->
<!-- and the Python scripts within $[Python ... $] which are evlautated and the result inserted in the R code -->
lm( ${DV} ~ ${IVs} $[Python (', data=${dataset}','')[not ('${dataset}' != 'NA')] $] );
</template>
</rwizard>
|