Displaying 2 results from an estimated 2 matches for "ncovs".
Did you mean:
ncols
2012 Jun 16
2
How to specify "newdata" in a Cox-Modell with a time dependent interaction term?
...tart, :
Variablenl?ngen sind unterschiedlich (gefunden f?r '(id)')
--> failure, length of variables are different.
#-----------------------------------------------------------------
fold <- function(data, time, event, cov,
cov.names=paste('covariate', '.', 1:ncovs, sep=""),
suffix='.time', cov.times=0:ncov, common.times=TRUE, lag=0){
vlag <- function(x, lag) c(rep(NA, lag), x[1:(length(x)-lag)])
xlag <- function(x, lag) apply(as.matrix(x), 2, vlag, lag=lag)
all.cov <- unlist(cov)
if (!is.list(cov)) cov <...
2020 Mar 22
3
Tasa variación diaria COVID-19
Eric
¿Que dataset utilizo? Por curiosidad probé su código, pero me salen
errores. Copio y pego todo como me sale en la consola.
> #
https://raw.githubusercontent.com/datasets/covid-19/master/data/time-series-19-covid-combined.csv
> datos <-
read.csv("C:/Users/HP/Downloads/time-series-19-covid-combined.csv")
>
> library(data.table)
> library(ggplot2)
>