search for: wvec

Displaying 2 results from an estimated 2 matches for "wvec".

Did you mean: vec
2012 Oct 16
2
gam (mgcv) problem: Error in while (mean(ldxx/(ldxx + ldss)) > 0.4) { :, missing value where TRUE/FALSE needed
Hi All, I'm running into a problem with GAM (in the MGCV package). When I try to estimate the model, I get the following error message: 1> fit <- gam(ndvi~s(rain)+s(temp)+s(rainl1)+s(rainl2)+s(rainxY)+s(rainl1xY)+s(rainl2xY)+s(tempxY), data=dsub, weights=wvec) Error in while (mean(ldxx/(ldxx + ldss)) > 0.4) { : missing value where TRUE/FALSE needed Using traceback, I get the following output (which I don't understand) 1> traceback() 7: initial.sp(w * X, S, off) 6: initial.spg(G$X, G$y, G$w, G$family, G$S, G$off, G$L, G$lsp0) 5: es...
2011 May 31
2
creating a vector from a file
Hello all, I am new to R and my question should be trivial. I need to create a word cloud from a txt file containing the words and their occurrence number. For that purposes I am using the snippets package [1]. As it can be seen at the bottom of the link, first I have to create a vector (is that right that words is a vector?) like bellow. > words <- c(apple=10, pie=14, orange=5, fruit=4)