Displaying 4 results from an estimated 4 matches for "leafbiomass".
2017 Jun 30
2
Predict
Hi folks,
I have 25 stand height observations over 7 years period and daily
leafbiomass data during this period. I want to use the 25 plant height
observations as inputs and predict the daily stand height during the 7
years.
SH=matrix(data=NA , nrow = 2641, ncol = 1)
for (i in 1:2641) {
SH<- predict(lm(height~Date, data=Stand_Height));
dl=leafbiom$Date[i-1];
de=leafbiom$Da...
2017 Jun 30
3
Predict
...for anything. I would have thought
> that you would use leaf biomass as the predictor variable, not Date.
> - I'm not sure why you want the cumulative sum of stand height; that
> doesn't make sense to me.
>
> I'm guessing you want:
>
> height.model <- lm(height ~ leafbiomass, data = Stand_Height)
> pred.height <- predict(height.model, leafbiom)
>
> # not sure about the reasoning behind this
> SH <- cumsum(pred.height)
>
> You don't need a loop. Overwriting SH is the biggest R problem; the
> rest of my questions have to do with what your o...
2017 Jun 30
0
Predict
...Leaf biomass data is never used for anything. I would have thought
that you would use leaf biomass as the predictor variable, not Date.
- I'm not sure why you want the cumulative sum of stand height; that
doesn't make sense to me.
I'm guessing you want:
height.model <- lm(height ~ leafbiomass, data = Stand_Height)
pred.height <- predict(height.model, leafbiom)
# not sure about the reasoning behind this
SH <- cumsum(pred.height)
You don't need a loop. Overwriting SH is the biggest R problem; the
rest of my questions have to do with what your objective actually is,
like what y...
2017 Jun 30
0
Predict
...hought
>> that you would use leaf biomass as the predictor variable, not Date.
>> - I'm not sure why you want the cumulative sum of stand height; that
>> doesn't make sense to me.
>>
>> I'm guessing you want:
>>
>> height.model <- lm(height ~ leafbiomass, data = Stand_Height)
>> pred.height <- predict(height.model, leafbiom)
>>
>> # not sure about the reasoning behind this
>> SH <- cumsum(pred.height)
>>
>> You don't need a loop. Overwriting SH is the biggest R problem; the
>> rest of my questions...