Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.385.913 Times

Create Unique Interaction Variables 1.0

  Date Added: September 17, 2013  |  Visits: 384

Create Unique Interaction Variables

Report Broken Link
Printer Friendly Version


Product Homepage
Download (39 downloads)



function data_set = create_interaction_variables(data_set,vars,range_nways,separator,max_varname_length)% create_interaction_variables%% for Matlab R13+% version 1.1 (April 2012)% (c) Brian Weidenbaum% website: http://www.BrianWeidenbaum.com/.%%% OUTPUT: your dataset (or a dataset based on your matrix), updated with new, aptly-named *unique* interaction variables,% ranging from at least 2 to any number the user specifies%% INPUTS (** = OPTIONAL)% input name: (input datatype/s) -- description%% data_set: (dataset OR matrix) -- the data you want to alter%% **vars: (cell array of chars/numbers, OR vector of numbers, OR 'ALL') --% default: 'ALL'% the names of the variables you want to interact; alternatively, the column numbers of the variables you want to interact% OR, you can just say 'ALL' to include all variables automatically%% **range_nways (vector OR 'MAX') --% default: 2% the range of numbers of variables to include in the interaction terms generated by this function% alternatively, just type 'MAX' to use 2 variables to the maximum possible number of vars%% **separator (char) --% default: '_'% the separator string you want to use to divide the% variable names that contributed to a new interaction variable. Default% is '_'. E.g., by default, an interaction between Var1 and Var2 will be% named 'Var1_Var2'.%% **max_varname_length (number) --% default: 63% the maximum length of the newly created interaction terms' variable names.% Any dynamically generated variable names (e.g. 'Var1_Var2') that exceed this number will be excluded from the new dataset.% You should set max_varname_length according to the database you plan to use with your data--% e.g., if you only want to use this data in MATLAB, you should set max_varname_length=63 (the maximum length supported by the dataset class,% but if you plan to export your data to Oracle, you should set it to around 30%%%% EXAMPLES%% You have a dataset with 3 variables: a, b, and c.% You want to create interaction terms, up to 3 ways, for all of your variables.% You type:% new_dataset = create_interaction_variables(old_dataset,'all','max');% new_dataset will contain:% a.*b, named 'a_b'% a.*c, named 'a_c'% b.*c, named 'b_c'% and a.*b.*c, named 'a_b_c',% plus all original variables.% It will NOT contain b.*a, c.*a, etc because these are not unique combos.%% You have a dataset with 3 variables: a, b, and c.% You want to create interaction terms, up to 2 ways, only for columns 2 and 3.% You type:% new_dataset = create_interaction_variables(old_dataset,[2 3],2);% new_dataset will contain only b.*c,% plus all original variables.%% You have a dataset with 3 variables: a, b, and c.% You want to create interaction terms, up to 2 ways, only for 'a' and 'c'.% You type:% new_dataset = create_interaction_variables(old_dataset,{'a','c'},2);% new_dataset will contain only a.*c,% plus all original variables.%% You have a dataset with 3 variables: a, b, and c.% You want to create interaction terms, ONLY 3 ways, only for all vars.% You type:% new_dataset = create_interaction_variables(old_dataset,'all',3);% new_dataset will contain only a .* b .* c,% plus all original variables.

Requirements: No special requirements
Platforms: Matlab
Keyword: Created Default Dynamically Exceed Length Max Varname Length Named Newly Var Var
Users rating: 0/10

License: Shareware Size: 10 KB
USER REVIEWS
More Reviews or Write Review


CREATE UNIQUE INTERACTION VARIABLES RELATED
Development Tools  -  Display Formatted Text Table of Data 1.0
displaytable: prints formatted matrix of numerical data with headingsSyntaxdisplaytable(data, colheadings, wid, fms, rowheadings, fid, colsep, rowending)Input:data: a matrix or cell array, containing the data to be put in the table.If a matrix the...
10 KB  
Modules  -  Profile Complete Percent 6.x-2.1
Profile Complete Percent (PCP) is a dependency of the Profile module in core. It allows administrators who have access to use the module to tag created profile fields as items needed for a user to be 100% complete when filling out their profile...
10 KB  
Network & Internet  -  django-cherry for Linux 0.1.2
django-cherry is a Django app which makes it easy to run your Django project under the [CherryPy WSGI server][cp-wsgi]. The main command is defined using [django-boss][djboss], a simple but powerful framework for creating and running Django...
10.24 KB  
Network & Internet  -  PhpBibliography 0.4
PhpBibliography allows you to publish your bibliography online (and to edit it via web). PhpBibliography is implemented in Php and uses MySql. These instructions assume you already have a working web server/php/MySql system. 1. Create a...
41.98 KB  
Utilities  -  FakeNES 0.5.7
FakeNES project is a portable, Open Source NES emulator which is written mostly in pure C, while using the Allegro library for multi-platform capabilities. Currently supported systems are Windows 9x/2000/Me/XP, 32-bit DOS, Linux, FreeBSD, QNX,...
296.96 KB  
Modules  -  Upload element 6.x-1.2
#D7CX: The managed_file element provide by core File module has the same functionality and this module will be discontinued. Migration is as easy as turning on the File module and changing your API slightly as both are based on Drupals {file(s)}...
20.48 KB  
Multimedia & Graphics  -  Greeked Text 1.0.0
When creating wireframes, it's often useful to suggest the presence of text without using actual words, which can distract the viewer from the overall layout. Even "lorem ipsum" dummy text requires the selection of a typeface and size, which may...
194.56 KB  
Programming  -  django-geoportail 0.4.5
django-geoportail is a Django app that adds maps and photos from the French National Geographic Institute to GeoDjango. Geodjango with the maps and photos from the French National Geographic Institute. * Installation: see...
30.72 KB  
Games  -  Scorched3D 41 Beta
Scorched 3D project is a game based loosely (or actually quite heavily now) on the classic DOS game Scorched Earth "The Mother Of All Games". Scorched 3D adds amongst other new features a 3D island environment and LAN and internet play. Scorched...
55 MB  
Libraries  -  Rails History Plugin 0.2
Rails History Plugin is a Ruby on Rails plugin that stores user actions (i.e. URLs that the user has recently visited). It avoids storage of POST and AJAX requests, and it provides a manual way to specify which actions not to store....
11.26 KB  
NEW DOWNLOADS IN SCRIPTS, DEVELOPMENT TOOLS
Scripts  -  Freelancer Script 5.05
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Post projects. Featured projects. Private projects. Sealed projects. Edit/delete projects. Select freelancers....
5.49 MB  
Scripts  -  B2B Script 4.20
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Sign-up Account (Registration of account). Lead generation tools (for the sellers). Email verification to...
5.49 MB  
Scripts  -  B2C Script 5.06
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). The script comes with totally editable site colors, icons and graphics Multilevel categories allows extensive browsing Admin can change Category ordering or...
5.49 MB  
Scripts  -  Social Networking Script 2.86
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Registration with name, email, password, date of birth etc. User can add multiple school, college, university with start...
5.49 MB  
Scripts  -  Business Networking Script 8.04
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Ajax based interface. Profile creation. Different types of profile. Profile for jobseekers, employers and employed...
5.49 MB  
Development Tools  -  Aml2CHM 3.50
Those who use the popular Aml Pages text editor might be looking out for a way of generating help files from their text and notes. Aml2CHM is a plug-in that was developed to offer people a quick and efficient way of converting Aml Pages documents...
549.99 KB  
Development Tools  -  VMP Viewer 1.0
This is a very rudimentary tool to visualize the VMP files generated by BrainVoyager. Useful to share files with people who do not have BV.
10 KB  
Development Tools  -  Sending reports and timestamped file by emailing 1.0
main executing reference usage:[1] usage_send_mail.mIllustrates email sending with multiple separate files or single timestamped tar file. Attachment failure is properly handled, with continuation of report emailing without the attachment.[2]...
768 KB  
Development Tools  -  IrisMVC 2.0 rc1
IrisMVC is an OOP PHP framework that developers can use as a strong and secure foundation to build on various web applications following the Model-View-Controller (MVC) pattern. It provides the basic functionality developers need, without...
51.2 KB  
Development Tools  -  7-Zip for Script 4.42
7-Zip is a file archiver with a high compression ratio.Features:- High compression ratio in new 7z format with LZMA compression- Supported formats:- Packing / unpacking: 7z, ZIP, GZIP, BZIP2 and TAR- Unpacking only: RAR, CAB, ISO, ARJ, LZH, CHM,...
624.64 KB