Spatial-R / EnvExpInd

This is the repository to assess the environmental exposure on the individual level.
7 stars 1 forks source link

Problem about the "date" in EnvExpInd code! #4

Closed bianleleren closed 4 years ago

bianleleren commented 7 years ago

I have ran your code successfully before, but this time when I add some new weather data and pollutant data to my dataset,I cannt execute any of you estimate fuction and the error like this: image It seems the problem is about the date in the weather and pollutant data, but I am sure the date to be estimated has been fully covered. image

Spatial-R commented 7 years ago

Thanks! You can predefine the value of each argument in the expoure_estimate_simple function (detailed codes for this function in here) to test why you have got the error discussed above. I guess the problem may be on your dataset, do you have transformed all the columns with the data information into a standard formulation?

bianleleren commented 7 years ago

I'm sure I have transformed all the data into right type! image image image image

Spatial-R commented 7 years ago

Could you share your dataset with me? I think it is easier to find out the problem.

bianleleren commented 7 years ago

Alright, please check your email. I want to get the simple estimation of the individual's temperature exposure for ten days before the "date" variable in the dataset.

huanhuan118 commented 6 years ago

Warning messages: 1: In FUN(newX[, i], ...) : NAs introduced by coercion 2: In FUN(newX[, i], ...) : NAs introduced by coercion I ran your data step by step, but there are two Warning messages, what is wrong?