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 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.2.tar.gz (6.2 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.2-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: omars_analysis-0.1.2.tar.gz
  • Upload date:
  • Size: 6.2 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.2.tar.gz
Algorithm Hash digest
SHA256 6e4e14342f18acd60ddd4aa2d33707f8b575cbb8f1b26570865b3e85d2c80464
MD5 ca1e756f3e841fab6d65a8e7444b80ef
BLAKE2b-256 6b0f6a1d71fc0d52dd2615e7674e0fc91a529ee92bdf7ca3ca8cfa839d08d530

See more details on using hashes here.

File details

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

File metadata

  • Download URL: omars_analysis-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 7.2 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1c32317f7865eedcd623165000100e5f11a95f7b833129bc71a6d44b6fb75e07
MD5 8bcd84893d68b2aae4afd141da3e5910
BLAKE2b-256 422072f62eab504fdca0e0c095eeb7afff29dd18a26fc7f3489b1a249fbca47f

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