Description Usage Arguments Value Examples
View source: R/parameter_estimation_functions.R
Get the parameter values using the provided statistical regression methods
1 2 3 | get_parameter_estimated_regression(param_to_be_estimated, dataset, method,
indep_var, info_get_method, info_distribution, covariates = NA,
strategycol = NA, strategyname = NA, timevar_survival = NA)
|
param_to_be_estimated |
parameter of interest |
dataset |
data set to be provided |
method |
methd of estimation (for example, linear, logistic regression etc) |
indep_var |
the independent variable (column name in data file) |
info_get_method |
additional information on methods e.g Kaplan-Meier ot hazard |
info_distribution |
distribution name eg. for logistic regression -binomial |
covariates |
list of covariates - calculations to be done before passing |
strategycol |
column name containing arm details, default is NA |
strategyname |
name of the arm, default is NA |
timevar_survival |
time variable for survival analysis, default is NA |
the results of the regression analysis
1 2 3 | mydata <- read.csv("https://stats.idre.ucla.edu/stat/data/binary.csv")
results_logit <- get_parameter_estimated_regression("admit", mydata,
"logistic regression", "gre", NA,"binomial", c("gpa", "factor(rank)"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.