The choice of statistical method for analyzing your data depends on several factors, including the scale of measurement of the independent variables, the distribution of the data, and the research question(s) you aim to address.
Given that your dependent variable is binary (presence or absence of disease D), a common choice of analysis would be logistic regression. Logistic regression is used to model the probability of a binary outcome based on one or more predictor variables. It can handle both categorical and continuous independent variables, and it does not assume a linear relationship between the independent variables and the dependent variable.
In your dataset, you have:
- A categorical independent variable: Whether the patient was born through cesarean section (binary: yes/no).
- Two continuous independent variables: Age of patient's mother at birth, and age of patient's father at birth.
Logistic regression would allow you to estimate the odds ratios for each of the independent variables in relation to the dependent variable, adjusting for the other variables in the model. This way, you can assess the impact of each factor on the probability of disease presence while controlling for the other factors.
Here's a general step-by-step approach for your analysis:
-
Data Preparation: Ensure that your data is cleaned and coded appropriately. For example, the binary variable for cesarean section should be coded as 0 (no) and 1 (yes).
-
Exploratory Data Analysis: Conduct an initial exploration of your data to check for any anomalies, outliers, or patterns. This might include summary statistics, histograms, or box plots for the continuous variables and frequency tables for the categorical variable.
-
Check Assumptions: Before running logistic regression, you need to check for multicollinearity among independent variables, and if there are enough events per variable (EPV) to ensure reliable results.
-
Model Fitting: Fit the logistic regression model using your data. Depending on the software you are using, the function or procedure might be called "logistic regression" or something similar.
-
Model Diagnostics: Evaluate the goodness-of-fit of your model, the significance of the coefficients, and whether the model assumptions are met.
-
Interpret Results: Interpret the coefficients in terms of odds ratios, and report confidence intervals and p-values. This will give you insight into the strength and significance of the relationship between each independent variable and the presence of disease D.
-
Sensitivity Analysis (optional): Perform any additional analysis, such as stratifying by different variables or testing different model specifications, to check the robustness of your findings.
Remember to report your methods and findings clearly, including any limitations of your analysis. If you are not familiar with conducting logistic regression or interpreting the results, you may want to consult a statistician or use statistical software with built-in guidance and documentation.