search for: tmodel

Displaying 6 results from an estimated 6 matches for "tmodel".

Did you mean: model
2004 Mar 19
2
using "unstack" inside my function: that old scope problem again
...nd of problem, but I can't understand the answers. Can one of you try to explain this to me? Here's my example. Given a regression model and a variable, I want to use unstack() on the vector of residuals and make some magic with the result. But unstack hates me. PCSE <- function (tmodel,groupVar) { myres1 <- resid(tmodel) resUnstacked <- unstack(myres1, form = myres1 ~ groupVar)); E <- as.matrix(resUnstacked) SIGMA <- (1/nrow(E))*(t(E) %*% E) OMEGA <- diag(x=1, nrow=nrow(E), ncol=nrow(E)) %x% SIGMA X <- model.matrix(tmodel) XPRIMEXINV <- solve(t...
2011 May 06
0
pcse package error message concerning nrows of using data
Dear R Community, I am currently facing this seemingly obscure Problem with Panel Corrected Standard Errors (PCSE) following Beck & Katz (1995). As the authors suggest, I regressed a linear model (tmodel) with lm() with option "na.action=na.exclude" (I have also tried other options here). My dataframe is organized in pooled times series fashion, but with various missing values along the spacial and temporal dimension. library(pcse) tmodel<-lm(var1 ~ var2 + var3 + var4 +...
2010 Apr 02
2
How to save a model in DB and retrieve It
...m3 + wind_dg, data = windDat, enp.target = 10*5*3) #, span = 0.1) modX <- serialize(model, connection = NULL, ascii = T) Channel <- odbcConnect("someSysDSN; UID=aUid; PWD=aPwd") sqlQuery(Channel, paste( "INSERT INTO GRT.GeneratorsModels ([cGeneratorID] ,[tModel] VALUES (1,", paste("'", gsub("'", "''", rawToChar(modX)), "'", sep = ''), ")", sep = "") ) # Up to this it is working correctly, # in DB I have the "modX" vari...
2007 Jul 23
4
nnet 10-fold cross-validation
Hi It clear that to do a classification with svm under 10-fold cross validation one uses svm(Xm, newlabs, type = "C-classification", kernel = "linear",cross = 10) What corresponds to the nnet? nnet(.....,cross=10)? Regards
2010 Oct 25
1
structural equation modeling in sem, error, The model has negative degrees of freedom = -3, and The model is almost surely misspecified...
...870284, 89.7648490, 0, >+ 0.276950919, 81.3484101, 215.3570157 > ), ncol = 3, byrow = T) >rownames(S_matrix) = colnames(S_matrix) = c("dec_mean_EVI", "density", "ALL_Jack1") I then construct a model using a symbolic ram specification as follows >tmodel <- specify.model() >dec_mean_EVI -> density, gam1, NA >density -> ALL_Jack1, gam2, NA >dec_mean_EVI -> ALL_Jack1, gam3, NA >dec_mean_EVI <-> dec_mean_EVI, ps1, NA >density <-> density, ps2, NA >ALL_Jack1 <-> ALL_Jack1, theta...
2000 Jan 13
1
Printing woes
...print ok = Yes print command = lpr -r -b -P%p %s printer driver = HP LaserJet 4 and the printcap entry for that printer:- LJ4-RM24:\ :cm=LaserJet 4 in Room 24:\ :sd=/var/spool/lpd/lp:\ :lp=123.45.67.89%9101:\ :sh:sf:\ :lf=log:af=acct:\ :if=/usr/libexec/filters/ifhp -Tmodel=hp4,status@:\ :mx=0 Any help on how to fix this would be much appreciated... Mike.