get_parameter_estimated_regression: Get the parameter values using the provided statistical...

Description Usage Arguments Value Examples

View source: R/parameter_estimation_functions.R

Description

Get the parameter values using the provided statistical regression methods

Usage

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)

Arguments

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

Value

the results of the regression analysis

Examples

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)"))

sheejamk/MarkovModel documentation built on Jan. 23, 2020, 2:44 a.m.