Displaying 3 results from an estimated 3 matches for "social_network_ad".
Did you mean:
social_network_ads
2024 Jul 13
1
Obtaining predicted probabilities for Logistic regression
?s 12:13 de 13/07/2024, Christofer Bogaso escreveu:
> Hi,
>
> I ran below code
>
> Dat = read.csv('https://raw.githubusercontent.com/sam16tyagi/Machine-Learning-techniques-in-python/master/logistic%20regression%20dataset-Social_Network_Ads.csv')
> head(Dat)
> Model = glm(Purchased ~ Gender, data = Dat, family = binomial())
> head(predict(Model, type="response"))
> My_Predict = 1/(1+exp(-1 * (as.vector(coef(Model))[1] *
> as.vector(coef(Model))[2] * ifelse(Dat['Gender'] == "Male", 1, 0))...
2024 Jul 13
1
Obtaining predicted probabilities for Logistic regression
Hi,
I ran below code
Dat = read.csv('https://raw.githubusercontent.com/sam16tyagi/Machine-Learning-techniques-in-python/master/logistic%20regression%20dataset-Social_Network_Ads.csv')
head(Dat)
Model = glm(Purchased ~ Gender, data = Dat, family = binomial())
head(predict(Model, type="response"))
My_Predict = 1/(1+exp(-1 * (as.vector(coef(Model))[1] *
as.vector(coef(Model))[2] * ifelse(Dat['Gender'] == "Male", 1, 0))))
head(My_Predict)
Howe...
2024 Sep 03
0
How R calculates SE of prediction for Logistic regression?
Hi,
I have below logistic regression
Dat =
read.csv('https://raw.githubusercontent.com/sam16tyagi/Machine-Learning-techniques-in-python/master/logistic%20regression%20dataset-Social_Network_Ads.csv')
head(Dat)
Model = glm(Purchased ~ Gender, data = Dat, family = binomial())
How I can get Standard deviation of forecasts as
head(predict(Model, type="response", se.fit = T)$se.fit)
My question: given that in Logistic regression, logit link is used,
how R calculate SE for the...