Skip to main content

No project description provided

Project description

Documentation for package omars-analysis

This package has one function 'get_omars_analysis'

First run the following:

from omars_analysis.main import get_omars_analysis

Running the above command will make the function 'get_omars_analysis' available for use.

Function usage

The function requires six inputs:

  • mat

    the first input is the design matrix. The design matrix need not be coded, however it must only consist of continuous variables. The function is meant to be used with designs that have all factors either with two levels or three levels. The design should NOT consist of headers. The design matrix should not consist of second order effects since this will be built internally in the function.

  • cy

    This is the response.

  • qheredity

    This is to specify heredity constraints for quadratic effects. The accepted inputs are 'y' or 'n' ('y'- strong heredity, 'n'- no heredity, 'n'- No heredity). The input must be a string in lowercase.

  • iheredity

    This is to specify heredity constraints for two-factor interaction effects. The accepted inputs are 's', 'w' or 'n' ('s'- strong heredity, 'w'- weak heredity, 'n'- no heredity). The input must be a string in lowercase.

  • effects_to_drop

    This is to specify second order effects that must be excluded from the analysis. The input must be a list of strings. For example: ['1_1', '2_3']. This input specifies that the quadratic effect of the first factor and the interaction effect between factor two and three must be excluded from the second step of the analysis (subset selection).

  • full

    'n' - analysis is performed on the main effects only

    'y' - analysis is performed on the main effects and second order effects.

    The default is set to 'y'

Output

The function will auttomatically print out the following:

  • Initial error degrees of freedom available
  • The initial estimate of the error variance
  • Main effects that are active
  • Updated estimate of the error variance
  • Active interaction effects
  • Active quadratic effects

The function outputs one return value. This value is the p-value from the last failed F-test during the second order effects selection.

Example code

output = get_omars_analysis(mat=design_matrix, cy=response, qheredity='n', iheredity='n', effects_to_drop=[], full='y')

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

omars_analysis-0.1.3.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

omars_analysis-0.1.3-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file omars_analysis-0.1.3.tar.gz.

File metadata

  • Download URL: omars_analysis-0.1.3.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.1 CPython/3.8.10 Linux/4.4.0-19041-Microsoft

File hashes

Hashes for omars_analysis-0.1.3.tar.gz
Algorithm Hash digest
SHA256 afacdb0333ff1db10e07dc83b251008d55935f74b0cd6dcf9585510ee90b5ffa
MD5 edbf694efad395de391f263a4c165b86
BLAKE2b-256 98724ad67ec595c33f38a30532f689b66c977529ca39fbfa44ba182b3fa5eb3b

See more details on using hashes here.

File details

Details for the file omars_analysis-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: omars_analysis-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.1 CPython/3.8.10 Linux/4.4.0-19041-Microsoft

File hashes

Hashes for omars_analysis-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 90de636ced5141ec918f1591cea34ac4151ec501ef88cea4c14ab6e790ee90d4
MD5 2d4e74a252acf0c22e96ecb5b1e95ea9
BLAKE2b-256 40713911f5bd02064c8b083d9e102798c5d33a6b108bb04d95e227c3d7fd3854

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page