Description Usage Arguments Value Examples
plot the partial log likelihood function in the case of one dimension in the linear part
1 2 | f_plot_linERR_ef(object, formula, data, id_name, dose_name, time_name,
covars_names, lag, exclusion_done = F)
|
object |
an rERR class object |
formula |
Surv(entry_time,exit_time,outcome)~loglin(loglin_var1,..,loglin_varn)+ |
data |
data set returned from f_to_model_data |
id_name |
name of variable containing the names of subjects |
dose_name |
name of variable containing the doses at each time |
time_name |
name of the time variable |
covars_names |
a character vector with the names of the variables used as covariates in the fomrula (adjustments and stratification) |
lag |
latency period |
exclusion_done |
a logical indicating wheather the exclusion is already done or not |
rERR object with the estimation
1 2 3 4 5 6 7 8 9 10 | # set the formulas for the models
formula1 <- Surv(entry_age,exit_age,outcome) ~ lin(dose_cum) + strata(sex)
# fit the model
fit1 <- f_fit_linERR_ef(formula1,data=cohort_ef,id_name="id",dose_name="dose",
time_name="age",covars_names=c("sex"),lag=2,exclusion_done=TRUE)
# plot the partial loglikelihood function
f_plot_linERR_ef(fit1,formula1,data=cohort_ef,id_name="id",dose_name="dose",
time_name="age",covars_names=c("sex"),lag=2,exclusion_done=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.