I read a R code on loess regression, here is part of it:
f.lo<- loess(bgs ~ f[,1], span=bw, degree=1)
bsln <- f.lo$fitted
What are their functions: bgs~f[,1] , the ~ and the $ in the next line? thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Tilde
~creates a formula,$extracts thefittedelement from S3 object (so de-facto list) created byloess. You can find more details in R-intro.