'data.frame': 473 obs. of 10 variables:
$ id : int 1 2 3 4 5 6 7 8 9 10 ...
$ educ : int 15 16 12 8 15 15 15 12 15 12 ...
$ jobcat : int 3 1 1 1 1 1 1 1 1 1 ...
$ salbegin: int 27000 18750 12000 13200 21000 13500 18750 9750 12750 13500 ...
$ jobtime : int 98 98 98 98 98 98 98 98 98 98 ...
$ prevexp : int 144 36 381 190 138 67 114 0 115 244 ...
$ minority: int 0 0 0 0 0 0 0 0 0 0 ...
$ age : num 43 37 66 48 40 37 39 29 49 49 ...
$ gn : num 1 1 0 0 1 1 1 0 0 0 ...
$ salary : int 57000 40200 21450 21900 45000 32100 36000 21900 27900 24000 ...
n=20
id=round(runif(n,474,550))
gender=(sample(c("m","f"),n,replace=T))
bdate=runif(n,min(do$bdate),max(d$bdate))
bdate=as.Date(bdate)
educ=round(runif(n,min(do1$educ),max(do1$educ)))
jobcat=round(runif(n,min(do1$jobcat),max(do1$jobcat)))
salbegin=round(runif(n,min(do1$salbegin),max(do1$salbegin)))
jobtime=round(runif(n,min(do1$jobtime),max(do1$jobtime)))
prevexp=round(runif(n,min(do1$prevexp),max(do1$prevexp)))
minority=round(runif(n,min(do1$educ),max(do1$educ)))
age=round(runif(n,min(do1$age),max(do1$age)))
gendern=(sample(c("m","f"),n,replace=T))
dpred=data.frame(id,gender,bdate,educ,jobcat,salbegin,jobtime,prevexp,minority)
dpred1=dpred|>mutate(age=myage(bdate),
gn=ifelse(gender=="f",0,1))|> select(-c(2,3)) |>select(-c(8),c(8))
dpred1