Dear Members,


I am trying to fit a variogram model using fit.variogram function from the 
gstat package. The figure showing my experimental variogram can be seen here: 
https://i.stack.imgur.com/UZXw4.png

My code line for this operation is:

> c2.vgm.fit<-fit.variogram(c2.vgm.exp,vgm(nugget=0, 
> psill=400,model="Exp",range =40000),fit.method = 7)

The system throws following error message:

Error in switch(model, exponential = fit.exponential(v.object, c0 = nugget,  :

  EXPR must be a length 1 vector

Any help to know the cause of the error and avoiding it would be highly 
appreciated.

Thank you very much
Saubhagya Singh Rathore
PhD Candidate
Civil and Environmental Engineering
Georgia Institute of Technology



        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to